Skip to Content

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

Call Transcation not working for certain T-Codes

Here is my code. My issue is getting the CALL TRANSACTION to work for VA05 and VA35. The code below works fine when calling MM03, so I thought using the exact same logic would work for the other two, but no luck. The matnr is not populated for the VA05 or VA35 screen, thus the transaction is returning all records. I tried removing "SKIP FIRST SCREEN", but that did not help. I've verified in debugger that the ID is being set. I am using ECC 6.0. Any ideas?

READ TABLE output_table INTO wa_output INDEX p_selfield-tabindex.

CHECK sy-subrc = 0.

IF wa_output-matnr <> space.

CASE p_ucomm.

WHEN '&IC1'.

CASE p_selfield-sel_tab_field.

WHEN 'OUTPUT_TABLE-MATNR'.

SET PARAMETER ID 'MAT' FIELD wa_output-matnr.

CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.

WHEN 'OUTPUT_TABLE-GETOR'.

SET PARAMETER ID 'MAT' FIELD wa_output-matnr.

CALL TRANSACTION 'VA05' AND SKIP FIRST SCREEN.

WHEN 'OUTPUT_TABLE-GETSA'.

SET PARAMETER ID 'MAT' FIELD wa_output-matnr.

CALL TRANSACTION 'VA35' AND SKIP FIRST SCREEN.

ENDCASE.

ENDCASE.

ENDIF.

Tags:
Former Member
Former Member replied

Hi,

Provide value to all mandatory fields of VA35 and VA05 transaction

Like sold-to-party, material, Purchase Order No and Document dates and Selection Criteria.

I can only see you are passing Material number and nothing else.

It will work fine. Pass the values.

Thanks,

Kartavya

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question