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

Idoc ORDERS

Former Member
0 Likes
2,802

Hi,

The requirement is to update the sales order idoc with the contract data (particulary contract date).

Inbound Idoc

Idoc type : ORDERS

Please let me know how should i map the contract date fields to the IDOC.

Thanks in Advance

10 REPLIES 10
Read only

former_member376453
Contributor
0 Likes
1,607

Are you creating a SO, with contract data or you want to change an existing SO, with contract data.

Kuntal

Read only

0 Likes
1,607

Yes, iam creating a new SO with contract data. It is an inbound idoc. All the data is read from a file and i need to map the contract data to the idoc type ORDERS.

Contract data mapping at header level. Segment E!EDK03 maps the date field but not sure which value in qualifier maps it.

Regards

Read only

0 Likes
1,607

If you are only looking for the E1EDK03 qualifier, then goto SE11 -> give E1EDK03 -> Double click on EDI_IDDAT -> Double click on IDDAT -> Clieck on Value Range tab.

Here you will get all the available Qualifier. You can use any other value in this IDDAT field as qualifier. In that case you need to write code for yourself.

Kuntal

Read only

0 Likes
1,607

hi,

Iam trying to map the contract date field from the file to the idoc type as its an inbound idoc. It will read SO data from a file and triggers inbound idoc.

In segment E1EDK03 its for header date - but i didn't found any particular qualifier for the contract date.

My requirement is just to map the contact date field - so that it will create record in the contract table VEDA and sales order with the relevant details. So, just guide me how to process it.

Read only

0 Likes
1,607

Then you can just pass that value in E1EDK03, with IDDAT with a value which has not been used by SAP, that is not listed in domain. IDOC_INPUT_ORDERS, do a BDC to VA01. There is one exit, where you can modify the standard BDC data, and insert your code. EXIT_SAPLVEDA_002.

Kuntal

Read only

0 Likes
1,607

Hi

Is your scenario is EDI process. Because if this is EDI process then only Qualifier values are considered. SAP code match these values with values present in standard document (Like EDI850 for purchase orders).

And mapping of these documents should also be done in middle ware. So if you dont want to change code at SAP side then change mapping in middleware for EDI document.

Regards

Pranay Gupta

Read only

0 Likes
1,607

Hi,

Its not an EDI process.

Iam using Inbound idoc to create a Sales Order.

Iam reading the data from a file and in a Z program mapping the file data into Idoc segments.

Iam not able to map the contract data in the idoc type ORDERS.

Simple explaination

Requirement: Creat a sales order with Contract data.

Input - File in Application server

Medium - Z program to trigger and create an inbound idoc (ORDERS)

Output - Sales order creation.

Problem: Unable to map the contract data into the Idoc segments.

Approach:

I have to mandatory trigger the idoc -

1) While passing the data - i have to map to the segment.

2) After the SO is created - i have to update with contract data.

At first, iam trying for the approach 1.

Please help me - If there is any other process that i need to follow to see the contract details in the sales order.

Thanks in Advance

Read only

0 Likes
1,607

Hi,

For contracts we could use BLAORD idoc type.

Hope it helps.

Regs,

Venkat

Read only

Former Member
0 Likes
1,607

Hi,

If this updating is limited to only few idocs and the corresponding field is available in idoc then you can edit the idoc in WE02->double click on data record segment->data record->change or in WE19 also you can change the data.

If field is not available in the idoc you can go for custom idoc and corresponding logic to update field in user-exit.

Thanks,

Asit Purbey.

Read only

Former Member
0 Likes
1,607

hi,

If you want to contract data to ORDERS msg type, first check whether E1EDK03 is created or not , if not create a segment and add the data..

Regards

Sathish