Skip to Content
author's profile photo Former Member
Former Member

Copy only one TAB from stanadard T.Code to ZT.Code

Hello Experts,

I have similar ZTCODE for J1IH.In ZTODE i need to add Cancel Ex Invoice tab of std T.Code J1IH in Application tool bar.

How to process .

Ravi

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 23, 2009 at 12:28 PM

    Hi Ravi ,

    I think you have some code for your ztransaction.

    If you have a program alognwith the Z transaction code you have to use the

    status J1IHMAIN of program SAPMJ1IH from your program.

    Here SAPMJ1IH is the program of the std. transaction J1IH .

    You need to use the excluding keyword to exclude other tabs of the standard transaction.

    Please check the following code, it will resolve the issue - -

    DATA: BEGIN OF pftab OCCURS 5,
                   fcode(4) TYPE c,
          END OF pftab.
    
    pftab-fcode = 'MRWO'.
    APPEND pftab.
    
    pftab-fcode = 'MRRD'.
    APPEND pftab.
    
    pftab-fcode = '57NR'.
    APPEND pftab.
    
    pftab-fcode = 'DIEX'.
    APPEND pftab.
    
    pftab-fcode = 'MRDY'.
    APPEND pftab.
    
    pftab-fcode = 'TR6C'.
    APPEND pftab.
    
    SET PF-STATUS 'J1IHMAIN' OF PROGRAM 'SAPMJ1IH'  " Getting the status of J1IH
    EXCLUDING  pftab         " Except the Cancel exe inv.
    IMMEDIATELY.   " to get the status Immediately 
    
    WRITE 123.

    Regards

    Pinaki

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 24, 2009 at 12:03 PM

    Hi,

    You can create a transaction variant for the standard transaction using the tcode: SHD0,

    Carry out the recording for the transaction variant..and You can hide, make mandatory, output only...using this technique of transaction variants.

    You can refer the documentation for the same in SHD0

    Regards

    Shiva

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.