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

Difference between BAPI posting and manual posting.

Former Member
0 Likes
1,364

Dear Experts,

I have a requirement.

I am doing transfer posting thru BAPI BAPI_GOODSMVT_CREATE.

After posting when I display the document, I get the transaction thru which posting is done is MB1B.

Now I have to restrict users to do manual posting thru MB1B.

So I wanted to know if der is a way we can find out the difference between the manual posting and Posting done thru BAPI.

some flag or some variable is set so that with the use of BADI or exit I can restrict the user by checkin dat variable or flag.

Thanks,

Anil.

10 REPLIES 10
Read only

Former Member
0 Likes
1,234

Pass the value "Through BAPI" in the structure field "goodsmvt_header-HEADER_TXT" While calling BAPI.

Material document header text will be updated with this value, which will help to differnciate between documents created through BAPI and standard transaction code

Regards

Vinod

Edited by: Vinod Kumar on Apr 29, 2010 5:03 PM

Read only

0 Likes
1,234

This message was moderated.

Read only

0 Likes
1,234

You want to differenciate between the entries created through BAPI & Manual Posting OR you want to put some validation while posting the document ? explain the scenario.

Regards

Vinod

Read only

0 Likes
1,234

Hi

Have you considered the maintaining the one indicator field in append structure and

updating it as say 'B' in when calling the BAPI

regards

sateesh

Read only

0 Likes
1,234

This message was moderated.

Read only

0 Likes
1,234

to sateesh, I didnt get u which field r u talkin about....

u mean to say i create an append structure an update it wid X while BAPI posting....

to Vinod, I want to get a difference betn posting thru BAPI and manual BAPI.

Thanks,

Anil.

Read only

0 Likes
1,234

I think the option here is to pass a different value in Header which is not displayed in MB1C where user do the data entry. May be "BILL_OF_LADING" will be helpful. (Have to check the relevance of this field .. will it contain genuine value in any scenarios??)

Also check the financial accounting document related to the Material documents, is there any differnce between BKPF-AWTYP?

Regards

Vinod

Edited by: Vinod Kumar on Apr 29, 2010 5:30 PM

Read only

0 Likes
1,234

I too was thinkin abt d same thin...

But if sum1 update d same field manualy...

I need to check a field which is not present on screen so dat user never manualy tries to update it..

Thanks,

Anil.

Read only

0 Likes
1,234

Bill of Lading field is not available in MB1C screen. But check the relevance of this field in specific scenarios.

Regards

Vinod

Read only

brad_bohn
Active Contributor
0 Likes
1,234

You don't have to set values in fields in order to tell the difference between the calls. That's just wasting a usable field and it doesn't make sense to users. The more commonly used BAPIs typically set flags in global memory so that the (shared) code can distinguish between the types of calls. This BAPI call is no different. Check the BAPI code and you'll see what I mean...