Skip to Content

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

ALV

IF ucomm = '&IC1' AND selfield-fieldname = 'EBELN'.

READ TABLE it_out1 INDEX selfield-tabindex.

IF sy-subrc = 0.

SET PARAMETER ID 'BES' FIELD it_out1-ebeln.

CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.

ENDIF.

ELSEIF ucomm = '&IC1' AND selfield-fieldname = 'LIFNR'.

READ TABLE it_out1 INDEX selfield-tabindex.

IF sy-subrc = 0.

SET PARAMETER ID 'LNR' FIELD it_out1-lifnr.

CALL TRANSACTION 'XK03' AND SKIP FIRST SCREEN.

ENDIF.

ELSEIF ucomm = '&IC1' AND selfield-fieldname = 'MATNR'.

READ TABLE it_out1 INDEX selfield-tabindex.

IF sy-subrc = 0.

SET PARAMETER ID 'MNR' FIELD it_out1-matnr.

CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.

ENDIF.

ENDIF.

Ihave writeen the code like this but

when its is for PO number the Tcode has been called and fine.

but when its for LIFNR and MATNR

i am getting the respective screens but the Material number and Vendor number

are not captured and the cursor remains in the first screen.

can anyone explain where exactly i have done the mistake

if required i will send the whole code

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