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 Mandatory feilds

Former Member
0 Likes
1,362

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
Read only

Former Member
0 Likes
1,201

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

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
Read only

GauthamV
Active Contributor
0 Likes
1,201

You can check in this table.

Table : IDOCSYN

Field : MUSTFL ( Flag: Mandatory entry )

Read only

Sm1tje
Active Contributor
0 Likes
1,201

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.

Read only

Former Member
0 Likes
1,201

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

Read only

Former Member
0 Likes
1,201

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

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,201

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

Read only

Former Member
0 Likes
1,201

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

Read only

Former Member
0 Likes
1,202

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

Read only

Former Member
0 Likes
1,201

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