Skip to Content
avatar image
Former Member

Problem in Exit function

Hi,

My requirement is....I have GL Account, PO Number, Vender, costcenter, Scroll number, amount and TotalAmount as entry fields in layout.

In TotalAmount field i require GL and PO Combination wise SUM(amount).

If try with exit function. hash table(xth_data) always process only one record. Iam not able to sum it up...I tried with local internal table assigning to hash table(xth_data). But its not working for me...

Please provide me with some sample code based on above.

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jun 22, 2010 at 12:28 PM

    Madhu,

    you have to include GL account and PO in the "fields to be changed". Then you get all records.

    Regards,

    Marc

    SAP NetWeaver RIG

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Try as Marc said, if you want to aggregate data into Internal table in the exit use Collect statement.