How to determine Component materials for PO line item Materials.

Hello friends,
I woluld like to know the table name for getting the component Materials of a Purchase Order line item material.
There is a table called RESB, which is containing the component materials for the PO line item materials. But this table is populating only after creating (saving) the PO.
But, i have to do some validations on component materials, before saving the PO. For that i would like to know the table, from which the component materials will pick.
Or
Please provide some user exit names, which will contain Component materials, during the PO creation.
Thanks in Advance.

hi
header BOM table - STKO ( u need to fetch BOM# from here)
Item table - STPO ( pass the BOM # here and retreive all the item details)
try using FM
CS_BOM_EXPL_MAT_V2
regards
kunal

Similar Messages

  • How to create matreial document for ten line items (10 documents) by BAPI

    Hi
    how to create matreial document for ten line items (10 documents) by BAPI_goodsmvt_create
    i created but it gives error as "no ites were transferre
    and i need code also.
    thanks in advance

    Prabhu Peram wrote:>
    > >
    Gareth @ Atos Origin UK wrote:
    > > Prabhu,
    > >
    > > You have been on SDN a long time and have a decent amount of points - why do you feel the need to simply cut and paste standard SAP documentation? _-----> I least bother abt the Points, and i never ask somebody to give points to me , if u have any doubt on it , u can check all my postings ? All it does is fill up the SDN servers with replicated data which the original poster could quite easily access themselves via SE37----> Sorry I have seen ur Posting/Reply,dont assume that i do copy & paste for sake of Points.Njoy SAP.>
    > > Gareth.
    >
    >
    >
    > regards
    > Prabhu
    Prabhu.
    I didn't question you about points at all - I was making the point that you have been on SDN a long time and have a lot of points.  Therefore you should know better than to simply cut and paste standard SAP help.  If you don't copy and paste for sake of points, what do you do it for?  It serves no purpose other than to fill up the servers here on SDN.  The original poster appears to have access to a SAP system and SE37 and wants to know how to call a BAPI - they can easily go to SE37 and read the documentation themselves.  Posting it here just adds noise and makes searching harder, as well as taking up more and more space on SDN servers.
    Gareth.

  • How to get the texts for each line item for Sales order in a smartform

    I'm createing a smart form in which i need to display certain texts for each line item of a sales order. How can i get those??
    I'm trying with the table STXH and FM read_text... but i'm not clear how and what i'm getting... can anybody pls help me.....

    Hi There,
    But then i will be getting only the value. i want to link that against the particular material of the Purchase Order.
    Like for ex:
    PO No.  Material Code        Line Item        Basic        Excise       Tax       Inv Value
    0000001 5000251                010               100           16         4.64      120.64
    0000001 5000252                020               200           32         9.28      241.28
    Can u help me on this?
    Regards,
    Jitesh

  • Dear Gurus,how to maintain business area for a line item?

    Hi Gurus,
       Thanks for all gurus for your knowledge sharing,everyday i get new things from you gurus,
    right now i got one problem, while releasing the invoice i got the error as
    "Business Area not entered in the line item  000000012"
    where i should maintain the business area details, which T-code,
    my friend told me that it is a FICO related issue,Please Guide me gurus,
    Warm Regards,
    Deepak Shanmugam

    Hi Deepak
    Business Area
    Technical name: 0BUS_AREA
    Technical Data
    Available from Release
    3.0D
    Data element
    GSBER
    External hierarchy
    Not available
    Business Areas in SAP are used to differentiate transactions originating from different points/lines/locations in business. Let me give some examples to elucidiate:-
    A company (say, ABC) is a huge company and has a variety of businesses under it. Let us say that it typically operates in 3 different domains like machinery manufacturing, trading and assembling of machine parts. 
    There are 2 options here now -
    1. Either create different company codes for the 3 business operations (which would be the easiest and require no creativity)
    or 
    2.) Create each of these business lines into business areas (the better option). 
    The advantages of using the second option is:
    1. You can use these business areas if other company codes require the same areas
    2. The configuration is simpler as in case of company code, you would require to go through the entire configuration of creating Chart of Accounts, Fiscal Year variants, posting periods variants and so on. In the business area option, you just need to attach it to the company code and the rest of the details in Business area is attached by default from the company code you are using it in. 
    3. Using the options in controlling (EC-PCA, Enterprise Controlling, Profit Centre Accounting), you can even draw up Balance Sheets and PL statements for your business areas and hence this is used for management accounting in some companies (like HP, Dell, etc) when it wants to know the operating profits for different business areas/lines.
    The above was an example when the company wanted to separate entries according to the lines it operates in... the other case could be when it wants to find out profitability during its operations in cities and differentiates these cities into Business Areas...
    Business Areas are not much relevant in FI but are much more relevant in CO.
    You can define business area in
    Path: Img-enterprise structure Definition--Financail Accounting --- Define Business area.
    Same pathe: Assignment---Assign Business area to Consolidation business area.
    Same Path: Logistics General --- Assign Business Area to Plant/Valuation Area & Division
    I hope this clears.
    Reward if useful to u
    Message was edited by:
            narendran vajravelu

  • How to calculate freight equally for all line items

    Hi All
    I have a situation, In a PO i have 4-5 line items and the total freight is 10% on the PO value. I need to distribute the freight value equally to all the line items.
    Your suggestions please
    Regards
    Jagadish

    Hi
    Goto V/06 and make your condition type as header condition and in maintain condition record as 10%
    HEADER condition will not be having ACCESS SEQ
    Regards
    Vishal

  • How to create an inspection lot for each line item of the Purchase order?

    Hi,
    How to create an inspection lot for each line item of the Purchase order ?
    In detail if possible.

    Hi
       please check this
    [thread|Create Inspection Lot;

  • How to draw horizontal line at the end of table for multiple line items

    Dear Experts,
                       Pls can anyone help me how to draw horizontal line at the end of table for multiple line items . kindly help me regarding this
    Thanks
    Ramesh Manoharan

    Hi
       I tried as per your logic but it is not solving my problem .  when i am gone to table painter it is showing line type 1 and line type 2
      is below format.. if u see here line type 1 bottom line and line type 2 top line both are same..  so how to avoid this ?
                              line type 1
                             line type 2

  • How can I activate drill down report for planned line items please urgent?

    Hi Everyone,
    Please suggest me how can i activate drill down report for planned line items in internal orders. S_ALR_87012993. Please suggest me, I'll award full points. I am unable to do it in client system, which has already line items. I tried in my sys with new config it is working.
    Kind regards
    Arvey.

    Hi
    It is based on the reports attached in the Report Group - TCODE: GR53
    In the Report Group screen
    Press CONFIGURE – This is to attach any Drill Down reports.
    Press the “Insert Line” icon
    As is the screen may be used to insert a Report Writer report group. To add an ABAP, press “other report type”
    Double click on “ABAP Reports”
    Enter the name of the ABAP and ENTER
    <b>RCOPCA08                       Profit Center: Plan Line Items</b>
    VVR

  • How to restrict separate payment document for each line item in APP

    HI Experts
    PLs let me know how to restrict separate payment document for each line item in APP
    Thanks
    Sneha
    Edited by: Sneha R on Apr 14, 2009 4:18 PM

    Sneha,
    If your query was to group items for payment ,in FBZP  co code data for payment method there are 2 options 1.group payment for marked items 2.payment per due date.
    Also in the Vendor master there is a flag which will ensure that each item is paid individually,if this is what you were looking for  ( FK02 change vendor).
    In case you want to group items to be paid together Payment Grouping Key can be assigned in Vendor Master .
    Shony

  • How Can I Create One Entry Sheet For Multiple Line Items of A PO

    Please Tell Me How Can I Create One Entry Sheet For Multiple Line Items of A PO

    hi,
    It is not possible to create single Service Entry sheet for multiple PO line items. It is 1 to 1 relation.
    you have to make different service entry sheets for different item of service master.
    regards
    Manish Joshi

  • How to determine number range for billing document based on company code ..

    Hi Friends!!
    can anybody tell me how to determine number range for billing document based on company code & tax departure country if required??
    Amit...plz help me!!

    Hi Amit,
    1. Define different Billing Document number ranges in  SPRO -> Sales & Dist -> Billing -> Define number ranges for billing docs. (VN01). Make sure that all are internal number ranges.
    e.g.
    NO.  From number To Number    Current number  Ext
    A1   0930000000    0930999999
    A2   0940000000    0940999999
    A3   0950000000    0950999999
    2. Define a Ztable ZNUMB_RANGE as follows
    Comp. Code | Tax departure country | Billing Doc Type | Number Range
    100                IN                               F2                      A1
    200                IN                               F2                      A2
    200                US                              F2                     A3
    3. In user exit RV60AFZZ (USEREXIT_NUMBER_RANGE)
    Read table ZNUMB_RANGE for Number Range with Comp. Code, Tax country and Billing Doc.
    If found pass this number range value to us_range_intern.
    us_range_intern is a standard SAP variable which tells program which number range use to create the current document which is under process.
    Let me know if you are clear.
    Thanks,
    Mandar

  • How to trigger Condition Access sequence multiple times for one line item?

    Hi,
    We have a situation that, User will enter a Promo code (custom Field) in Sales order Header Additional data B tab to apply discount for line items.
    Logic goes like this:
    1. For each Promo code .. there may be multiple sale deals (Max 3 at this point).
    2. For each line item (refering to tkomp table) we have to apply the sale deals (found above) the Condition access sequence will pick the right sale deal to apply the line item.
    3.we have enhanced the tkomp structure to hold the sale deal.
    Challenge:
    As we have the standard logic to trigger the condition access sequence once for each line item, how we can apply 3 sale deals for single line item. Is there any logic or way to trigger the condition access sequence multiple times for single line item with diffrent sale deals. ~ There may be one valid sale deal for one line.
    Functional team maintained diffrent access tables in the access sequence!!!
    Fnds, please help me to get some clue
    Thanks,
    Sunil Y

    Hi Eduardo , Thanks for the response.
    I am trying to explain again, this is the requirment given by the functional guys.
    we have Promo code in Hearder Addtional data B tab --> Have to retrieve Sale Deals -->
    At this point of time we may have at max 3 Sale Deals. we don't know which sale deal is vallied for which item we have in TKOMP.  We have enhanced the TKOMP structure to hold one sale deal only (ZZPROMO).
    We have enhanced USEREXIT_PRICING_PREPARE_TKOMP in RV60AFZZ to populate the value in TKOMP. Then it will go for diffrent access sequence to find the proper condition.
    Our challenge is that, for each line item we have 3 sale deals, we don't know which one is valid for which line. but we have to apply the vallied sale Deal to the line items.  Line item 10  may have Sale Deal 2 , item 20 may have Sale Deal3 and 30 may have sale deal 1.
    We may have solution, by fixing some thing in the code or through config. But i am confused that is it a valid requirment?
    Please help me ...
    Thanks,
    Sunil Y

  • How to determine pricing procedure for invoice list

    Hi ,
    Could you pl let me know "How to determine pricing procedure for invoice list"
    All other things are available i.e.
    Create Condition Tables
    Maintain access sequences
    Maintain pricing procedures
    Define condition types
    Basically how the pricing procedure will be assigned for the Invoice list.
    br
    pinky

    Hi Pinky,
    Create a billing doc type by coping std.(ZF1)
    Assign invoice list to billing type Zf1
    Now maintain a document pricing procedure (for Eg: Z )
    Assign this to billing type in pricing control - document pricing procedure.
    Now maintain the pricing procedure determination as per the sales area /doc pp/cust pp.
    Also in copy control in VTFL maintain pricing type as " B".
    REgards,
    Krishna O

  • How to find out Last Changed Fields for a line item of a PO

    Dear All,
    Pls let me know is there any FM or procedure to find the last changed fields for each line item of a PO. I should be able to get the details on the basis of Last changed Date. Can u pls guide me in this?

    Hello,
    Check the table CDHDR,CDPOS for PO items,
    Check this code:
    REPORT ZV_GET_LATEST_SO .
    DATA: BEGIN OF ITAB OCCURS 0,
            OBJECTCLAS TYPE CDHDR-OBJECTCLAS,
            OBJECTID TYPE CDHDR-OBJECTID,
            CHANGENR TYPE CDHDR-CHANGENR,
            USERNAME TYPE CDHDR-USERNAME,
            UDATE TYPE CDHDR-UDATE,
            UTIME TYPE CDHDR-UTIME,
            TCODE TYPE CDHDR-TCODE,
            TABNAME TYPE CDPOS-TABNAME,
            TABKEY TYPE CDPOS-TABKEY,
            FNAME TYPE CDPOS-FNAME,
            CHNGIND TYPE CDPOS-CHNGIND,
          END OF ITAB.
    TABLES: CDHDR,CDPOS.
    DATA: LT_CDHDR LIKE CDHDR OCCURS 0 WITH HEADER LINE,
    LT_CDPOS LIKE CDPOS OCCURS 0 WITH HEADER LINE.
    *REFRESH AUSG.
    CLEAR CDHDR.
    CLEAR CDPOS.
    CDHDR-OBJECTCLAS = 'EINKBELEG'.
    CDHDR-OBJECTID   = '0000001784'.  " Purchase order number
    **SELECT A~OBJECTCLASS A~OBJECTID A~CHANGENR A~USERNAME A~UDATE A~UNAME
    **B~TCODE
    **B~TABNAME B~TABKEY B~FNAME B~CHNGIND INTO TABLE ITAB FROM CDHDR AS A
    **INNER JOIN CDPOS AS B ON A~OBJECTCLASS = B~OBJECTCLASS
    **                         A~OBJECTID    = B~OBJECTID
    **                         A~CHANGENR    = B~CHANGENR
    **                    WHERE OBJECTCLAS = 'VERKBELEG'
    **                      AND OBJECTID = '0000001784'.
    *SELECT * FROM CDPOS INTO TABLE LT_CDPOS WHERE OBJECTCLAS = 'VERKBELEG'
    *                                    AND OBJECTID = '0000001784'.
    *IF NOT LT_CDPOS[] IS INITIAL.
    *  SELECT *
    *  INTO   TABLE LT_CDHDR
    *  FROM   CDHDR
    *  FOR    ALL ENTRIES IN LT_CDPOS
    *  WHERE  OBJECTCLAS = LT_CDPOS-OBJECTCLAS
    *  AND    OBJECTID = LT_CDPOS-OBJECTID
    *  AND    CHANGENR = LT_CDPOS-CHANGENR.
    *ENDIF.
    **  SORT ITAB BY OBJECTCLAS ODJECTID DESCENDING.
    *LOOP AT ITAB.
    *  WRITE: ITAB-UDATE."ITAB-UNAME.
    *ENDLOOP.
    *--- Interne Tabellen -------------------------------------------------
    DATA: BEGIN OF ICDSHW OCCURS 50.       "Ausgabeaufbereitung
            INCLUDE STRUCTURE CDSHW.       "Zwischendatei
    DATA: END OF ICDSHW.
    CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
         EXPORTING
              DATE_OF_CHANGE    = CDHDR-UDATE
              OBJECTCLASS       = CDHDR-OBJECTCLAS
              OBJECTID          = CDHDR-OBJECTID
              TIME_OF_CHANGE    = CDHDR-UTIME
              USERNAME          = CDHDR-USERNAME
         TABLES
              I_CDHDR           = LT_CDHDR
         EXCEPTIONS
              NO_POSITION_FOUND = 1
              OTHERS            = 2.
    LOOP AT LT_CDHDR.
      CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
        EXPORTING
    *   ARCHIVE_HANDLE                = 0
          CHANGENUMBER                  = LT_CDHDR-CHANGENR
    *   TABLEKEY                      = '00000000 '
    *   TABLENAME                     = ' '
    * IMPORTING
    *   HEADER                        =
       TABLES
         EDITPOS                       = ICDSHW
    *   EDITPOS_WITH_HEADER           =
    * EXCEPTIONS
    *   NO_POSITION_FOUND             = 1
    *   WRONG_ACCESS_TO_ARCHIVE       = 2
    *   OTHERS                        = 3
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      LOOP AT ICDSHW.
        IF ICDSHW-TABKEY+3(10) = '0000001784'
           AND ICDSHW-TABKEY+13(6) = '000001'.
        ENDIF.
      ENDLOOP.
    ENDLOOP.
    Vasanth

  • How can i show item schedule line details in Tableview for each line item

    Hai all,
      I need to display schedule line details  in Tableview for each line item.for example in each row i need to put one column along with button , if i click on this table that row  should be expand vertically and must show all schedule line details in that.if i click my button again the visible expanded row should disappear...
    if anybody works on this previously plz send some sample code...
    leoiz....

    To modify rows the best way is with the Iterator (do a search in the weblogs for "Iterator")
    However for what you want to do I've only seen this really work successfully with a standard HTML table not using the tableView.

Maybe you are looking for

  • How to setup usb card in pci express slot

    how to setup a usb card in a pci express slot,

  • How to change Speed?

    Hi, I'm using 2960 with GLC-GE-100FX= . I can not change Speed from Auto to 100MB. Please advice how to change Speed.   Current I/F setting is as following, Switch#sh int gi 0/1 GigabitEthernet0/1 is down, line protocol is down (notconnect)   Hardwar

  • Migrate user of group  and OU in Active Directory

    I associate my new users through the access policy in "Active diretory", so if the user belongs to the IT department, it is inserted in OU and group departmental IT. I'm having problems when I need to migrate, for example, the same user is tranferido

  • ABAP Qurries for SD

    Hi , please tell the SD related Abap querries for reports generates Regards, Rao

  • Problem while genearting WSDL from ABAP

    Hi all I have encountered a problem.I created a WSDL from a ABAP program,but in the ABAP function module what it does is it inserts value onto a transparent table from a table which let me specify as a virtual table.So after generating the wsdl i am