Skip to Content
0
Former Member
Jun 22, 2010 at 11:31 AM

Problem with CALL Transaction syntax

159 Views

Hi All,

I have created a report in which Im displaying Sales order, planned order n production order details.

In the output if the user double clicks, anyone of the sales order/planned order/production order no, it has to take to concern transaction.

Sales order and planned order are perfectly working.

problem is with production order, it is not displaying, the exact order no.

my code:

WHEN '&IC1'.
      IF rs_selfield-fieldname = 'VBELN'.
     READ TABLE gt_final_so INTO wa_final_so INDEX rs_selfield-tabindex
              .
        SET PARAMETER ID 'AUN' FIELD wa_final_so-vbeln.
        CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.

      ELSEIF rs_selfield-fieldname = 'PLNUM'.
     READ TABLE gt_final_so INTO wa_final_so INDEX rs_selfield-tabindex.
        SET PARAMETER ID 'PAF' FIELD wa_final_so-plnum.
        CALL TRANSACTION 'MD13' AND SKIP FIRST SCREEN.

      ELSEIF rs_selfield-fieldname = 'AUFNR'.
     READ TABLE gt_final_so INTO wa_final_so INDEX rs_selfield-tabindex.
        SET PARAMETER ID 'ANR' FIELD wa_final_so-aufnr.
        CALL TRANSACTION 'COR3' AND SKIP FIRST SCREEN.

In debugging I checked, after call transaction, the system executing the following code, here CAUFVD-AUFNR is initial.

So, it has been picking some different no.

*&----

-


  • Starten Batchrezept über Einsatzplanung - DO-THANH

*----

-


MODULE GET_PARAMETER OUTPUT.

IF CAUFVD-AUFNR IS INITIAL.

GET PARAMETER ID 'BR1' FIELD *CAUFVD-AUFNR.

IF NOT *CAUFVD-AUFNR IS INITIAL.

CAUFVD-AUFNR = *CAUFVD-AUFNR.

ENDIF.

ENDIF.

ENDMODULE. " GET_PARAMETER OUTPUT

Pls help me how to resolve the above problem.

Valuable suggesstion will be highly appreciated.

regards,

Priya