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

BAPI for usage decision QA11/QA32

0 Likes
9,425

Hi,


I want to create report from we can post usage decision of inspection lot i want BAPI for same .I want to give stock ,UD code and group ....

Open QA11 transaction Enter the Inspection Lot Number Hit enter Now at the bottom you see Usage decision . Select it from F4 or enter something and Hit Enter also i want to some stock To unrestricted ,To scrap, To blocked stock etc. I have tried " BAPI_INSPLOT_SETUSAGEDECISION" its not working,if this only BAPI for this suggest me required input fields to BAPI .

Thanks.

3 REPLIES 3
Read only

Former Member
0 Likes
4,617

Hi,

Kindly send your code for calling the BAPI.

BAPI_TRANSACTION_COMMIT has to be explicitly used with this BAPI only then your usage decisions will be saved.

Otherwise just check once with the above BAPI documentation in case you have passed wrong parameters.

Also this BAPI will only set usage decisions in case UD for a particular inspection lot has not been posted.

Read only

0 Likes
4,617

Hi ,

Thanks for reply

    Passed these parameter to BAPI after that called BAPI_TRANSACTION_COMMIT


   t_bapi2045ud-INSPLOT = 010000181159.

   t_bapi2045ud-UD_PLANT = 'KDGN'.

   t_bapi2045ud-UD_SELECTED_SET = '001'.

   t_bapi2045ud-UD_CODE_GROUP = '001'.

   t_bapi2045ud-UD_CODE = 'A'.

*  t_bapi2045ud-UD_STOCK_POSTING = 'X'.

   t_bapi2045ud-UD_FORCE_COMPLETION = 'X'.

   APPEND  t_bapi2045ud.


I am  having confusion on passing values to fields UD_SELECTED_SET, UD_CODE_GROUP, UD_CODE .From which table can i get these values or which values to be pass.

Thanks.

Read only

0 Likes
4,617

Hi Pravinkumar,

In QA11, in the Usage Descision section of the screen, there is a field UD Code (this has two white parameter blocks to enter values) , on is the UD Code and the other is the UD Code Group