Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Smartforms and AT NEW event

Is it possible to use the AT NEW event within the logic of a Smartform? If yes how? I have an old report program which utilises the AT NEW event to organize how data is printed on the screen and I want to achieve the same effect using Smarforms. The following code is from the afforementioned program.

LOOP AT it_vbrp
  AT NEW ishbegdt.
    WRITE : "print something out.
  ENDAT.
      AT NEW ishtagr2.
        WRITE : "print something else.
      ENDAT.
ENDLOOP

Thanks in advance!

Edited by: rabbitisle on Sep 21, 2010 11:41 AM

Former Member
Former Member replied

Hi,

You could do it by using the sort radio button available in the TABLE node in the smartform..

Go thru the below link, which wud give step by step process of doing it.

http://wiki.sdn.sap.com/wiki/display/ABAP/SUBTOTALINSAP+SMARTFORMS

Cheers,

Varna

Edited by: Varna17 on Sep 21, 2010 11:54 AM

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question