Skip to Content
author's profile photo Former Member
Former Member

report programming

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..

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 08, 2008 at 07:39 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 08, 2008 at 07:40 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 08, 2008 at 07:40 AM

    Hi kanika use this code.

    AT LINE-SELECTION.

    GET CURSOR FIELD f VALUE v.

    IF f = 'T_OUTPUT-ITRAINNO'.

    CALL TRANSACTION 'Z84126'.

    ENDIF.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 08, 2008 at 07:40 AM

    using submit keyword and call transcation.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 08, 2008 at 07:43 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 08, 2008 at 07:49 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 08, 2008 at 08:08 AM

    answered

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.