Skip to Content
0
Dec 01, 2006 at 02:55 PM

CM25 Custom Pushbutton / BARC_GRAPHIC_PAI

274 Views

In transaction CM25 on SAP 4.7, I would like to have a new pushbutton link to a custom report and have the production order value pre-filled so I can skip first screen.

Adding the custom pushbutton was no problem by modification to the GUI status.

Problem is with PAI routine. The BARC_GRAPHIC_PAI process is somewhat new to me and I am having a difficult time in determining which record the user had a cursor positioned on. Somehow SAP does ok in selecting the change production order but it appears duplicating this logic to set a parameter id or other means is not working.

Typically we'd simply determine sy-ucomm and if our custom pushbutton, we'd set a parameter id, call the custom transaction and return to the program when complete. The BARC_GRAPHIC_PAI programs appear to work very differently and I'm unsure how to determine which index or record the user has selected when the pushbutton was pressed.

Any ideas would be appreciated.

Thanks,

Tim