‎2010 Apr 29 12:24 PM
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.
‎2010 Apr 29 12:32 PM
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
‎2010 Apr 29 12:36 PM
‎2010 Apr 29 12:41 PM
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
‎2010 Apr 29 12:43 PM
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
‎2010 Apr 29 12:52 PM
‎2010 Apr 29 12:57 PM
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.
‎2010 Apr 29 12:58 PM
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
‎2010 Apr 29 1:09 PM
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.
‎2010 Apr 29 1:13 PM
Bill of Lading field is not available in MB1C screen. But check the relevance of this field in specific scenarios.
Regards
Vinod
‎2010 Apr 29 2:45 PM
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...