2009 May 14 9:25 AM
Hi,
Is there some way to find out which all feilds are mandatory in different segments of the IDoc?
I can only see mandatory segment but dont know how to find the mandatory feilds.
By mandatory feilds i mean the feilds which are required to be populated otherwise the IDoc cannot be posted successfully.
Regards
2009 May 14 9:31 AM
Hi,
Mandatory fields can be known only by running the business transaction.
suppose if you want the mandatory fields of Sales order (ORDERS) idoc then you first try to cretae sales order thru VA01 and find which are all the fields need to be filled to craete salesorder.( like order type/salesorg/plant).
Then these fields needs to be filled in idoc by your interface program .
Regards,
Naveen
2009 May 14 9:30 AM
You can check in this table.
Table : IDOCSYN
Field : MUSTFL ( Flag: Mandatory entry )
2009 May 14 9:34 AM
Like Rahsmi already mentioned, these are all SEGMENTS and not individual fields.
I don't think there is an easy way of doing this, if possible at all. While processing the IDoc several FM / BAPI's are called which check the individual fields. So you would have to do the same up front, by calling these BAPI (simulate them) and determine which fields are mandatory.
2009 May 14 9:38 AM
Hi Gauthan .. what you mentioned lists out the mandatory segment only.
My Question is the feilds in the segment....which are mandatory to be filled... otherwise the IDoc wont be created.
Can you please help
Regards
2009 May 14 9:47 AM
Yes absolutely correct Micky. Would also like to add one more point that even when we create the application (like Orders) it is not helping ... since while creation suppose you create with all madatory feilds then also when an IDoc is triggeref it is showing errors.
The Option you suggested in the thread simulation of all the BAPIs can you hint how to go ahead with this or any other methodology will be helpful.
Regards
2009 May 14 9:53 AM
Hello Rashmi,
Totally agree with Micky. The only way to do this is by testing through WE19, or you can check if there are any associated processing FMs which check for the field values before creating the Idoc.
while creation suppose you create with all madatory feilds then also when an IDoc is triggeref it is showing errors
Can you plz explain in detail?
BR,
Suhas
2009 May 14 9:58 AM
Hi,
In WE19 -> Give IDOC no.
Now click STANDARD INBOUND.There u can find the process code.In WE42, Give position and find the process code in the list. Double click on it.U can find the Function module or BAPI attached to it.
Regards,
Nithya
2009 May 14 9:31 AM
Hi,
Mandatory fields can be known only by running the business transaction.
suppose if you want the mandatory fields of Sales order (ORDERS) idoc then you first try to cretae sales order thru VA01 and find which are all the fields need to be filled to craete salesorder.( like order type/salesorg/plant).
Then these fields needs to be filled in idoc by your interface program .
Regards,
Naveen
2009 May 14 9:32 AM
Hi,
That is not possible by using IDOC.
U can create the application first manually ,find the mandatory fields and try giving all the fields in the IDOC.
Thanks,
Nithya