11-19-2007 7:07 PM
Hi,
I want to call the Quality Management transaction QPR3 from a custom program using Call Transaction. I tried doing so by using the following statement:
SET PARAMETER ID 'QPN' FIELD <sample>-phynr.
CALL TRANSACTION QPR3 AND SKIP FIRST SCREEN
It works fine, except for the menu bar options for this transaction are disabled(change, create etc.).
While trying to record a BDC session for transaction QPR3, I face the same issue.
Is there any way to activate the menu bar options like create, change etc.(like they are when you call QPR3 seperately from the command line) while using call transaction statement?
Any help is greatly appreciated.
Thanks,
11-19-2007 7:46 PM
Please refer tcodes
QPR1 for create and
QPR2 for change
Regards,
Naimesh Patel
11-19-2007 7:52 PM
Thanks Naimesh for your reply. But I want give users an option to change/create a Physical sample from the default display view instead of directly taking them to the create or change transaction.
11-19-2007 7:57 PM
In that case you can use the condition.
case sy-ucomm.
when 'CHANGE'.
CALL TRANSACTION 'QPR2' AND SKIP FIRST SCREEN .
when 'DISPLAY'.
CALL TRANSACTION 'QPR3' AND SKIP FIRST SCREEN .
endcase.
Regards,
Naimesh Patel
11-20-2007 2:42 PM