Você está na página 1de 5

Search

Home Trai ni ngs Qui z Ti ps Tutori al s Functi onal Cert Q's I ntervi ew Q's Jobs Testi moni al s Adverti se Contact Us
Corporate Trainings
Document Categories:
ABAP
TM
Adobe Forms
ABAP-HR
ALE & IDocs
ALV
BAPI
BASIS
BSP
Business Objects
Business Workflow
CRM NEW
LSMW
SAP Script/Smart Forms
BI/BW
eXchange Infrastructure (XI)
Enterprise Portals (EP)
eCATT
Object Oriented Programming
SAP Query
Userexits/BADIs
WebDynpro for Java/ABAP
TM
Others
What's New?
Inserting data from Internal
Table into the step Send Mail
Display GL Account long text
using enhancement
framework
Differences between
polymorphism in JAVA and
ABAP
Passing multiline parameters
from an ABAP Class event to a
Workflow container
Concept of Re-evaluate agents
for active work items in SAP
Workflow
Dynamic creation of
component usage in ABAP
WebDynpro
Adobe Forms: Display symbols
like copyright and others
Deactivate Hold functionality in
Purchase order (ME21N)
Quiz on OOABAP
Add fields in FBL5N using
BADIs
Tutorial on Wide casting
Defining a Range in Module
Pool Program
Copy fields from one
structure/table into another
structure/table
Side Panel Usage in NWBC
Introduction to SAP Event
Management
Display Statistical Report using
Function Module
Adding Explicit Enhancement
to custom program
Display data dynamically using
Field Symbols
SAP BODS - Beginners guide
Display text vertically (Rotate
text) in Adobe Form
Sending email with multiple
tabs of excel as a single
attachment
Copying Sales Order
attachments to the invoice
Contribute?
Sample Specs
Create Sales Order (BAPI_SALESORDER_CREATEFROMDAT2) with
BAPI Extension
...Previous
BHEL Openings June
'14
timesjobs.com/BHEL-Hiring-Urgent
Exp: 3 to 10 Yrs, Sal: 7L to 25L PA
Apply Now & Get Multiple
Interviews
Webinars on SAP
Reporting
symtrax.com
Sort and Distribute SAP
docs easily Sign-up for
Webinars to Know More.
SAP Training by
Atos
SAP Plant
Maintenance
Fresher Jobs
(Urgent)
Sample Specs
What's Hot?
Web Dynpro for ABAP Tutorials
Join the Mailing List
Enter name and email address below:
Name:
Email:
Subscribe Unsubscribe
GO


Adjust the following structures for customer enhancements to table VBAP:
a) VBAPKOZ
b) VBAPKOZX
c) BAPE_VBAP
d) BAPE_VBAPX
If you need to use custom fields for VBAK you must adjust the following structures for customer
enhancements to table VBAK:
a) VBAKKOZ
b) VBAKKOZX
c) BAPE_VBAK
d) BAPE_VBAKX
If you need to use custom fields for VBEP you must adjust the following structures for customer
enhancements to table VBEP:
a) VBEPKOZ
b) VBEPKOZX
c) BAPE_VBEP
d) BAPE_VBEPX
Generally, the data should be added to the BAPI interface in the internal communication structures
(VBAKKOM, and so on). There, you can process the data in the SD tables (VBAK, and so on).
If the EXTENSIONIN parameter contains customer data, you must complete at least the key fields in the
relevant standard parameters.
This is a simple ABAP code how to use extension table with BAPI
data: lv_salesdocument like bapivbeln-vbeln,
ls_order_header_in type bapisdhd1 ,
ls_order_header_inx type bapisdhd1x,
lt_return type table of bapiret2 with header line,
lt_items_in type table of bapisditm with header line,
lt_items_inx type table of bapisditmx with header line,
lt_partners type table of bapiparnr with header line,
lt_schedules_in type table of bapischdl with header line,
lt_schedules_inx type table of bapischdlx with header line,
lt_order_conditions_in type table of bapicond with header line,
lt_order_conditions_inx type table of bapicondx with header line,
lt_extensionin type table of bapiparex with header line,
lwa_extensionin type bapiparex ,
lt_bape_vbap type table of bape_vbap with header line,
lwa_bape_vbap type bape_vbap,
lt_bape_vbapx type table of bape_vbapx with header line,
lwa_bape_vbapx type bape_vbapx.
ls_order_header_in-doc_type = 'Z001'.
ls_order_header_in-sales_org = '1000'.
ls_order_header_in-distr_chan = '20'.
ls_order_header_in-division = '01'.
ls_order_header_in-sales_off = '0010'.
ls_order_header_in-purch_no_c = '10000001'.
ls_order_header_inx-updateflag = 'I'.
ls_order_header_inx-doc_type = 'X'.
ls_order_header_inx-sales_org = 'X'.
ls_order_header_inx-distr_chan = 'X'.
ls_order_header_inx-distr_chan = 'X'.
ls_order_header_inx-division = 'X'.
ls_order_header_inx-sales_off = 'X'.
ls_order_header_inx-purch_no_c = 'X'.
lt_partners-partn_role = 'AG'.
lt_partners-partn_numb = '0000004000'.
append lt_partners.
lt_items_in-itm_number = '000010'.
lt_items_in-material = '000000000300000040'.
lt_items_in-sales_unit = 'ST'.
append lt_items_in.
lt_items_inx-itm_number = '000010'.
lt_items_inx-material = 'X'.
lt_items_inx-sales_unit = 'X'.
append lt_items_inx.
lt_schedules_in-itm_number = '000010'.
lt_schedules_in-sched_line = '0001'.
lt_schedules_in-req_qty = 1000.
lt_schedules_in-req_date = sy-datum.
append lt_schedules_in.
lt_schedules_inx-itm_number = '000010'.
lt_schedules_inx-sched_line = '0001'.
lt_schedules_inx-req_qty = 'X'.
lt_schedules_inx-req_date = 'X'.
append lt_schedules_inx.
lwa_bape_vbap-vbeln = space.
lwa_bape_vbap-posnr = '000010'.
lwa_bape_vbap-zztuketf = 0.
lwa_bape_vbap-zztukets = 0.
lwa_bape_vbap-zzklt1 = '45GRAM'.
lwa_bape_vbap-zzsyf1 = 16.
lwa_bape_vbap-zzklt2 = '49GRAM'.
lwa_bape_vbap-zzsyf2 = 0.
lwa_bape_vbap-zzklt3 = '52GRAM'.
lwa_bape_vbap-zzsyf3 = 0.
lwa_bape_vbap-zz45g = space.
lwa_bape_vbap-zz49g = space.
lwa_bape_vbap-zzsbs = 8.
lwa_bape_vbap-zztss = 8.
lwa_bape_vbap-zzrss = 16.
lwa_bape_vbapx-vbeln = space.
lwa_bape_vbapx-posnr = wa_outtab-posnr.
lwa_bape_vbapx-zztuketf = space.
lwa_bape_vbapx-zztukets = space.
lwa_bape_vbapx-zzklt1 = 'X'.
lwa_bape_vbapx-zzsyf1 = 'X'.
lwa_bape_vbapx-zzklt2 = 'X'.
lwa_bape_vbapx-zzsyf2 = 'X'.
lwa_bape_vbapx-zzklt3 = 'X'.
lwa_bape_vbapx-zzsyf3 = 'X'.
lwa_bape_vbapx-zz45g = 'X'.
lwa_bape_vbapx-zz49g = 'X'.
lwa_bape_vbapx-zzsbs = 'X'.
lwa_bape_vbapx-zztss = 'X'.
lwa_bape_vbapx-zzrss = 'X'.
move 'BAPE_VBAP' to lwa_extensionin-structure.
call method cl_abap_container_utilities=>fill_container_c
exporting
im_value = lwa_bape_vbap
importing
ex_container = lwa_extensionin-valuepart1.
append lwa_extensionin to lt_extensionin.
clear lwa_extensionin.
clear lt_extensionin.
move 'BAPE_VBAPX' to lwa_extensionin-structure.
move lwa_bape_vbapx to lwa_extensionin-valuepart1.
append lwa_extensionin to lt_extensionin.
clear lt_extensionin.
call function 'BAPI_SALESORDER_CREATEFROMDAT2'
exporting
* salesdocumentin = lv_salesdocument
order_header_in = ls_order_header_in
order_header_inx = ls_order_header_inx
* SENDER =
* BINARY_RELATIONSHIPTYPE =
* INT_NUMBER_ASSIGNMENT =
* BEHAVE_WHEN_ERROR =
* LOGIC_SWITCH =
* LOGIC_SWITCH =
* TESTRUN =
* CONVERT = ' '
importing
salesdocument = lv_salesdocument
tables
return = lt_return
order_items_in = lt_items_in
order_items_inx = lt_items_inx
order_partners = lt_partners
order_schedules_in = lt_schedules_in
order_schedules_inx = lt_schedules_inx
order_conditions_in = lt_order_conditions_in
order_conditions_inx = lt_order_conditions_inx
* ORDER_CFGS_REF =
* ORDER_CFGS_INST =
* ORDER_CFGS_PART_OF =
* ORDER_CFGS_VALUE =
* ORDER_CFGS_BLOB =
* ORDER_CFGS_VK =
* ORDER_CFGS_REFINST =
* ORDER_CCARD =
* ORDER_TEXT =
* ORDER_KEYS =
extensionin = lt_extensionin
* PARTNERADDRESSES =
.
call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = 'X'.
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM
Home Contribute About Us Privacy Terms Of Use Disclaimer Safe Companies: Advertise on SAPTechnical.COM | Post Job Contact Us
2006-2007 SAPTechni cal .COM. Al l ri ghts reserved.
Al l product names are trademarks of thei r respecti ve compani es. SAPTechni cal .COM i s i n no way affi l i ated wi th SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver, and and any other SAP trademarks are regi stered trademarks of SAP AG i n Germany and i n several other countri es.
Every effort i s made to ensure content i ntegri ty. Use i nformati on on thi s si te at your own ri sk.
Graphic Design by Round the Bend Wizards
Free REST API
Platform
dreamfactory.com
Install open source on any server
Connect to SQL or NoSQL data