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

*calling MIR7 tcode

Former Member
0 Likes
571

Hai All,

Problem is when try to call MIR7 tcode in my workflow it showing without other Invoice document(Ctrl +F10) button. but when i call induvidually (/nMIR7) IT Showing that button.

if u click on that button and giving Document number and fiscal year it showing the parked document details.

Can u Please guide me how to get that screen. with code

1 REPLY 1
Read only

former_member182371
Active Contributor
0 Likes
388

Hi,

have a look at the following code snippet:

Program: SAPLMR1M

Include: LMR1MI3U

Module: MODULE (PAI) FCODE_6100


MODULE fcode_6100 INPUT.

  IF ok-code = fcook.

    mir4_change = 'X'.

    SET PARAMETER ID: 'RBN' FIELD rbkpv-belnr,
                      'GJR' FIELD rbkpv-gjahr,
                      'RBS' FIELD rbkpv-rbstat,
                      'CHG' FIELD mir4_change.

    IF sy-tcode = tcode_mir4.
      LEAVE TO TRANSACTION tcode_mir4 AND SKIP FIRST SCREEN.
    ELSE.
      CALL TRANSACTION tcode_mir4 AND SKIP FIRST SCREEN.
    ENDIF.
  ENDIF.
  SET SCREEN 0. LEAVE SCREEN.

ENDMODULE.   

Best regards.