Skip to Content
avatar image
Former Member

Fetching value in SAP SCRIPT

Hi Friends,

I m working on script of purchase order , medruck and its driver program SAPFM06P. i had copied both of them and made zmedruck and zSAPFM06P. Now i wan to show some values in script that is not provided by drivr program. so please provide me suggestion

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Aug 11, 2008 at 01:22 PM

    Hi,

    Use Subroutines in ur SAPScript for the fields u want to data.

    Ex:-

    /:PERFORM GET_COMCODE IN PROGRAM ZM_RFQ_REJECTION

    /:USING &EKKO-BUKRS&

    /:USING &EKKO-SPRAS&

    /:CHANGING &SADR-NAME1&

    /:CHANGING &SADR-NAME2&

    /:CHANGING &SADR-NAME3&

    /:CHANGING &SADR-PSTLZ&

    /:CHANGING &SADR-NAME4&

    /:ENDPERFORM

    U don't need to copy standard program if the standard program not giving u the values. Just creat a subroutine program.

    Regards

    Bala Krishna

    Edited by: Bala Krishna on Aug 11, 2008 6:52 PM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 11, 2008 at 02:17 PM

    Hi,

    you can also write a normal perform in the program.

    Put a select query for the values that you want for the particular tables and display those variables in the SAP script

    as follows:

    eg:

    Select lifnr

    name1

    from table lfa1

    into (v_lifnr,v_name1)

    where <condition>.

    endselect.

    in SAP script:

    &v_lifnr&

    &v_name1&.

    You will get the values displayed.

    Thanks,

    Sneha.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Sneha,

      Can you tell me how to use Define is SAP Script, actualy i had not woked much on script .

  • avatar image
    Former Member
    Aug 12, 2008 at 06:37 AM

    Thanks all

    Add comment
    10|10000 characters needed characters exceeded