cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC to change sales order (ORDCHG ? )

Former Member
0 Kudos

Hi People,

I am trying to find an inbound IDOC to update a sales order, i.e. Change some header info and some line item info. I tried using ORDERS05 with ORDCHG - Is this the correct one to use?

I am seeing some very strange results when I try to use this, I am trying to update an OR sales order but it reports back that an unrelated creditmemo was updated.

Any help really appreciated, cheers

Rob.

Accepted Solutions (0)

Answers (4)

Answers (4)

christian_swonke
Participant

Can somebody tell me how I can use message type ORDCHG to change delivery block and purchase order number at item leven?

I do not find the related fields...

Regards

Christian

Former Member
0 Kudos

Hi,

I am able update the order however  I am facing different issue. new line items created when I try to change to existing line item.

I have passed order type in segment E1EDK14  with qualifier 012 try this.

Regards,

Narayan

Former Member
0 Kudos

Hi all.

You can solve this problem inserting the followings segment:

E1EDK02 - QUALF = '002' if you need to change a Order

E1EDK02 - BELNR = document number

Bye

Manuel Chiarelli

ferry_lianto
Active Contributor
0 Kudos

Hi Rob,

You use the correct message type ORDCHG with IDoc type ORDERS05 for sales order change.

Did you use process code ORDC for your inbound partner profile setup (WE20)?

Regards,

Ferry Lianto

Former Member
0 Kudos

Hi Ferry,

Thats correct, I used process code ORDC "ORDCHG Change sales order" in WE20.

I populated the IDOC like this

E1EDK01_BSART="OR" (Sales order type)

E1EDK01_BELNR="0000427232" (Sales order nr)

E1EDP01_POSEX="000010" (Line number)

E1EDP01_ACTION="002" (Action code for the item)

E1EDP19_QUALF="002" (qualifier for supplier material nr)

E1EDP19_IDTNR="000000000000016297" (supplier material nr)

But in WE05 after processing it says "Credit Memo Request 1106774 has been saved" - I have no idea where its getting a reference to this credit memo from ;o(

Any ideas?

Cheers.

rmazzali
Active Contributor
0 Kudos

have a look to the E1EDK01-ACTION field in the idoc :

'002' Changes in document header

'003' Changes in one or more items

'004' Changes in header and items

Roberto

Former Member
0 Kudos

Hi Roberto,

Thanks for the input, unfortunately I also tried with these qualifiers and no difference, I still do not understand why its making a reference to a credit memo when I am specifically directing it to a sales order ;(

Confused.

Rob.

Former Member
0 Kudos

Hi,

Can u tell me the steps to create a sales order using idoc, i've created a bapi but thats a temprory use. I wanted to created a sales order automatically when a purchase order is saved.

Please let me know if u can help me, i wanted to do it using idoc.

Regards

Sanju

Former Member
0 Kudos

Hi Sanju,

You should post this as a new question!

But, no I dont know how to do it automaticaly when a PO is created ;(

Former Member
0 Kudos

Hi Rob,

Can you check whether credit memo is available in document flow of sales order # 0000427232.

Thanks,

Samir

Former Member
0 Kudos

Hi,

No, its just an open sales order with no workflow.

Also, if I run this IDOC in foreground with trans WE19 wuing FM IDOC_INPUT_ORDCHG I can see straight away its going to the change sales order screen but entering document number 0001106774.

So could something be wrong with my FM ?

cheer

Rob

Former Member
0 Kudos

check you IDOC CONTROL RECORD.

Former Member
0 Kudos

Hi Rob,

have you solved the problem with the wrong document number?

I have the same problem - can you tell me the solution?

Best Regards

Michael

Former Member
0 Kudos

Hi Michael,

No - I still have the same problem ;o(

Does anybody have any ideas?

Rob