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: 

Menu option "other invoice document" gets disabled in MIR7 while Recording

Former Member
0 Kudos
296

Hi All,

I have one requirement when I have to open the parked invoice document ( MIRO) with MIR7.

I don't want to record each and every field and pass the bdcdata then with call transaction.

There is one option in MIR7 when under invoicedocumnet->other invoice document i can pass the invoice document number and the fiscal year.

I have the document number and the fiscal year as i have already parked the document with MIRO.

so i thought to record this and call the transaction then.

Problem: When i open MIR7 to record, the menu option invoicedocumnet->other invoice document gets disabled. I am not able to record this.

Is there any solution to this? Any BAPI exists ??

Otherwise i would have to record each and every field to pass the parked data into it ..

Thanks in advance

Regards

Mudit Batra

2 REPLIES 2

former_member182371
Active Contributor
0 Kudos
59

Hi,

check this:

program: SAPLMR1M

include: LMR1MI3U

MODULE (PAI) FCODE_6100


  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.

Best regards.

Former Member
0 Kudos
59

Hi,

You can record BDC for transaction "MIR4" and then in Menu , click "EDIT--> Display/change"