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

Assignment field in ORDERS05

Former Member
0 Likes
4,599

Hi,

I'm using inbound IDOC ORDERS05 to Create a Sales order. I have a requirment to populate the Assignment Field....VBAK-ZUONR.

I'm currently using segment E1EDK02, my Qualifier is 017 : Assignment number, and BELNR is populated with the required number. But yet when I create the sales order, this field is not populated.

I am also using qualifier 009 to populate the invoice number, and this is working fine, is there something different I should be doing to include 2 different reference documents, using structure E1EDK02.

Any idea's where I am going wrong?

Thanks,

Tyrone.

Hi,

I'm using inbound IDOC ORDERS05 to Create a Sales order. I have a requirment to populate the Assignment Field....VBAK-ZUONR.

I'm currently using segment E1EDK02, my Qualifier is 017 : Assignment number, and BELNR is populated with the required number. But yet when I create the sales order, this field is not populated.

I am also using qualifier 009 to populate the invoice number, and this is working fine, is there something different I should be doing to include 2 different reference documents, using structure E1EDK02.

Any idea's where I am going wrong?

Thanks,

Tyrone.

8 REPLIES 8
Read only

Former Member
0 Likes
2,481

Hi,

Before adding one more qualifier 009, are you appending the structure to E1EDK02.

like:

data: gs_e1edk02 type e1edk02,

gt_e1edk02 type table of e1edk02.

gs_e1edk02-QUALF = '017'.

gs_e1edk02-BELNR = 'Assignment number'.

append gs_e1edk02 to gt_e1edk02.

gs_e1edk02-QUALF = '009'.

gs_e1edk02-BELNR = 'Invoice number'.

append gs_e1edk02 to gt_e1edk02.

Regards,

Shailaja

Edited by: Shailaja on Aug 8, 2008 12:59 PM

Read only

0 Likes
2,481

Yes, I am. I'm populating the 009 part first, then the 017 part, each section is appended.

If I check the IDoc itself, it has the segments populated with both 009, and 017, yet it still doesn't add the assignment.

Read only

0 Likes
2,481

You'll need to handle this with ABAP code in user exit ZXVEDU03.

Read only

0 Likes
2,481

Thanks,

I've added code into ZXVEDU03, but am not sure which indicator to populate in structure D_FLAG_K for Assignment (017). Any Idea's?

Thanks,

Tyrone.

Read only

0 Likes
2,481

Hi Tyrone / Amandeep Chahal

Try this way..

Idoc Type : orders05

Segment: E1EDK02

QUALF 017 : Reference document

BELNR <Number> : Document number

DATUM <Date> : Date

we need pass the Assignment Number value in user exit

user exit Fm : EXIT_SAPLVEDA_001 (SD EDI Incoming Orders: Reading Additional Data from IDOC)

INCLUDE ZXVEDU03.

when idoc hit the user exit

at segment E1EDK02 with QUAL 017

Modify the DXVBAK and pass value to ZUONR

then exit the loop of SEGMENT-SEGNAM

(VALUE(SEGMENT) LIKE EDIDD STRUCTURE EDIDD OPTIONAL)

This will work ...

I Think above info helps you

ThanKS

Ramesh

Read only

Former Member
0 Likes
2,481

Hi Tyrone,

I have the same issue, i need to populate assignment field in the sales order using ORDERS05.

Did you find any solution for this issue?

Thx,

Aman

Read only

Former Member
0 Likes
2,480

We had the same issue and was resolved in the following way.

1. Refer to SAP Note 753153 - FAQ: Customer-functions in

IDOC_INPUT_ORDERS

Check the user exit EXIT_SAPLVEDA_002 -> include ZXVEDU04

This function is called form CUSTOMER_FUNCTION_DYNPRO and enables

you to enhance the dynpros for the call-transaction of VA01.

We successfully used this user exit to update the VBAK-ZUONR field in the sales order.

A structure dxbdcdata is passed to this user exit.

Append the appropriate OKCODE value, screen number and value to VBAK-ZUONR field.

CLEAR dxbdcdata.

dxbdcdata-fnam = 'BDC_OKCODE'.

dxbdcdata-fval = 'T\04'. -


> this is the OKCODE for accounting tab in VA01

APPEND dxbdcdata.

CLEAR dxbdcdata.

dxbdcdata-program = programm_auftrag.

dxbdcdata-dynpro = '4002'. -


> Screen number for VA01

dxbdcdata-dynbegin = 'X'.

APPEND dxbdcdata.

CLEAR dxbdcdata.

dxbdcdata-fnam = 'VBAK-ZUONR'. -


> Assignmnet field

dxbdcdata-fval = 'TEST123XXX'. -


> Assign the Assignment value from the IDOC segment E1EDK02 , Qaulifier 017

APPEND dxbdcdata.

Hope this helps.

Jay

Read only

Former Member
0 Likes
2,480

Hi Tyrone,

Create a sales order with all values and issue a order responce IDOc. The idoc (ORDRSP - ORDERS05) will contain all the values like an order. And check now which qualifiers are used by the standard SAP. Follow the same for orders.

--

Reddy