on 05-13-2008 5:34 PM
Hello Folks:
I am working on File to IDOC scenario.From file I need to
update vendor Info record.
For this I need to do it via two steps or two inbound idocs.
Step1:Idoc INFREC01 to update vendor info record(from file)
Step 2:Idoc COND_A01 to update conditions(same file)
Source file is one(from vendor) and I need to feed it to two inbound idocs in SAP and post the vendor info application data.
Question1:
Source file has exactly 5 fields and in IDOC I have more fields.I mapped five from source to five to idoc.Rest mandatory fields in IDOC I had to initialise it to constant values or else the inbound idoc would fail.
For Example:The below values are not coming from Source file
but I need to have the following .
How to do this ?
Question2:How to map the Control record of idoc.No information in source file?
My mapping is not having these fields in Source but I need to hard code in target filed which is idoc.
E1KOMG-KVEWE = 'A'
E1KOMG-KOTABNR = '017'
E1KOMG-KAPPL = 'M'.
Your response is appreciated.
Thanks,
I have awarded points for your kind answers.
Thanks as Always,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kumar,
Here is the solution:
Map available source element to target elements. If its mandatory field in target side map constant. In special case sometimes the source is not coming but the target should be mandatory means you want to check the condition.
Source element -length-greater than (0) then map to Target element else map to constant.
In control records you need to hard code the constant values.
Using test tab you can able to test the map. So that you can determine the source and required target structure
Thanks
Boopathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Gabriel for how to map control record.
Other than the control record of the idoc ,I need to
populate some constants for the idoc segments.
How to populate /hard code constants for the idoc segments??
The source file does not provide the following fields(KVEWE ,KOTABNR,KAPPL)and the field values(A,017,M).So I cannot map to idoc segments from the source file.
Say something like below but I need to populate the mandatory fields as below to post an idoc.
E1KOMG-KVEWE = 'A'
E1KOMG-KOTABNR = '017'
E1KOMG-KAPPL = 'M'.
Thanks,
Kiran.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
map the Control record of idoc
**********************************
In your config, Have "Apply Control record Value from Payload" checked.
In the mapping do NOT disable the control rec, but put empty constants on mandatory fields. Then you can set whatever you want, including the SNDPRN, SNDPRT, SNDPFC, RCVPRN, RCVPRT, RCVPFC
http://help.sap.com/saphelp_nw04/helpdata/en/13/95244269625633e10000000a155106/frameset.htm
XI: IDOC Adapter - EDI_DC40 - demystified
/people/michal.krawczyk2/blog/2005/09/01/xi-idoc-adapter--edidc40--demystified
Manipulating Idoc Control Records from Payload
/people/sravya.talanki2/blog/2005/12/02/manipulating-idoc-control-records-from-payload
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.