Solution 1. Include: LMRMDF0H Form: t_drseg_aufbauen_pruefen_1 at the end of form code I cleared position tax code in a loop: ENHANCEMENT 1 ZMUK_MIRO_TAXCODE_EDIT. "active version FIELD-SYMBOLS <ls_drseg> LIKE LINE OF t_drseg[]. LOOP AT t_drseg ASSIGNING <ls_drseg>. CLEAR <ls_drseg>-mwskz. ENDLOOP. ENDENHANCEMENT. After that, system is propagating tax code automatically from MIRO header to all the items. * 如採用Solution1有可能在SAP升級後,標準程式恢復原版,客製的部分就會被蓋掉 Solution 2. BAdI: EXTENSION_US_TAXES Method: MM_ITEM_TAX_MODIFY method IF_EX_EXTENSION_US_TAXES~MM_ITEM_TAX_MODIFY. IF I_RBKPV-MWSKZ1 <> I_DRSEG-MWSKZ. "header tax <> item tax E_MWSKZ = I_RBKPV-MWSKZ1. "item tax = header tax E_CHANGE = 'X'. ENDIF. endmethod. or Function: MRM_BADI_TAX_DATA_CHANGE
Possible cause 1: GR posting month of inspection lot is not opened, so after execute BAPI, it will be error QV 054: Error during quantity posting for inspection lot xxxxxxxxxxxx, manual proc. Required Possible cause 2: SAP NOTE: 1959967 Reproducing the Issue Execute add-on program which calls BAPI_INSPLOT_SETUSAGEDECISION, sometimes error QV 054 happens. Cause Statements like "commit" and "commit work" is used in customer own coding. These could cause possible inconsistencies. Resolution Please make sure there is no statements like "commit" and "commit work" in your own coding. See Also Report ZQEVAC22 in note 174877 should help detect and correct the UD code inconsistency.
Solution 1. Try This Program.... 直接作程式間的COPY Report copy_layout. data : lt_ltdx like ltdx occurs 0 with header line. data : lt_ltdxt like ltdxt occurs 0 with header line. parameters report like ltdx-report obligatory. parameters report2 like ltdx-report obligatory. "copy layout of report to report2. start-of-selection. select * into table lt_ltdx from ltdx where report = report. select * into table lt_ltdxt from ltdxt where report = report. loop at lt_ltdx. lt_ltdx-report = report2. modify ltdx from lt_ltdx.. endloop. loop at lt_ltdxt. lt_ltdxt-report = report2. modify ltdxt from lt_ltdxt.. endloop. message 'Copy Complete.' type 'I'. Solution 2. 直接使用來源程式的Layout Instead of sy-repid, G_VARIANT-REPORT = SY-REPID. SY-REPID 為複製Layout的來源程式...
留言
張貼留言