cancel
Showing results for 
Search instead for 
Did you mean: 

Pb when adding text (comments) inside an sale order

Joseph_BERTHE
Active Contributor
0 Kudos

Hi,

I want to add text in my sale order with the following BAPI : ZBAPI_SALESORDER_CREATEFROMDAT2.

Oddly, when I execute the BAPI in SE37 the text are saved. But when i'm using it, into my WD for Java application, nothing happened. My order is created but without text.

Here is the code used :

myText = wdContext.createOrder_TextElement(new Bapisdtext());
myText.setFormat_Col("/");
myText.setItm_Number("000000");
myText.setLangu("E"); // i've tried "EN"
myText.setText_Id("Z099");
myText.setText_Line("Hello, world !!");

I've tried plenty of stuff, but not the good one :'(

Regards,

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

HI,

Are you executing the BAPI after setting the input parameters

Regards

Saravanan K

Joseph_BERTHE
Active Contributor
0 Kudos

hi,

Actually, I've set up all inputs that I needed for the BAPI, and of course, after I executed it.

Regards,