Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

report programming

Former Member
0 Kudos

hi experts,

for line selection ...we use an event called at line selection...

how can v select a field for a drop down list??

by selecting a field in a row..in the report o/p...it should should call some transaction??

how can these 2 things b done...

code provided will b scored well..

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

This statement ends the calling program and starts transaction tcod. This deletes the call stack (internal sessions) of all previous programs. At the end of the transaction, the system returns to the area menu from which the original program in the call stack was started.

If, on the other hand, you do not want to return to the calling program at the end of the new transaction, use the statement:

CALL TRANSACTION tcod [AND SKIP FIRST SCREEN]

Best regards,

raam

7 REPLIES 7

Former Member
0 Kudos

Hi,

This statement ends the calling program and starts transaction tcod. This deletes the call stack (internal sessions) of all previous programs. At the end of the transaction, the system returns to the area menu from which the original program in the call stack was started.

If, on the other hand, you do not want to return to the calling program at the end of the new transaction, use the statement:

CALL TRANSACTION tcod [AND SKIP FIRST SCREEN]

Best regards,

raam

Former Member
0 Kudos

hiiii

you can do it by using following code

DATA:
   w_kunnr TYPE kunnr,
   w_vbeln TYPE vbeln,
   w_kna1 TYPE kunnr,
   w_vbak TYPE vbeln.

  CASE sy-ucomm.
  WHEN 'CUSTOMER'.

     GET CURSOR FIELD fs_kna1-kunnr
     VALUE w_kunnr.
     CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = w_kunnr
        IMPORTING
          output = w_kunnr.

      SELECT SINGLE kunnr
      FROM kna1
      INTO w_kna1
      WHERE kunnr = w_kunnr.

      IF sy-subrc <> 0.
         MESSAGE e015(zmsg9).
       ENDIF.

      SET PARAMETER ID 'KUN' FIELD w_kunnr.

      CALL TRANSACTION 'XD03' AND SKIP FIRST SCREEN.

   WHEN 'ORDER'.
      GET CURSOR FIELD fs_kna1-vbeln
      VALUE w_vbeln.

      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = w_vbeln
        IMPORTING
          output = w_vbeln.

      SELECT SINGLE vbeln
      FROM vbak
      INTO w_vbak
      WHERE vbeln = w_vbeln.

      IF sy-subrc <> 0.
       MESSAGE e015(zmsg9).
      ENDIF.

      SET PARAMETER ID 'AUN' FIELD w_vbeln.
      CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.

  ENDCASE.

ENDFORM. " get_data_vbap1

regards

twinkal

Former Member
0 Kudos

Hi kanika use this code.

AT LINE-SELECTION.

GET CURSOR FIELD f VALUE v.

IF f = 'T_OUTPUT-ITRAINNO'.

CALL TRANSACTION 'Z84126'.

ENDIF.

Former Member
0 Kudos

using submit keyword and call transcation.

former_member705122
Active Contributor
0 Kudos

Hi,

VRM_SET_VALUES

CALL TRANSACTION <transaction name>.

Check this link:

http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9da935c111d1829f0000e829fbfe/content.htm

Regards

Adil

Former Member
0 Kudos

Hi,

try this short example:

TABLES: EKKO.

DATA: CURSORFIELD(20).

*

SELECT * FROM EKKO UP TO 20 ROWS.

*

WRITE: / EKKO-EBELN, EKKO-LIFNR.

*

ENDSELECT.

*

AT LINE-SELECTION.

*

GET CURSOR FIELD CURSORFIELD.

*

CASE CURSORFIELD.

WHEN 'EKKO-EBELN'.

READ CURRENT LINE FIELD VALUE EKKO-EBELN.

SET PARAMETER ID 'BES' FIELD EKKO-EBELN.

CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.

WHEN 'EKKO-LIFNR'.

READ CURRENT LINE FIELD VALUE EKKO-LIFNR.

WRITE: / 'Lieferant:', EKKO-LIFNR.

ENDCASE.

*

Hope it helps.

Regards, Dieter

Former Member
0 Kudos

answered