Application Development 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: 

IDoc Mandatory feilds

Former Member
0 Kudos
243

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos
82

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

8 REPLIES 8

GauthamV
Active Contributor
0 Kudos
82

You can check in this table.

Table : IDOCSYN

Field : MUSTFL ( Flag: Mandatory entry )

Sm1tje
Active Contributor
0 Kudos
82

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.

Former Member
0 Kudos
82

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

Former Member
0 Kudos
82

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

0 Kudos
82

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

Former Member
0 Kudos
82

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

Former Member
0 Kudos
83

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

Former Member
0 Kudos
82

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