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

Routine in APD

Hi Gurus,

I am trying to write a routine in APD and folowing steps metioned in this document.…

However , my requirement is slightly different from what he has shown in his document. I need to Drive a new column in the Target DSO from two columns of a Query which is a source for my APD. The problem comes when I move results to the target field. Id ont find it and routine does not get complete.

Here is the routine I wrote:-

LOOP AT it_source INTO ls_source.

IF ls_source-COMP_CODE ='20XX'

and ls_source-/BIC/ZPAPH2 ='2546'.


ELSEIF ls_source-COMP_CODE ='20XY'

AND ls_source-/BIC/ZPAPH2 ='2547'.

MOVE 'SP91124' to COMPANY.


MOVE-CORRESPONDING ls_source TO ls_target.

APPEND ls_target TO et_target.


Can anyone please help?



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on May 18, 2015 at 08:43 PM

    Hi Ajoy,

    I guess you are not added target field in routine node, so please target field in ROUTINE node --->TargetFlds-->Add COMPANY(field name) , COMPANY(description)

    0TXTLG (type(infoobject) .

    It will work, please try this.

    Thank you,


    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.