Skip to Content

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

what is the use of control command......AT NEW....

HI All,

What is the use of the control command AT NEW and END AT. how to use it in a loop. i got a requirement like this:

LOOP AT xvbplp WHERE venum = shenr.

IF xvbplp-posnr IS INITIAL.

  • Versandelement

PERFORM packing_tree USING xvbplp-unvel.

ELSE.

  • Lieferposition (Anteil)

vbplp = xvbplp.

PERFORM customer_material.

IF vbplp-brgew <> 0.

PERFORM set_textsymbol USING '&ITEM_WEIGHT&'

vbplp-brgew.

ELSE.

PERFORM set_textsymbol USING '&ITEM_WEIGHT&'

' '.

ENDIF.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

element = 'DELPOS'.

ENDIF.

ENDLOOP.

can any body tell me can i use the control command

LOOP AT xvbplp WHERE venum = shenr.

IF xvbplp-posnr IS INITIAL.

  • Versandelement

PERFORM packing_tree USING xvbplp-unvel.

ELSE.

  • Lieferposition (Anteil)

vbplp = xvbplp.

<b>AT NEW POSNR</b>

SUM brgew

PERFORM customer_material.

IF vbplp-brgew <> 0.

PERFORM set_textsymbol USING '&ITEM_WEIGHT&'

vbplp-brgew.

ELSE.

PERFORM set_textsymbol USING '&ITEM_WEIGHT&'

' '.

ENDIF.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

element = 'DELPOS'.

ENDIF.

<b>END AT.</b>

ENDLOOP.

Tags:
Former Member
Former Member replied

at new command allows u to trigger the execution if the value of the field changes

regards

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question