cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI Mandatory Fields

Former Member
0 Likes
2,957

I am calling BAPIs through the Newtweaver JCO proxy classes . However how can I identify which attributes of the specific bapi are mandatory. The bapi explorer in SAP shows only the import parameters that are mandatory. how could I know which attributes in the ABAP Dictionary are mandatory....?

View Entire Topic
MichalKrawczyk
Active Contributor
0 Likes

hi,

>>The bapi explorer in SAP shows only the import parameters that are mandatory. how could I know which attributes in the ABAP Dictionary are mandatory....?

you can never find it out like this as most bapis can be used

to perform many types of one transaction

like for example you can create a normal purchase order

or a purchase order with some special line type

for both of them you will use one BAPI

but with different sets of mandatory fields

so there is no way to find out IN GENERAL

which fields are mandatory - that always depends on the process details

ABAP dictonary nor importing the definition into XI will not give you this info

Regards,

Michal Krawczyk

Former Member
0 Likes

So if i am looking for a particular module (not in general)..how can i check which of them are mandatory...Is there any way...?

MichalKrawczyk
Active Contributor
0 Likes

Hi,

>>So if i am looking for a particular module (not in general)..how can i check which of them are mandatory...Is there any way...?

no - as I mentioned even one function module

can be used in many ways - so there is no way to find out IN GENERAL

one module can handle many variants of the same process and all of them

will require different fields

Regards,

Michal Krawczyk

Former Member
0 Likes

Then how is it that SAP throws an error message saying 'so and so fields are missing'...there must be some place where all this is defined...

MichalKrawczyk
Active Contributor
0 Likes

hi,

>>Then how is it that SAP throws an error message saying 'so and so fields are missing'...there must be some place where all this is defined...

sure there is - inside the code

you can check the whole code and you will know for sure then

Regards,

Michal Krawczyk

Former Member
0 Likes

>

> Then how is it that SAP throws an error message saying 'so and so fields are missing'...there must be some place where all this is defined...

In the documentation as well.