Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_SALESDOCU_CREATEWITHDIA with partners does not work fine

Former Member
0 Kudos

Hi all,

we are using the BAPI_SALESDOCU_CREATEWITHDIA FM sending some parameters like sales org, distr. channel, division and parners (sold-to-party and ship-to-party).

The problem is that, if the user creates a new document using "create with reference", some fields are not filled at header level of the new sales document. These fields are not filled if we send partners in table SALES_PARTNERS when calling the BAPI. If we do not send any partners these fields are filled correctly.

The fields are "assignment" (VBAK-ZUONR) and "reference no." (VBAK-XBLNR) in "Accounting" tab.

We tried "call transaction" statement but we can't find a way to send partner numbers using this method.

Any help would be really appreciated. Thanks in advance.

2 REPLIES 2

Former Member
0 Kudos

HI igna,

Have u set the header update field to 'I'.

i.e SALES_HEADER_INX-UPDATEFLAG = 'I'.

in the same way,what Update the corresponding values in this table say for e.g if sales org in not updated then SALES_HEADER_INX-SALES_ORG = 'I'.

Reward if useful

Balaji

0 Kudos

Hi Balaji,

thanks for your help but that thing does not solve my problem. The things are like before, the fields are empty if I send partners. If I don't, then the fields are correctly filled with the reference document number.