Application Development 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: 

Miro: When enter op number,fill a special value into SGTXT automatically

Former Member
0 Kudos

Hi guys

When user inputs the PO number, PO description will be filled into the field TEXT on the line item automatically. So user can view it

After my testing again and again, I did not find there is an optional user exit or badi(listed below) to meet this requirement.

It would be great enough if you can help me resolving this issue ASAP.

BADI: invoice_update

User Exit:

LMR1M001 User exits in Logistics Invoice Verification

LMR1M002 Account grouping for GR/IR account maintenance

LMR1M003 Number assignment in Logistics Invoice Verification

LMR1M004 Logistics Invoice Verification: item text for follow-on docs

LMR1M005 Logistics Inv. Verification: Release Parked Doc. for Posting

LMR1M006 Logistics Invoice Verification: Process XML Invoice

MRMH0001 Logistics Invoice Verification: ERS procedure

MRMH0002 Logistics Invoice Verification: EDI inbound

MRMH0003 Logistics Invoice Verification: Revaluation/RAP

MRMN0001 Message output and creation: Logistics Invoice Verification

Thanks a lot.

-Daniel

1 REPLY 1

Former Member
0 Kudos

i have fix the bug.

IF_EX_AC_DOCUMENT~CHANGE_INITIAL

IF NOT sy-tcode = 'MIRO'.

EXIT.

ENDIF.

  • Variant

FIELD-SYMBOLS: <fs_table> TYPE ANY TABLE,

<fs_line> TYPE ANY,

<fs_ktosl> TYPE accit-ktosl,

<fs_buzid> TYPE accit-buzid,

<fs_sgtxt> TYPE accit-sgtxt.

DATA: lv_sgtxt TYPE accit-sgtxt.

  • Get the SGTXT value on the Basic data tab

ASSIGN ('(SAPLMRMP)XACCIT[]') TO <fs_table>.

  • Checking the field symbol

IF <fs_table> IS NOT ASSIGNED.

EXIT.

ENDIF.

LOOP AT <fs_table> ASSIGNING <fs_line>.

IF SY-TABIX = 1.

ASSIGN COMPONENT 'SGTXT' OF STRUCTURE <fs_line> TO <fs_sgtxt>.

lv_sgtxt = <fs_sgtxt>.

EXIT.

ENDIF.

ENDLOOP.

IF lv_sgtxt IS INITIAL.

EXIT.

ENDIF.

  • Fill the long text(SGTXT) into the tax item line

LOOP AT <fs_table> ASSIGNING <fs_line>.

ASSIGN COMPONENT 'BUZID' OF STRUCTURE <fs_line> TO <fs_buzid>.

IF <fs_buzid> = 'T'.

ASSIGN COMPONENT 'SGTXT' OF STRUCTURE <fs_line> TO <fs_sgtxt>.

IF <fs_sgtxt> = space.

<fs_sgtxt> = lv_sgtxt.

ENDIF.

ENDIF.

ENDLOOP.

Thanks a lot.