cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding bapis for sales order creation and modification

Former Member
0 Kudos

Hi,

I am trying to create a syncbo for sales order creation, modification and display. The bapis that I am using are

1.BAPI_SALESORDER_GETLIST

2.BAPISDORDER_GETDETAILEDLIST

3.BAPI_SALESORDER_CREATEFROMDATA1

4. BAPI_SALESORDER_CHANGE

Am I using the correct bapis. When I tried to create a syncbo it gave the following errors

BAPISDORDER_GETDETAILEDLIST does not have RETURN parameter in export or tables parameter

RETURN parameter in Create BAPI Wrapper should refer to structure BAPIRET2

RETURN parameter in GetList BAPI Wrapper should refer to structure BAPIRET2

GetDetail BAPI Wrapper does not have RETURN parameter in export or tables parameter

No Export parameter referring to header structure exists in GetDetail BAPI Wrapper

No Import parameter referring to header structure exists in Create BAPI Wrapper

No Import parameter referring to header structure exists in Modify BAPI Wrapper

No Import parameter referring to a field of header structure exists in GetDetail BAPI Wrapper

No Export parameter referring to a field of header structure exists in Create BAPI Wrapper

No Tables parameter referring to item structure exists in Create BAPI Wrapper

No Tables parameter referring to item structure exists in Modify BAPI Wrapper

I am informed that the above bapis are standard bapis.

I am not sure as to why I am getting the errors.

Does the syncbo require the bapi's to be in a specific format.

What would be the header and item structures for sales order bapis

Regards

Raja Sekhar

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hello raja,

for the syncbo creation:

your getList() abap function extract the values for the Header structure;

your getDetail() for the Item structure.

http://help.sap.com/saphelp_nw04/helpdata/en/a5/3ec8f94ac011d1894e0000e829fbbd/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/a5/3eca234ac011d1894e0000e829fbbd/content.htm

go to forum page 'abap programming'.

kishorg
Advisor
Advisor
0 Kudos

Hi Raja,

ya , for creating Sync BOs ,our BAPI wrappers must satisfy certain conditions..

just go through this link.

u can use the standard BAPIs of SALES Order in ur Custom BAPI Wrapper

http://media.sdn.sap.com/public/html/submitted_docs/MI/MDK_2.5/content/appdev/smartsync/what_is_a_ba...

the RETURN must be of type BAPIRET2..

Regards

Kishor Gopinathan