Application Development 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: 

Call Transaction QPR3, menu bar options disabled

Former Member
0 Kudos

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,

4 REPLIES 4

naimesh_patel
Active Contributor
0 Kudos

Please refer tcodes

QPR1 for create and

QPR2 for change

Regards,

Naimesh Patel

0 Kudos

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.

0 Kudos

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

0 Kudos

Thanks Naimesh!

That should solve my problem.