Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problem with CALL TRANSACTION 'VA33' with PARAMETER ID 'AUN'

I started to post this as a problem, but stumbled into the solution while testing further. Since I didn't find a solution in the SDN.SAP Forums I'm entering this to help others who may have the same problem.

This code would not work:

SET PARAMETER ID 'AUN' FIELD sy-lisel(10). "sy-lisel(10) contains the Scheduling Agreement on the selected line of the report.

CALL TRANSACTION 'VA33' AND SKIP FIRST SCREEN.

It would go to Transaction VA33 but would always default to the last Scheduling Agreement accessed manually instead of the one I needed to see via this call.

When I change the transaction to VA03 it works:

SET PARAMETER ID 'AUN' FIELD sy-lisel(10).

CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.

We can not access a Scheduling Agreement from VA03 on-line, but for some reason this call displays the correct S/A, and System Status says it is running transactin VA03.

Perhaps it is because we are using a custome Order Type for Scheduling Agreements (YALZ)?

Best wishes to our SAP friends.

Former Member
Not what you were looking for? View more on this topic or Ask a question