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

Infopackage ABAP routine based on attribute of Master data

Can someone help me with the ABAP for the following scenario

1. Infopackage routine

2. ABAP would need to carry out a lookup on a Master data table and will load based on the value of an attribute of the table

Thanks

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Mar 20, 2009 at 11:32 AM

    Niten,

    you can put the logic for lookup but identifying which record to be part of the logic is not possible.

    for instance select /bio/materail from /bio/pmaterial into ITAB.

    this means it will bring what ever records are there in the material but it is difficult identify which record to be passed for the L_T_RANGE table. please provide exact requirement

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 20, 2009 at 11:22 AM

    An infopackage routine is used to FILTER ALL the records coming in... I dont think you can put your code here - you can :

    Have a start routine i the transfer rule / transformation and delete unwanted records there instead...

    The infopackage routine is like a gobal filter which is something like restricting a Infcube using LISTCUBE - you cannot access the data coming in using an infopackage routine...

    Edited by: Arun Varadarajan on Mar 20, 2009 4:52 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 20, 2009 at 11:30 AM

    Hi,

    Could you please eleborate your requirement, will able to help better.

    1. Infopackage routine - Is the below lookup you need to carry using the routine?

    2. ABAP would need to carry out a lookup on a Master data table and will load based on the value of an attribute of the table

    Basically InfoPackage routines are based for dataselection. In the InfoPackage, for example you need to load data for only one Cost Center, which is a attribute for any other characteristic. You could try and read the Master data P table of the infoObject and fetch the attribute. But I am not sure if it would work correctly in your case, as in the selection screen you will have the characteristic and not its attribute.

    Please let me know if you need any more help.

    Regards,

    Pankaj

    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.