ALE_SAG_CREATE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name ALE_SAG_CREATE into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
2013
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'ALE_SAG_CREATE' "
EXPORTING
header = " bapimeoutheader
headerx = " bapimeoutheaderx
* vendoraddress = " bapimeoutaddrvendor
* headexportimport = " bapimeouteikp
* headexportimportx = " bapimeouteikpx
* testrun = " bapiflag-bapiflag
* technicaldata = " bapimeouttech
* obj_type = 'BUS2013' " serial-obj_type
* serial_id = '0' " serial-chnum
TABLES
item = " bapimeoutitem
itemx = " bapimeoutitemx
* account = " bapimeoutaccount
* accountprofitsegment = " bapimeoutprofitsegment
* accountx = " bapimeoutaccountx
* schedule = " bapimeoutschedule
* schedulex = " bapimeoutschedulex
* sccomponent = " bapimeoutcomponent
* sccomponentx = " bapimeoutcomponentx
* shipping = " bapimeoutshipp
* shippingx = " bapimeoutshippx
* shippingexp = " bapimeoutshippexp
* deliveryaddress = " bapimeoutaddrdelivery
* itemcondvalidity = " bapimeoutvalidity
* itemcondvalidityx = " bapimeoutvalidityx
* itemcondition = " bapimeoutcondition
* itemconditionx = " bapimeoutconditionx
* itemcondscalevalue = " bapimeoutitemscaleval
* itemcondscalequan = " bapimeoutitemscalequan
* exportimport = " bapimeouteipo
* exportimportx = " bapimeouteipox
* itemtext = " bapimeoutitemtext
* headertext = " bapimeouttext
* headcondvalidity = " bapimeoutheadvalidity
* headcondvalidityx = " bapimeoutheadvalidityx
* headcondition = " bapimeoutheadercond
* headconditionx = " bapimeoutheadercondx
* headcondscaleval = " bapimeoutscalevalue
* headcondscalequan = " bapimeoutscale
* partner = " bapimeoutpartner
* partnerx = " bapimeoutpartnerx
* extensionin = " bapiparex
receivers = " bdi_logsys
* communication_documents = " swotobjid
* application_objects = " swotobjid
EXCEPTIONS
ERROR_CREATING_IDOCS = 1 "
. " ALE_SAG_CREATE
The ABAP code below is a full code listing to execute function module ALE_SAG_CREATE including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).
| it_item | TYPE STANDARD TABLE OF BAPIMEOUTITEM,"TABLES PARAM |
| wa_item | LIKE LINE OF it_item , |
| it_itemx | TYPE STANDARD TABLE OF BAPIMEOUTITEMX,"TABLES PARAM |
| wa_itemx | LIKE LINE OF it_itemx , |
| it_account | TYPE STANDARD TABLE OF BAPIMEOUTACCOUNT,"TABLES PARAM |
| wa_account | LIKE LINE OF it_account , |
| it_accountprofitsegment | TYPE STANDARD TABLE OF BAPIMEOUTPROFITSEGMENT,"TABLES PARAM |
| wa_accountprofitsegment | LIKE LINE OF it_accountprofitsegment , |
| it_accountx | TYPE STANDARD TABLE OF BAPIMEOUTACCOUNTX,"TABLES PARAM |
| wa_accountx | LIKE LINE OF it_accountx , |
| it_schedule | TYPE STANDARD TABLE OF BAPIMEOUTSCHEDULE,"TABLES PARAM |
| wa_schedule | LIKE LINE OF it_schedule , |
| it_schedulex | TYPE STANDARD TABLE OF BAPIMEOUTSCHEDULEX,"TABLES PARAM |
| wa_schedulex | LIKE LINE OF it_schedulex , |
| it_sccomponent | TYPE STANDARD TABLE OF BAPIMEOUTCOMPONENT,"TABLES PARAM |
| wa_sccomponent | LIKE LINE OF it_sccomponent , |
| it_sccomponentx | TYPE STANDARD TABLE OF BAPIMEOUTCOMPONENTX,"TABLES PARAM |
| wa_sccomponentx | LIKE LINE OF it_sccomponentx , |
| it_shipping | TYPE STANDARD TABLE OF BAPIMEOUTSHIPP,"TABLES PARAM |
| wa_shipping | LIKE LINE OF it_shipping , |
| it_shippingx | TYPE STANDARD TABLE OF BAPIMEOUTSHIPPX,"TABLES PARAM |
| wa_shippingx | LIKE LINE OF it_shippingx , |
| it_shippingexp | TYPE STANDARD TABLE OF BAPIMEOUTSHIPPEXP,"TABLES PARAM |
| wa_shippingexp | LIKE LINE OF it_shippingexp , |
| it_deliveryaddress | TYPE STANDARD TABLE OF BAPIMEOUTADDRDELIVERY,"TABLES PARAM |
| wa_deliveryaddress | LIKE LINE OF it_deliveryaddress , |
| it_itemcondvalidity | TYPE STANDARD TABLE OF BAPIMEOUTVALIDITY,"TABLES PARAM |
| wa_itemcondvalidity | LIKE LINE OF it_itemcondvalidity , |
| it_itemcondvalidityx | TYPE STANDARD TABLE OF BAPIMEOUTVALIDITYX,"TABLES PARAM |
| wa_itemcondvalidityx | LIKE LINE OF it_itemcondvalidityx , |
| it_itemcondition | TYPE STANDARD TABLE OF BAPIMEOUTCONDITION,"TABLES PARAM |
| wa_itemcondition | LIKE LINE OF it_itemcondition , |
| it_itemconditionx | TYPE STANDARD TABLE OF BAPIMEOUTCONDITIONX,"TABLES PARAM |
| wa_itemconditionx | LIKE LINE OF it_itemconditionx , |
| it_itemcondscalevalue | TYPE STANDARD TABLE OF BAPIMEOUTITEMSCALEVAL,"TABLES PARAM |
| wa_itemcondscalevalue | LIKE LINE OF it_itemcondscalevalue , |
| it_itemcondscalequan | TYPE STANDARD TABLE OF BAPIMEOUTITEMSCALEQUAN,"TABLES PARAM |
| wa_itemcondscalequan | LIKE LINE OF it_itemcondscalequan , |
| it_exportimport | TYPE STANDARD TABLE OF BAPIMEOUTEIPO,"TABLES PARAM |
| wa_exportimport | LIKE LINE OF it_exportimport , |
| it_exportimportx | TYPE STANDARD TABLE OF BAPIMEOUTEIPOX,"TABLES PARAM |
| wa_exportimportx | LIKE LINE OF it_exportimportx , |
| it_itemtext | TYPE STANDARD TABLE OF BAPIMEOUTITEMTEXT,"TABLES PARAM |
| wa_itemtext | LIKE LINE OF it_itemtext , |
| it_headertext | TYPE STANDARD TABLE OF BAPIMEOUTTEXT,"TABLES PARAM |
| wa_headertext | LIKE LINE OF it_headertext , |
| it_headcondvalidity | TYPE STANDARD TABLE OF BAPIMEOUTHEADVALIDITY,"TABLES PARAM |
| wa_headcondvalidity | LIKE LINE OF it_headcondvalidity , |
| it_headcondvalidityx | TYPE STANDARD TABLE OF BAPIMEOUTHEADVALIDITYX,"TABLES PARAM |
| wa_headcondvalidityx | LIKE LINE OF it_headcondvalidityx , |
| it_headcondition | TYPE STANDARD TABLE OF BAPIMEOUTHEADERCOND,"TABLES PARAM |
| wa_headcondition | LIKE LINE OF it_headcondition , |
| it_headconditionx | TYPE STANDARD TABLE OF BAPIMEOUTHEADERCONDX,"TABLES PARAM |
| wa_headconditionx | LIKE LINE OF it_headconditionx , |
| it_headcondscaleval | TYPE STANDARD TABLE OF BAPIMEOUTSCALEVALUE,"TABLES PARAM |
| wa_headcondscaleval | LIKE LINE OF it_headcondscaleval , |
| it_headcondscalequan | TYPE STANDARD TABLE OF BAPIMEOUTSCALE,"TABLES PARAM |
| wa_headcondscalequan | LIKE LINE OF it_headcondscalequan , |
| it_partner | TYPE STANDARD TABLE OF BAPIMEOUTPARTNER,"TABLES PARAM |
| wa_partner | LIKE LINE OF it_partner , |
| it_partnerx | TYPE STANDARD TABLE OF BAPIMEOUTPARTNERX,"TABLES PARAM |
| wa_partnerx | LIKE LINE OF it_partnerx , |
| it_extensionin | TYPE STANDARD TABLE OF BAPIPAREX,"TABLES PARAM |
| wa_extensionin | LIKE LINE OF it_extensionin , |
| it_receivers | TYPE STANDARD TABLE OF BDI_LOGSYS,"TABLES PARAM |
| wa_receivers | LIKE LINE OF it_receivers , |
| it_communication_documents | TYPE STANDARD TABLE OF SWOTOBJID,"TABLES PARAM |
| wa_communication_documents | LIKE LINE OF it_communication_documents , |
| it_application_objects | TYPE STANDARD TABLE OF SWOTOBJID,"TABLES PARAM |
| wa_application_objects | LIKE LINE OF it_application_objects . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_header | TYPE BAPIMEOUTHEADER , |
| it_item | TYPE STANDARD TABLE OF BAPIMEOUTITEM , |
| wa_item | LIKE LINE OF it_item, |
| ld_headerx | TYPE BAPIMEOUTHEADERX , |
| it_itemx | TYPE STANDARD TABLE OF BAPIMEOUTITEMX , |
| wa_itemx | LIKE LINE OF it_itemx, |
| it_account | TYPE STANDARD TABLE OF BAPIMEOUTACCOUNT , |
| wa_account | LIKE LINE OF it_account, |
| ld_vendoraddress | TYPE BAPIMEOUTADDRVENDOR , |
| ld_headexportimport | TYPE BAPIMEOUTEIKP , |
| it_accountprofitsegment | TYPE STANDARD TABLE OF BAPIMEOUTPROFITSEGMENT , |
| wa_accountprofitsegment | LIKE LINE OF it_accountprofitsegment, |
| ld_headexportimportx | TYPE BAPIMEOUTEIKPX , |
| it_accountx | TYPE STANDARD TABLE OF BAPIMEOUTACCOUNTX , |
| wa_accountx | LIKE LINE OF it_accountx, |
| ld_testrun | TYPE BAPIFLAG-BAPIFLAG , |
| it_schedule | TYPE STANDARD TABLE OF BAPIMEOUTSCHEDULE , |
| wa_schedule | LIKE LINE OF it_schedule, |
| ld_technicaldata | TYPE BAPIMEOUTTECH , |
| it_schedulex | TYPE STANDARD TABLE OF BAPIMEOUTSCHEDULEX , |
| wa_schedulex | LIKE LINE OF it_schedulex, |
| ld_obj_type | TYPE SERIAL-OBJ_TYPE , |
| it_sccomponent | TYPE STANDARD TABLE OF BAPIMEOUTCOMPONENT , |
| wa_sccomponent | LIKE LINE OF it_sccomponent, |
| ld_serial_id | TYPE SERIAL-CHNUM , |
| it_sccomponentx | TYPE STANDARD TABLE OF BAPIMEOUTCOMPONENTX , |
| wa_sccomponentx | LIKE LINE OF it_sccomponentx, |
| it_shipping | TYPE STANDARD TABLE OF BAPIMEOUTSHIPP , |
| wa_shipping | LIKE LINE OF it_shipping, |
| it_shippingx | TYPE STANDARD TABLE OF BAPIMEOUTSHIPPX , |
| wa_shippingx | LIKE LINE OF it_shippingx, |
| it_shippingexp | TYPE STANDARD TABLE OF BAPIMEOUTSHIPPEXP , |
| wa_shippingexp | LIKE LINE OF it_shippingexp, |
| it_deliveryaddress | TYPE STANDARD TABLE OF BAPIMEOUTADDRDELIVERY , |
| wa_deliveryaddress | LIKE LINE OF it_deliveryaddress, |
| it_itemcondvalidity | TYPE STANDARD TABLE OF BAPIMEOUTVALIDITY , |
| wa_itemcondvalidity | LIKE LINE OF it_itemcondvalidity, |
| it_itemcondvalidityx | TYPE STANDARD TABLE OF BAPIMEOUTVALIDITYX , |
| wa_itemcondvalidityx | LIKE LINE OF it_itemcondvalidityx, |
| it_itemcondition | TYPE STANDARD TABLE OF BAPIMEOUTCONDITION , |
| wa_itemcondition | LIKE LINE OF it_itemcondition, |
| it_itemconditionx | TYPE STANDARD TABLE OF BAPIMEOUTCONDITIONX , |
| wa_itemconditionx | LIKE LINE OF it_itemconditionx, |
| it_itemcondscalevalue | TYPE STANDARD TABLE OF BAPIMEOUTITEMSCALEVAL , |
| wa_itemcondscalevalue | LIKE LINE OF it_itemcondscalevalue, |
| it_itemcondscalequan | TYPE STANDARD TABLE OF BAPIMEOUTITEMSCALEQUAN , |
| wa_itemcondscalequan | LIKE LINE OF it_itemcondscalequan, |
| it_exportimport | TYPE STANDARD TABLE OF BAPIMEOUTEIPO , |
| wa_exportimport | LIKE LINE OF it_exportimport, |
| it_exportimportx | TYPE STANDARD TABLE OF BAPIMEOUTEIPOX , |
| wa_exportimportx | LIKE LINE OF it_exportimportx, |
| it_itemtext | TYPE STANDARD TABLE OF BAPIMEOUTITEMTEXT , |
| wa_itemtext | LIKE LINE OF it_itemtext, |
| it_headertext | TYPE STANDARD TABLE OF BAPIMEOUTTEXT , |
| wa_headertext | LIKE LINE OF it_headertext, |
| it_headcondvalidity | TYPE STANDARD TABLE OF BAPIMEOUTHEADVALIDITY , |
| wa_headcondvalidity | LIKE LINE OF it_headcondvalidity, |
| it_headcondvalidityx | TYPE STANDARD TABLE OF BAPIMEOUTHEADVALIDITYX , |
| wa_headcondvalidityx | LIKE LINE OF it_headcondvalidityx, |
| it_headcondition | TYPE STANDARD TABLE OF BAPIMEOUTHEADERCOND , |
| wa_headcondition | LIKE LINE OF it_headcondition, |
| it_headconditionx | TYPE STANDARD TABLE OF BAPIMEOUTHEADERCONDX , |
| wa_headconditionx | LIKE LINE OF it_headconditionx, |
| it_headcondscaleval | TYPE STANDARD TABLE OF BAPIMEOUTSCALEVALUE , |
| wa_headcondscaleval | LIKE LINE OF it_headcondscaleval, |
| it_headcondscalequan | TYPE STANDARD TABLE OF BAPIMEOUTSCALE , |
| wa_headcondscalequan | LIKE LINE OF it_headcondscalequan, |
| it_partner | TYPE STANDARD TABLE OF BAPIMEOUTPARTNER , |
| wa_partner | LIKE LINE OF it_partner, |
| it_partnerx | TYPE STANDARD TABLE OF BAPIMEOUTPARTNERX , |
| wa_partnerx | LIKE LINE OF it_partnerx, |
| it_extensionin | TYPE STANDARD TABLE OF BAPIPAREX , |
| wa_extensionin | LIKE LINE OF it_extensionin, |
| it_receivers | TYPE STANDARD TABLE OF BDI_LOGSYS , |
| wa_receivers | LIKE LINE OF it_receivers, |
| it_communication_documents | TYPE STANDARD TABLE OF SWOTOBJID , |
| wa_communication_documents | LIKE LINE OF it_communication_documents, |
| it_application_objects | TYPE STANDARD TABLE OF SWOTOBJID , |
| wa_application_objects | LIKE LINE OF it_application_objects. |
This function model was generated from the object
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name ALE_SAG_CREATE or its description.