BDC OK CODE To select PO Line Item

Hello,
Can anyone tell me the BDC OkCode to select a particular line item in a PO.
Thanks
Viky

are you using me22 or me22n ?
if me22, just below the table control,  you can see a field 'Item' .  if you key in 50 in this item,  item 50 will come to the top line.
so while doing recording, pass the line item number to this field, RM06E-EBELP, and then hit enter....
loop at your internal table with bdcdata, and pass each item numbers one by one to this field, and do the bdc.
Message was edited by:
        Sujamol Augustine

Similar Messages

  • Defaulting Tax Code in the PO line item by Material Group

    Hi All,
    How do I default the Tax code for the PO line item by material group in INDIRECT purchasing (without Material Number)
    What is the config for this?
    Thanks in advance.

    Not possible with mateiral group except you devvelope custom solution or try the following
    Do the config in thetcode
    OMKL
    OMKN
    OMKO
    than maintain that for your conditon in MEK1. 
    In this section, you maintain the tax code determination facility.                                                                               
    Within the framework of the price determination process, it is possible       
    to have the tax code determined automatically via the conditions.                                                                               
    For the purposes of automatic tax code determination, tax indicators          
    derived from the material master record, Customizing, or the purchasing       
    document are used. The system determines the tax code on the basis of the     
    combination of these tax indicators.                                                                               
    To assign a tax code to a combination of tax indicators, you must             
    maintain master conditions in Purchasing (menu options "Master data ->        
    Taxes").                                                                               
    There are tax indicators at the levels "plant", "account assignment           
    category" and "material".                                                                               
    In addition, there are two tax indicators that are derived from the           
    purchasing document:                                                                               
    o  Country of origin and country of destination differ                        
    o  Region of origin and region of destination differ                                                                               
    The assignments "tax indicator -> plant" and "tax indicator -> account        
    assignment category" must be made in Customizing.                                                                               
    Automatic tax code determination can be useful, for example, if different     
    tax rates apply depending on whether a material is placed in stock or is      
    consumed immediately following its procurement.

  • Itunes - how do i select multiple line items not in sequence ?

    itunes - how do i select multiple line items not in sequence ?

    Hold down the Command key and click each in succession.
    To extend the selection across items that ARE contiguous, use the Shift key.

  • Two deductions for invoice with same reason code posted as one line item

    Hi
    We have a scenario wherein we are taking two or more deductions on the same invoice and are using the same reason code which have a setting of charge off.
    SAP system displays the FI posting with same reason codes with charge off setting as one line item.
    However we want the FI Posting to display separate line items per deduction and not combine amounts of deductions based on same reason code with charge off setting.
    Any comments are appreciated.
    Edited by: Kirti Bhardwaj on Jul 24, 2011 9:46 AM

    Hi,
    you can use different reason codes in distribute differences screen once you have fist selected one reason code for one invoice.

  • Select last line item from VBAP

    Dear SAP experts,
    This might sound very silly question but I am new to SAP world.
    is there a simple select statement to select only higest line item.
    Say for example in VBAP, I have 9 line items.
    then my select statement should find the last line item. ie. 9th item.
    Actually, I have a situation where a custom table has 2 key fields and I want to select the only 1 line with higest number in 2nr column. Thank you.
    Anitha.

    Hi,
    types: BEGIN OF ls_vbap,
             vbeln TYPE vbap-vbeln,
             posnr TYPE vbap-posnr,
           END OF ls_vbap.
    DATA : t_vbap TYPE STANDARD TABLE OF vbap WITH HEADER LINE,
           wa_vbap type ls_vbap.
    data: lv_line type int4.
    SELECT vbeln posnr FROM kna1 INTO TABLE t_vbap.
    *****If you just need the last record then write the code  as shown below:
    DESCRIBE TABLE t_vbap LINES lv_line.
    READ TABLE t_vbap INTO wa_vbap INDEX lv_line.
    if sy-subrc = 0.
    write:/ wa_vbap-vbeln.
    endif.
    If you the need the last record after sorting then use the below code:
    SORT t_vbap by vbeln posnr DESCENDING.
    READ TABLE t_vbap into wa_vbap index 1.
    if sy-subrc = 0.
    write:/ wa_vbap-vbeln.
    endif.

  • Can we make use of Transaction code FKMT  for vendor line items

    Hi
    Please advise me whether we can make use of Transaction code FKMT (Account assignment model) for vendor line items as follows:
    For Example:
    Expenditure Account      Dr.       Rs.1000
             To Vendor A                                      Rs.100
             To Vendor B                                      Rs.100
             To Vendor C                                      Rs.100
              To Vendor D                                      Rs.700
    Also please advise me what to give parameters
    Thanks and Best Regards
    Shekhar
    Edited by: Shekhar Yecham on Sep 19, 2008 7:05 AM
    Edited by: Shekhar Yecham on Sep 19, 2008 7:10 AM

    Dear Kulakarni,
    I found few of my fields in 0FI_AP_4.I did n't find few fields can i enhance the Datasourse.
    What is the respective Cube for that  Datasourse.
    I check  0AP_30,but in Business Content that cube is not available.
    Could you please give me guidance.
    Thanks in Advance,
    Srinivasan.

  • Query runs forever when using selection on line item dim

    we have a cube zcube which has po number as a line item dimension .
    everymonth users run queries this cube using po number as selection
    criterai and using a wild card search on this field . every time
    queries have run fine . however , this month when we try to do so
    the query runs forever and no results are returned . i also tried
    listcubing with similar selection but it also did not return any results .
    our production system has lot of data . i tried in test system it worked fine
    i checked the cube for compression and indices in production , they look fine
    can anyone think of anything that could have gone wrong ? also did rsrv tests ..
    but all come green
    we have not done any developments on this cube , however we have shifted to
    a new hardware in the past month . can anyone think of any reasons ?
    anything that can help me catch the issue ? all suggestions welcome

    Not sure,
    Are you saying that you need both the counts seperately? or a combined count?
    how are you joining alpha and beta tables? what is the join condition?
    you need to do something like this,
    SELECT COUNT(CASE WHEN
                        (A.col1 = 'Pete' AND SUBSTR(A.col2,,1,12)=SUBSTR(B.col2,,1,13))
                     OR ( A.col1 != 'Pete' AND SUBSTR(A.col2,,1,15)=SUBSTR(B.col2,,1,15))
                    THEN 1 ELSE 0
                 END)
    FROM alpha A, beta b
    WHERE alpha.join_cloumn= beta.join_columnG.

  • Tax break up of Tax code assigned to every line item

    hi all,
    i want tax break of a tax applied to line item after every line item in the pld.
    ex:-  ITEM CODE         ITEM DSC        QTY      RATE    TAX CODE
            abc                     dhfh                   1          100        BED+VAT
                                                                           eses 2% 10                                                                               
    hses 1%  5
                                                    packing &Forwarding       200
                                                                            VAT 4%  100
    client  want same tax split up for all line item and not after end of report.
    can u guide me how to do it?
    thanx in advance.

    Hi,
    This might be helpful
    Link:[Tax Break up|https://websmp208.sap-ag.de/~sapdownload/011000358700004326202006E/HowToTaxBreakup_2004_2B_IN.pdf]
    *S-User ID is needed for access

  • Section code suppressed on vendor line item in f-53

    Hi all!
    I have created a validation to make business place and section code mandatory on all vendor accounts. This works fine except for when trying to post a vendor payment in transaction f-53. On the line item for the vendor I get an error message when trying to save saying that I must enter business place and section code (according to my validation). Business place is automatically filled but section code is not and the main problem is that that field is supressed. So now it's not possible to post a payment!
    How do I solve this? How do I make the field section code not supressed and filled automatically or manually?
    Many thanks in advance!

    Hi,
    Can you please check the affected posting key in 0B41 and its field status.
    Thanks
    Aravind

  • Abap query to select a line item # from bseg on basis of following pattern:

    Hello,
    I want to retrieve the line item # from bseg which has the following pattern,
    account type = S
    AND
    gl account starting from 135***** , 136***** , 137*****
    , 138***** , 139*****
    hope i am comprehendable. How do i go on writing the query,
    Thanks..
    Shehryar

    Hi Shehryar,
    This will fetch records with GL A/C starting with <b>13</b> only , if you want 14 and others also write sepearate conditions using <b>LIKE</b> statements.
    REPORT zztest.
    DATA : itab TYPE STANDARD TABLE OF bseg WITH HEADER LINE.
    SELECT * FROM bseg INTO TABLE itab WHERE <b>koart = 'S'
    AND
    hkont LIKE '13%'</b>.
    This will take a lot of DB time for fetching the records, try to include Key Fields(BUKRS and GJAHR .. if possible others).
    Regards,
    Arun Sambargi.
    Regards

  • T.code required for Vendor line item display and Customer line item display

    Hi Gurus,
    Pl provide me transaction code for "Vendor line item display and " Customer line item display apart from FBL1n for vendor and FBL5n for customers.
    Kindly advise.
    Regards,
    Samar

    Hi,
    You could use these, for example:
    S_ALR_87012103 - List of Vendor Line Items
    S_ALR_87012197 - List of Customer Line Items
    Just curious: what's wrong with FBL1(5)N?
    Regards,
    Eli

  • Unable to update profit center or plant code in the customer line item

    Hi,
    We require the profit center and plant code and division in FI
    documents (Posted through billing document or through direct FI entry)
    We are unable to input plant or profit center in the customer line item
    while using F-21 or any other FI transaction
    The plant and profit center is not appearing even in customer line item
    in RV document (From SD billing)
    We have made the Field status group as optional for the reconcilation
    accounts.
    Regards
    Sembian

    Hi
    Profit center / cost center are generally entered in revenue & expense line items (P&L items). Customer / vendor master and line items are balance sheet items which will not show profit / cost centers.
    Regards
    Neeraj

  • Display Vendor Code in FBL3N GL Line Items

    I am working on ECC 6 Version. I have observed that in the GL Line Items list ( T code FBL3N) for GR/IR accounts, Vendor Code Field is blank for some of the line items. Mostly the document types involved are RE (MIRO) and WE (Goods Receipt) where vendor code field is blank in the GR/IR Account line item list.
    Is there any way that I could update the Vendor Code in all the line lines displayed in the GL Line Items list (FBL3N).
    Thank you for the reply.
    Gemini

    Hi Gemeni,
    GO TO FIBF -  SETTINGS > PRODUCTS > CUSTOMER
    ASSIGN NEW PRODUCT AS ZOFF..OFFSETTING ACCOUNT DETERMINATION
    AND ACTIVE THE PRODUCT
    COME BACK
    SETTINGS > P/S MODULE > CUSTOMER >
    EVENT : 00001650............USE FM.......LINE_ITEMS_GET_GKONT
    SAVE.....
    GO TO GR IR ACCOUNT IN FBL3N AND CHANGE LAYOUT ASSIGN OFFSETTING ACCOUNT
    YOU CAN GET OFFSETTING ACCOUNT NUMBER AS VENDOR IN FBL3N
    NO NEED ABAP DEVELOPMENT
    Rgds
    SumaMani

  • Selection of line item

    hi,
    Hi,
    i want to select the lines in table control of transaction va02 and then want to delete that line through a program for selection, but how can i know that this line is selected and then proceed further.
    regards
    m.phanindra

    Hi
       I may not give you the exact answer, but i think this will give you an idea in solving your issue.
       1) When we select some line from the list, then 'AT LINE-SELECTION' event will get triggered... You can write the required coding in this block of the code.
       2) Inorder know which line is selected, we use the HIDE area for that.
       ex: HIDE: wa_spfli-carrid,
                      wa_spfli-connid.
        This HIDE will store all the field values which come through it, and When a row is selected the data that has been hidden for that particular row will be made available again in the AT LINE-SELECTION block.
       Hope this will help you.
    Thanks
    Ravi

  • MIRO Deselect and select Multiple line items

    Hi All,
    At the time of miro we are taking the reference of PO. In PO we have 1200 lines related to Custom duty, additional custom duty, ecess, clearing and forwarding charges and freight.
    we want to do the MIRO for custom duty, additional duty and freight only, for these we have 600 line items. we need to select these lines one by one. this is time taking job.
    can any body tell me that how we can select these line at once.
    Regards all

    Hi,
    You can make use of Planned Delivery cost in the PO Refernce Tab. This will cover all other costs other than you basic material or service cost.
    Regards,
    amit

Maybe you are looking for