on 11-07-2015 2:59 AM
Hi All,
I have a problem.Our abaper develops a function module that integrates the Goods receipt to QI stock and set usage decision posting the QI stock to unrestricked stock together.And we get a problem.If we post the GR in the next month,when the fm execute the second step there will be a problem.I think it's caused by deficit of project stock QI prev period.But we can't find the import parameter of document post date of the bapi.So anyone know how to deal with the problem.Thanks a lot
Hi Ye Wan,
I am using the same BAPI and its working for the date the user confirms it.
You can find the code below.
"" GET DETAILS IN TABLE QPAC ""
st_SetUsg_BAPI-wa_UD_DATA-INSPLOT = st_Sel-INSPLOT.
st_SetUsg_BAPI-wa_UD_DATA-UD_SELECTED_SET = '03'.
st_SetUsg_BAPI-wa_UD_DATA-UD_CODE = 'A'.
st_SetUsg_BAPI-wa_UD_DATA-UD_CODE_GROUP = '03'.
st_SetUsg_BAPI-wa_UD_DATA-UD_PLANT = '0001'.
st_SetUsg_BAPI-wa_UD_DATA-UD_RECORDED_BY_USER = SY-UNAME.
st_SetUsg_BAPI-wa_UD_DATA-UD_RECORDED_ON_DATE = SY-DATUM.
st_SetUsg_BAPI-wa_UD_DATA-UD_RECORDED_AT_TIME = SY-TIMLO.
st_SetUsg_BAPI-wa_UD_DATA-UD_TEXT_LINE = 'Confirmation'.
st_SetUsg_BAPI-wa_UD_DATA-UD_FORCE_COMPLETION = 'X'.
st_SetUsg_BAPI-wa_UD_DATA-UD_STOCK_POSTING = 'X'.
st_SetUsg_BAPI-wa_LANGUAGE-LANGU = 'E'.
st_SetUsg_BAPI-wa_LANGUAGE-LANGU_ISO = 'EN'.
CALL FUNCTION 'BAPI_INSPLOT_SETUSAGEDECISION'
EXPORTING
NUMBER = st_Sel-INSPLOT
UD_DATA = st_SetUsg_BAPI-wa_UD_DATA
LANGUAGE = st_SetUsg_BAPI-wa_LANGUAGE
IMPORTING
UD_RETURN_DATA = st_SetUsg_BAPI-wa_UD_RETURN_DATA
STOCK_DATA = st_SetUsg_BAPI-wa_STOCK_DATA
RETURN = st_SetUsg_BAPI-wa_RETURN.
Hope it helps,
Regards,
Anirudh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.