Games midtown madness 3 full version. Configuration of serial number SN02 incompatible with document. With an unsuitable configuration to a configured document item. Serial Number in SAP IS. Serial numbers used twice. Flaw in SAP - Even we use serial number. In the following ABAP Sample Code, we will be using 311 for Transfer of storage location to storage location in one step. Equipment / Serial Number Data Once the header and the Items are set for Material Document, we have to set the equipment Within a loop of equipment ( Serial Number), for each serial Number found for the material in the item, we add a new line to GOODSMV_SERIALNUMBER with the following data: • GOODSMV_SERIALNUMBER-matdoc_itm = 1 • GOODSMV_SERIALNUMBER-serialno = “the serial number” ABAP Simple Code. ' Set GM_CODE goodsmvt_code-gm_code = '04'. ' Transfer Posting ' Set Header Line goodsmvt_header-pstng_date = sy-datum. Goodsmvt_header-doc_date = sy-datum. Goodsmvt_header-header_txt = header_txt. '# a description as input goodsmvt_header-pr_uname = sy-uname. ' Set Item line goodsmvt_item-material = p_matnr. Goodsmvt_item-plant = p_werks_out. Goodsmvt_item-stge_loc = p_lgort_out. Goodsmvt_item-move_type = '311'. Goodsmvt_item-entry_qnt = p_qty. '# Set your quantity goodsmvt_item-move_plant = p_werks_in. Goodsmvt_item-move_stloc = p_lgort_in. Goodsmvt_item-mvt_ind = '. Append goodsmvt_item to goodsmvt_itemt. ![]() ' set Equipement LOOP AT lt_serial into ls_serial. Goodsmv_serialnumber-matdoc_itm = 1. Best kali linux version. Goodsmv_serialnumber-serialno = ls_serial-serialnr. Append goodsmv_serialnumber to goodsmvt_serialnumber. ' Call Good Movement Creation BAPI call function 'BAPI_GOODSMVT_CREATE' exporting goodsmvt_header = goodsmvt_header goodsmvt_code = goodsmvt_code testrun = p_testrun '# 'X' 'testrun importing materialdocument = materialdocument matdocumentyear = matdocumentyear tables goodsmvt_item = goodsmvt_itemt goodsmvt_serialnumber = goodsmvt_serialnumber return = return. If return[] is initial and p_testrun EQ ' '. ' commit Transaction call function 'BAPI_TRANSACTION_COMMIT' exporting wait = 'X'. ' Error -> Roll Back call function 'BAPI_TRANSACTION_ROLLBACK' endif.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |