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

scripts

hi,

without changing the driver pr.gi modifies the layout,

included new windows text elements ,how to pass the values to this windows.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 09, 2006 at 06:09 AM

    IF U WANT TO ADD JUST TEXT VALUE IN NEW WINDOW WITHOUT USING DRIVER PROGRAMM.

    THAN U CAN USE

    SO10

    TRANSACTION FOR INCLUDING TEXT ELEMENT.

    METHOD..

    1) From the SAP standard menu, choose Tools ® SAPscript ® SO10 -

    Standard text.

    EXAMPLE...

    1) In the Text name field, enter Z_PURCHORD_HEADER.

    2) In the Text ID field, enter ST.

    3) If the standard text does not exist, choose Create.

    4)If the standard text already exists, choose Change.

    IN SAP SCRIPT IN PERTICULAR WINDOW JUST WRITE..

    /:INCLUDE &Z_PURCHORD_HEADER& OBJECT TEXT ID ST.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 09, 2006 at 07:51 AM

    Hi Raghuveer,

    If you dont want to change your driver program and but needed to add new windows, text elements, fields then you should call a subroutine in the layout and create that subroutine in a SE38 program.

    Please have a look at the below example.

    Wherever, in windows, you want to pass data, there write the code as below..

    /:PERFORM get_date IN PROGRAM zreport

    /:USING &SALESORDER&

    /:CHANGING &S_DATE&

    /:ENDPERFORM

    Now you can print S_DATE.

    Write this code in the new ABAP program would be

    REPORT zreport.

    FORM get_date TABLES in_tab STRUCTURE ITCSY

    out_tab STRUCTURE ITCSY .

    READ TABLE in_tab INDEX 1.

    SELECT some_date FROM ztab

    WHERE salesorder = in_tab-value.

    IF sy-subrc EQ 0.

    READ TABLE out-tab INDEX 1.

    MOVE ztab-somedate TO out_tab-value

    MODIFY out_tab INDEX 1.

    ENDIF.

    ENDFORM.

    Let me know if you ahve any questions.

    regards,

    ram

    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.