Skip to Content
avatar image
Former Member

Modify the main table of a Z sapscript which is using SAP standard driver program RFKORD10

Hi experts,

I have a requirement to copy the standard SAP Script F140_ACC_STAT_01 and display a customised Account Statement via transaction code FBLN5.

But the driver program I am using is the same SAP standard driver program RFKORD10.

I have added many new fields in my display of Account satement using the PERFORM command inside sap script text editor.

The main table of the sap script is having Multiple currency line items.

And now the requirement is to sort the 'Currency' column of the main table in the script and to and a new 'Balance' column in the main table which

will contain the sum of the debit & credit amounts for every currency.

I tried to find the internal table in the driver program which has all the main table data. But couldn't find any such internal table which has all the main table data.

So kindly let me know how sort the  'Currency' column and sum up the debit & credit amounts based on the currency.

I am new to sapscripts and badly stuck in this requiremnt.. 😔 Please help..

Best regards,

Lucy

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jan 05, 2015 at 08:43 PM

    Hi Lucy,

    If you copy standard sapscript, I suggest you also copy std program and then make all your changes. On the program look for OPEN_FORM function module and START_FORM function module.

    If you see the form on SE71 transaction, on the MAIN window you will see, for example, &BKPF-BELNR&. This would be your main table, just to name one so this is what you should search on the program.

    Hope this helps.

    Ernesto

    Add comment
    10|10000 characters needed characters exceeded