2008 Jun 10 6:29 AM
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.
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.
2008 Jun 10 7:28 AM
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
2010 Aug 25 11:38 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |