on 04-29-2010 4:02 AM
hi all,
i am doing idoc mapping,i have some of the fiellds mandatory and some of the fields optional,my requirement is, If mandatory field is empty in the IDOC then this transaction would be rejected at PI,for this where i need to maintain the condition.
Thanks in advance,
AVR
Hi all,
solved my problem.
Thanks & Regards,
AVR
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi AVR,
Your requirement is very simple, try developing with sample mapping and proceed like below....
make all your target structure fields(which are mandatory) occurance as 1..1. and map the source fields to these target fields(which occurance is 1..1) after checking empty or not. For checking empty or not simply use Boolean function if
Thanks,
madhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
As per understanding you dont want to post the IDOC if any Mandatory field is missing. If so you can write an UDF and map it to Root node of the target structure.
1. Pass all Mandatory fields in UDF and check any field is empty.
2. If not empty use the Createif node function to create the target structure.
If not please ealborate your sceanrio.
Regards
Ramg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi ram kumar,
my data structure is
Idoc header
mandatory progarm run date
Mandatory Runidentification
optional vendorcity
mandatory house bank
optional postalcode
Idoc advice
optional payment location
optional invoicedate
here my requirement is under IDOC Header any one of mandatory field is empty ,the transaction have to reject at pi
can u give me the UDF code
thanks ,AVR
For mandatory fields at target side if they are not mapped (if source field is missing) then mapping itself will fail.
Just be careful that your mapping should not add the empty value to mandatory fields in case of your source data is missing otherwise it will pass the mapping without any problems.
Put a condition to check if source field is not empty then only map to target fields. This will ensure to fill the mandatory fields with some values else mapping will fail.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
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.