Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

code problem

Former Member
0 Likes
1,140

LOOP AT IT_FINTSO INTO WA_FINTSO.

IF WA_FINTSO-TOTAL GE 0.

MOVE-CORRESPONDING WA_FINTSO TO WA_FINTSO1.

APPEND WA_FINTSO1 TO IT_FINTSO1.

CLEAR: WA_FINTSO,WA_FINTSO1.

ELSE.

MOVE-CORRESPONDING WA_FINTSO TO WA_FINTSO2.

APPEND WA_FINTSO2 TO IT_FINTSO2.

CLEAR: WA_FINTSO,WA_FINTSO2.

ENDIF.

ENDLOOP.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,112

....So, what is the problem here?

oops, dint see your response.

Edited by: avinash ravipati on Feb 20, 2009 11:48 AM

11 REPLIES 11
Read only

Former Member
0 Likes
1,112

Hi;

Code seems ok, what problem you are getting let us know?

Regards

Shashi

Read only

former_member632729
Contributor
0 Likes
1,112

Hi Priya,

What is the exact prob / error ur getting.......

Read only

0 Likes
1,112

actually i tried to put that code in mark up available in right side , how to put code in back ground

Read only

0 Likes
1,112

So you want to put the code in background (Grey block)?



***Your code here

Is this what you wanted to know?

simply write {}code{} and another {}code{} in two different lines leaving a blank line between them. Paste your code in the blank line between these two.

Read only

0 Likes
1,112

thanks avinash,

this is whati want to know...

Read only

Former Member
0 Likes
1,112

Hi,

code is wrong.

you are looping a structure and moving it into workarea.

in loop you are using move-corresponding from that work area, which is wrong.

move-corresponding is used to move structure contents, right.

Read only

Former Member
0 Likes
1,113

....So, what is the problem here?

oops, dint see your response.

Edited by: avinash ravipati on Feb 20, 2009 11:48 AM

Read only

former_member222860
Active Contributor
0 Likes
1,112

Hi,

didn't get u

LOOP AT IT_FINTSO INTO WA_FINTSO.
IF WA_FINTSO-TOTAL GE 0.
MOVE-CORRESPONDING WA_FINTSO TO WA_FINTSO1.
APPEND WA_FINTSO1 TO IT_FINTSO1.
CLEAR: WA_FINTSO,WA_FINTSO1.

ELSE.
MOVE-CORRESPONDING WA_FINTSO TO WA_FINTSO2.
APPEND WA_FINTSO2 TO IT_FINTSO2.
CLEAR: WA_FINTSO,WA_FINTSO2.
ENDIF.
ENDLOOP.

Pl elaborate

Read only

0 Likes
1,112

Hi Mahesh ,

How you to post the code in background in sdn..

just like what u did..

Read only

0 Likes
1,112

Priya,

Just paste ur code on this layout, and select all that code ,

then click on the 4th icon at the top <>.

it will display as

priya

for more info see the thread above by Sachin.

And u should award before closing the threads for useful answers

thanks\

Mahesh

Edited by: Mahesh Reddy on Feb 20, 2009 7:45 AM

Edited by: Mahesh Reddy on Feb 20, 2009 7:46 AM

Read only

Former Member
0 Likes
1,112

Hi,

Do check if the structures WA_FINTSO and WA_FINTSO1 are exactly similar to each other, the data types and its corresponding lenghts. Otherwise this can throw a run time error.

Regards.