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

To change the standard program

Former Member
0 Likes
563

Hi all,

My reqmt is to change the GUI status and interface of the transaction MB26. MB26 uses the report PP_PICK_LIST to execute. The current GUI status and interface are,

GUI Interface : SAPLCOWB

GUI Status : STATUS_MMIM

I have coded in the exit EXIT_SAPLCOWB_001 as,

TYPES: reftype TYPE REF TO data.
 
DATA: lty_ref TYPE reftype.
DATA: ls_control TYPE cowb_ctrl,
      ls_prog TYPE progname.
 
FIELD-SYMBOLS: <lfs_control> TYPE ANY,
               <lfs_prog> TYPE ANY,
               <lfs_prog1> TYPE ANY.
 
GET REFERENCE OF ls_control INTO lty_ref.
 
ASSIGN lty_ref->* TO <lfs_control>.
 
CHECK sy-subrc = 0.
 
ASSIGN ('(SAPLCOWB)G_COWB_CTRL') TO <lfs_control>.
 
CHECK sy-subrc = 0.
 
ls_control = <lfs_control>.
ls_control-pf_status = 'ZSTATUS_MMIM'.
<lfs_control> = ls_control.
 
UNASSIGN <lfs_control>.

to change the pf status of the transaction MB26.

Now what I need to do is to change the standard program from SAPLCOWB to ZSAPLCOWB.

For it is there anyway to change in the enhancement like the pf status or can we change in the standard program PP_PICK_LIST.

I used sy-repid also, but its giving me a dump. So provide a solution other than that.

Closed

2 REPLIES 2
Read only

Former Member
0 Likes
492

Dear Sharan,

You can use a System Field SY-CPROG which gives you the Program Name.

This Varibale can be used to change the Program Name.

Try this Hope this will help you.

But i think this you would using to only call the PF-STATUS of this New Z Program.

Hope this helps.

Encourage others in answering your queries by suitably rewarding them

Thanks

Venugopal

Read only

Former Member
0 Likes
492

Closed