Application Development and Automation 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: 
Read only

message ORDERS05 IDOC problem

Former Member
0 Likes
1,242

Hello everyone!!!



My name is Rocio, I'm a new developer on IDOCS and I have a problem with de message ORDERS05.
I'm forming an STANDARD INBOUNT IDOC for Transaction VA02

I want to put a field (Assignment - ZUONR ) that is on Header>Accounting. in VA02(Transaction).

I use the segment E1EDK02 QUALF 017 : Assignment Number

But when I generated my idoc, this field is ok, but when I go to see the order..this field doesn't appear its empty...

Can anyone help me because i don´t why is this happened?

And i need this file with an IDOC value. because we are going to use this value in the invoice.

Thanks for your help!!!

Title was edited by:

Alvaro Tejada Galindo

4 REPLIES 4
Read only

ferry_lianto
Active Contributor
0 Likes
887

Hi Rocio,

Welcome to SDN.

Please try to use user exits EXIT_SAPLVEDA_001 and populate DXVBAK-ZUONR with segment E1EDK02 QUALF 017 value.

Regards,

Ferry Lianto

Please reward points if helpful.

Read only

0 Likes
887

Hello Ferry!!

Thanks for your help, as i told you before, i'm new on this topic.

Could you please explaime mor about this :

Please try to use user exits EXIT_SAPLVEDA_001 and populate DXVBAK-ZUONR with segment E1EDK02 QUALF 017 value.

I already find the user exit, but i dont understand what do you mean with populate DXVBAK-ZUONR with segment E1EDK02 QUALF 017 value.

Thanks Again.

Read only

ferry_lianto
Active Contributor
0 Likes
887

Hi Rocio,

I can't find any logic in FM IDOC_INPUT_ORDERS to handle segment E1EDK02 QUALF 017 in order to populate value VBAK-ZUONR.

Having said that there is user exits available EXIT_SAPLVEDA_001 which you can use for your purpose. I assumed you are familiar working with user exits.

In the above user exits, you can try something like this.


DATA: WA_E1EDK02 LIKE  E1EDK02.

MOVE IDOC_DATA-SDATA TO WA_E1EDK02.

IF WA_E1EDK02-QUALF = '017'.
  MOVE WA_E1EDK02-<field name> TO DXVBAK-ZUONR.
ENDIF.

Regards,

Ferry Lianto

Read only

0 Likes
887

Hi experts,

I take this post to ask a new (added) question:

We would like to know how to insert a value for ZUONR vía IDOC_INPUT_ORDERS

We already know that we must implement user exit EXIT_SAPLVEDA_001 in order to get from one segment of the ORDERS IDOC the value we want to insert into ZUONR.

But when we analyze the following logic of the function module we see that the way SAP is generating the order is vía call transaction of VA01, and it seems that there's no vbak-zuonr field in the bdcdata structure passed to the call transaction.

We assume that we need to implement the user exit EXIT_SAPLVEDA_002 to append the vbak-zuonr field with the proper value to the bdcdata structure, but we would like to know if there is some previous note explaning the way to do it or if there's other easier way to reach the same result.

Thanks.