cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_SALESORDER_CREATEFROMDAT2 - how to change Header Status

Former Member
0 Kudos

Hi all,

some of you know how can I find the field/structure in the BAPI_SALESORDER_CREATEFROMDAT2 to change the value of SalesOrder Header field "User Status"?

I couldn't find it, and the status of orders I'm creating are always going to SAP with value "Elab", it would be "Conc", but I couldn't find a way to change it in this bapi. If there is a way, please, give me a tip.

thank you!

roberti

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

do you need to use a BAPI ?

if you wan to create a sales order and you can use an IDOC

then you will be able to do it quite easily

as IDOC for order creation use batchinput technique

so you can add any field that is changeable in VA01

inside a user exit and it will be populated

even if it's not in standard IDOC

Regards,

michal

Former Member
0 Kudos

Thanks Michael,

The directions we received here are to use BAPI's whenever as possible instead IDOC's. Now I found this - it's possible to put user exits on IDOC's and not the same with BAPI's. I will try it.

Another suggestion I received right now was to use an Abap proxy to call the Bapi, and after do the changes in the header status field. What do you think about it?

cheers!

roberti

Message was edited by:

Waldemar Roberti

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>>Now I found this - it's possible to put user exits on IDOC's and not the same with BAPI's

IDOC for sales orders does not use a BAPI call so different exits can be used

>>>>Another suggestion I received right now was to use an Abap proxy to call the Bapi, and after do the changes in the header status field. What do you think about it?

sure but you still need to use a BAPI (this time changeorder) to change the status... so you still need to find the field

hope you're not planning to do a direct update on the table

Regards,

michal

Former Member
0 Kudos

sure I will not direct update it

I will try using IDOC.

Thanks again!!!

salute!

roberti

Former Member
0 Kudos

Hi Michal,

Can you provide the step by step process for achieving this task.

Thanks & Regards

Vikas

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Waldemar ,

I would suggest also to post this in the ABAP forum.

Regards Mario