Skip to Content
0
Former Member
Feb 08, 2007 at 07:39 PM

2 issues with call transaction to LS24

305 Views

Hello All,

There are 2 issues with call transaction to LS24.

<b>1) It doesn't take batch value and displays stock for all batches.

2) When you go back, it doesn't go back to the calling program.</b>

Any thoughts ?

<u>Here is my code:</u>

PARAMETERS: p_lgnum TYPE lgnum,

p_matnr TYPE matnr,

p_werks TYPE werks_d,

p_lgort TYPE lgort_d,

p_charg TYPE charg_d.

START-OF-SELECTION.

- - - -

- - - -

END-OF-SELECTION.

PERFORM display_stock_per_batch.

&----


*& Form DISPLAY_STOCK_PER_BATCH

&----


FORM display_stock_per_batch .

SET PARAMETER ID 'LGN' FIELD p_lgnum.

SET PARAMETER ID 'MAT' FIELD p_matnr.

SET PARAMETER ID 'WRK' FIELD p_werks.

SET PARAMETER ID 'LAG' FIELD p_lgort.

SET PARAMETER ID 'CHA' FIELD p_charg.

CALL TRANSACTION 'LS24' AND SKIP FIRST SCREEN.

ENDFORM. " DISPLAY_STOCK_PER_BATCH