cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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