Skip to Content
author's profile photo Former Member
Former Member

Control Breacks

Hi,

When i am using the below code i am getting Right hand fields are *** how to over come this...

LOOP AT GT_CRED.

AT END OF CHANGENR.

GT_OUT-EDOKN = GT_CRED-OBJECTID.

GT_OUT-EBELP = GT_CRED-TABKEY+10(5).

GT_OUT-ERDAT = GT_CRED-UDATE.

GT_OUT-ERNAM = GT_CRED-USERNAME.

APPEND GT_OUT.

ENDAT.

ENDLOOP.

Regards

Reddy

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Oct 18, 2006 at 07:23 PM

    Hi,

    It shows * for all it s before fields. Check the below code carefully.

    Triggering of AT EVENTS depends on the internal table definition.

    FOR EXAMPLE

    DATA:BEGIN OF ITAB OCCURS 0,

    FIELD1 TYPE FIELD1,

    FIELD2 TYPE FIELD2,

    FIELD3 TYPE FIELD3,

    FIELD4 TYPE FIELD4,

    END OF ITAB.

    LOOP AT ITAB

    AT END OF FIELD1.

    ..triggers when any field either FIELD1 \is changed

    ENDAT.

    AT END OF FIELD2.

    ..triggers when any field either FIELD1 or, FIELD2 is changed., FIELD1 shows '***'.

    ENDAT.

    AT END OF FIELD3.

    ..triggers when any field either FIELD1 or, FIELD2 or FIELD3 is changed, FIELD1 & FIELD2 shows '***'.

    ENDAT.

    AT END OF FIELD4.

    ..triggers when any field either FIELD1 or, FIELD2 or FIELD3 or FIELD4 is changed, FIELD1 & FIELD2 & FIELD3v shows '***'.

    ENDAT.

    ENDLOOP.

    Probably the AT event is not trigering properly.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 18, 2006 at 07:25 PM

    The easiest way is to move the data to a work area, and work with that data.

    
    <b>data: wa_cred like line of gt_cred.</b>
    
    LOOP AT GT_CRED.
    
    <b> wa_cred  = gt_cred.</b>
    
    AT END OF CHANGENR.
    GT_OUT-EDOKN = <b>wa_cred</b>-OBJECTID.
    GT_OUT-EBELP = <b>wa_cred</b>-TABKEY+10(5).
    GT_OUT-ERDAT = <b>wa_cred</b>-UDATE.
    GT_OUT-ERNAM = <b>wa_cred</b>-USERNAME.
    APPEND GT_OUT.
    ENDAT.
    ENDLOOP.
    
    

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2006 at 07:31 PM

    hi,

    WHWN YOU USE THE CONTROL BREAK COMMANDS REMEMBER THAT THE

    CONTROL BREAK COMMANDS WORKS FINE FOR FIRST FIELD OF INTERNAL TABLE.

    YOU NEED TO MOVE ANOTHER INTERNAL TABLE

    AND THEN USE CONTROL COMMANDS

    LOOP AT ITAB.

    AT NEW XXX

    XXX SHOULD BE FIRST FIELD IN ITAB ,OTHER WISE CREATE ITAB1 WITH FIRST FIELD XXX.

    THANKS

    VENKI

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.