Vendor line items BAPI/FM required

Hi,
1 . I need to fetch vendor open line items for selection parameters:
a) vendor
b) Company code
c) document type (S_blart - all doc types except clearing doc type)
d) Posing date (Very important)
All are the select options. (Say i fetch data from BSAk in internal table i_bsak)
2. After this I need to fetch all the cleared items for matching values for data fetched in step 1 the condition being
bukrs IN s_bukrs
vendor = i_bsak-lifnr
blart IN s_Clearing_doc_type
belnr = i_bsak-augbl (Important)
Can any 1 please suggest me an FM or BAPI to retrieve the data (Tcode FBL1N but we need to go by posting date)
I want to perform steps 1 and 2 without select tatements.
I do not want to fetch data from table BSAk as the data is archieved.
I fear I cannot use BAPI_Ap_ACC_GETOPENITEMS
Kindly suggest.
Best Regards,
Himanshu.
Edited by: Himanshu Makashir on Jun 19, 2009 3:47 PM

Himanshu - this essentially the same question as FM or BAPI required except you are looking at vendors rather than customers.
Thread locked.
Rob

Similar Messages

  • Requirement to populate the Profit center field of Vendor line item thru...

    Hi,
    My requirement is to populate the Profit center field of Vendor line item.
    For this, I want to write a substitution where based on the Business Area of Vendor line item, the system should populate the Profit center while saving.
    Is it possible thru Validation & Substitutions...
    Plz guide me in writing this
    Points will be suitable rewarded for replies.
    regards
    AVM

    Tcode: GGB1
    An example shows how to make a G/L account available for line item substitution.
    GGB1
    Click FA – Doc Header
    Click Create Substitution icon
    Enter the Text
    Click Create Step icon
    Click the field u want – Say - BKPF- BKTXT
    Choose the option – Say :Constant value
    Give description of ur step
    Click Prerequisite
    Double Click Structure BKPF
    Double Click BKPF-AWKEY
    Click Constant button
    Enter the Text u want to make it appler in the Reference key
    Click Substitution and enter the constant value u want
    Go to Tcode: GGB4
    Click Substituted Fields
    Give ur table and field (Here - BKPF- BKTXT)
    Do it in a similar way..if u cannot proceed, let me know the exact field values..and i can take screenshots and send u across
    Thanks,
    Sridevi

  • 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

  • Fbl1n txn for updating vendor line item

    hello every one iam trying to update vendor line item when a billing document get cancelled in vf11 i have tried bapi  BAPI_ACC_DOCUMENT_REV_POST .
    the requirement is whenever a billing document get cancelled the commision need to get credited again for example if vendor line item is
         St Assignment         DocumentNo Type     Doc. Date  S DD Amount in local cur. LCurr Clrng doc. Text
            COMMISSION         1700000014 CP       31.08.2011                    71.26- INR
    it need to get like this
         St Assignment         DocumentNo Type     Doc. Date  S DD Amount in local cur. LCurr Clrng doc. Text
            COMMISSION         1700000014 CP       31.08.2011                    71.26 INR
    that means the amount in local currency need to get into + one like above
    Please help ASAP & if some one give me code also that will be very helpul for me

    Hii ali this is my code & below iam showing u what wasthe data in  my return table please suggest me what to do
          DATA : P_REVERSAL     LIKE  BAPIACREV ,
                 TRAN_DOC(20)   TYPE  C         ,
                 p_busact       LIKE BAPIACHE09-BUS_ACT ,
                 p_objkey       LIKE BAPIACREV-OBJ_KEY  .
          DATA : P_RETURN  LIKE  TABLE OF  BAPIRET2  ,
                 WA_RETURN  TYPE  BAPIRET2          ,
                 WF_REMARKS  ,
                 PLANT     TYPE VBRP-WERKS         ,
                 bill_no   type vbrk-vbeln         ,
                 belnr     type BELNR_D  ,
                 AWKEY     type AWKEY    .
    data : date1 type sy-datum .
    date1 = sy-datum+0(4) .
    select single belnr AWKEY from bkpf into (belnr , AWKEY)    where blart = 'CP'     and
                                                     budat = sy-datum and
                                                     xblnr = vbrk-kidno . "bill_no .
          IF SY-SUBRC = 0 .
              CONCATENATE belnr AWKEY+10(4) date1 INTO TRAN_DOC .
            ENDIF .
      SELECT SINGLE WERKS  FROM VBRP INTO  PLANT  WHERE VBELN = vbrk-kidno .
            p_reversal-obj_type   = 'BKPFF'.
            p_reversal-obj_key    = tran_doc.
            p_reversal-obj_key_r  = tran_doc.
            p_reversal-pstng_date = sy-datum.
            p_reversal-comp_code  = tran_doc+10(4).
            p_reversal-reason_rev = '02'.
            p_reversal-ac_doc_no  = tran_doc+0(10).
            p_busact = ' '.
            CALL FUNCTION 'BAPI_ACC_DOCUMENT_REV_POST'
            EXPORTING
              reversal = p_reversal
              bus_act  = p_busact
            IMPORTING
              obj_key  = p_objkey
            TABLES
              return   = p_return.
                  IF sy-subrc = 0.
                ---commit Work
                        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
                          EXPORTING
                            wait = 'X'.
                  ELSE .
    *****Use the below statement, if the BAPI is sending back the 'RETURN' internal table.
                    READ TABLE p_return INTO WA_RETURN WITH KEY TYPE = 'F'.
                       IF SY-SUBRC EQ 0 .
                           CALL FUNCTION 'MESSAGE_TEXT_BUILD'
                          EXPORTING
                            MSGID = WA_RETURN-ID
                             MSGNR = WA_RETURN-NUMBER
                            MSGV1 = WA_RETURN-MESSAGE_V1
                             MSGV2 = WA_RETURN-MESSAGE_V2
                            MSGV3 = WA_RETURN-MESSAGE_V3
                            MSGV4 = WA_RETURN-MESSAGE_V4
                          IMPORTING
                            MESSAGE_TEXT_OUTPUT = WF_REMARKS.
                       ENDIF.
                    ENDIF.
    1     E     RW     609     Error in document: BKPFF $ DEVCLNT300          000000     BKPFF     $
    2     E     RW     632     Document BKPFF 1700000061WPL12011 DEVCLNT300 cannot be reversed          000000     BKPFF     1700000061WPL12011
    3     E     F5     814     Document type ZX not defined          000000     ZX
    4     E     F5     814     Document type ZX not defined          000000     ZX

  • Vendor Line Items

    Is there any std BAPI or FM to get Vendor Line Items?
    Is there any database Table which shows all  Vendor line items (open and cleared)?
    Note : table BSIK shows only open line items.
    Thanks in advance. Points will be rewarded.

    hi Nikhil,
    yes, open items are in BSIK, cleared items are in BSAK. There is no table where you can find both! Acc. to my knowledge, there is no FM or BAPI to give back the information you need. You have to select from the tables. In fact you can find all items in BSEG (together with debitor and G/L items), but selecting from that table can take ages...)
    hope this helps
    ec

  • Segregation of Vendor line items

    Dear SAP gurus ,
    I have the following requirement.I wants to segregate vendor line items into
    Opening           Purchases             Payments.
    Balances.
    I know how to segregate purchases and payments in my development report.
    But i want to know how i will get Opening balances as per the given period.
    Regards,
    Gopi.

    Hi,
    While executing the FBL1N, select the "Selection Variant" button the give the the period from which the report has to display. Here in selection variant you can include and exclude the values as per the requirement.
    Assign Points if it useful
    Regards
    Ravindra

  • Profit Center in Vendor Line Item

    Hi
    We have implemented SAP ECC6 - EHP4 and activated Document spliting and Profit Center field is mandatory.
    Now we need to debit a Vendor and Credit another vendor ( new line item), when we try to post the document
    we are getting error "balance in profit center", whereas we are not able to enter the Profit center during document entry.
    Can we get help on this please.
    Regards
    Chandrasekaran A

    Hi,
    Profit Center field is not available for input in vendor line items.
    There are other options available:-
    1. To assign a default profit center to the vendor reconciliation account in (SPRO> Financial Accounting (New)> General Ledger Accounting (New) > Master Data > Profit Center > Assign Default Profit Center to Accounts)
    Or
    2. To create a substitution in OBBH for populating profit center in vendor line item.
    Or.
    3. If 1 and 2 does not meet your need, to use a BAPI BAPI_ACC_DOCUMENT_POST to posting the vendor documents via a custom program.
    Regards,
    Gaurav

  • Profit Center is not getting captured in Vendor line item from MIRO.

    Dear Friends,
    Profit Center is not getting captured in Vendor Line Items from MIRO Transaction for some New Business Users, where as for Old Users profit center is getting generated at Vendor Line Item.
    We have provided the same authorization of old Users to new business users. (i.e. New user is a copy of old user)
    Please help us how we can the get Profit Center in all transactions will be processed by New Business users.
    I think we need to maintain user based authorization to get the Profit center in vendor Line items processed from T.Code:MIRO in SAP.
    Looking forward for your kind cooperation in this matter
    Thanks & Regards,
    Naveen Kumar.

    Hello Naveen,
    I am not very sure about your query, as you might be knowing that the Profit Center is only updated in New GL tables (FAGLFLEXA, FAGLFLEXT) and hence the Vendor relavant tables would not.
    The profit center information in the split lines or the line of the 'General Ledger View' are only displayed within transaction FAGLL03 which read the 'new' table for the NewG/L.
    About profit center wise reporting, when New GL is active Please review attached consulting SAP note:
    - 826357     Profit Center Accounting and new general ledger in
    I hope this helps. If not, please provide an example of your requirement.
    Thanks and regards,
    Suresh Jayanthi.

  • Multiple line item not appearing in vendor line item in FB60

    Hi
    I am posting FB60 accounting entry. I am deducting WHT on the invoice.
    For ex: Expense amount - Rs. 100000, WHT - 10000
    Hence accounting entry is posted:
    Expenses A/c.. Dr 100000
       To TDS Payable 10000
       To Vendor A.c 90000
    Now when i see vendor line item in FBL1N there is only one credit line item for Rs.90000.
    But my requirement is that, vendor line item report should include two line item:
    One for vendor credit i.e. Rs.100000 and one debit for TDS payable for Rs. 10000 and not single line item for Rs.90000
    Please let me know how can i get this. Is there any standard report for the same?

    Hi friend,
    unfoortunately the system doesn't post debit for vendor in this case. You have no report to display line items that wasn't posted.
    would you like have it:
    31 - Vendor ... 10,000.00
    25 - Vendor............1,000.00 *
    40 - expense .......10,000.00
    50 - WHT ..........1,000.00
    The standard automatic WHT post directly the invoice amount to vendor account like this:
    31 - Vendor ... ...9,000.00
    40 - expense ........10,000.00
    50 - WHT ...........1,000.00
    Tell about your business process. What are you doing for ?
    regards

  • Vendor line item

    Dear All,
    My clients wants Spilts in Vendor line items while hitting that particular vendor.
    Clearly,
    We are giving all Advances like Loan advance, Salary advance to employeees as a vendor and
    will deduct, while doing salary process by putting deduction wage type in 14 info type.
    While doing Payroll posting 2 documents will be genarated one by one (simply 2 line items) for the same posting run because those 2 symbolic accounts are customized in vendor account in SPRO.
    My Quesation and Requirement is,
    After do the live Posting, if an employee have 2 deductions, say 2500 advance deduction,1500 Loan deduction (Total 4000 rupees
    Will appear in as a one line item if u go for FBL1N transaction.
    My client wants 2 line items, one line item shold have 2500 Rupess, Second line item 1500 Rupess,
    Then he can strightforward one is for advance deduction, one is for Loan deduction.
    is there is any chance to spilt the one vendor line iten which comes from by payroll posting in two.
    Please help me on this.
    Venkat

    Please give any suggesition on this

  • Vendor Line Item display/ and Purchase order Field

    FI Experts
    We recently implemented the MM PO module in SAP, we are creating PO's automatically in SAp from a 3 party system. We are using field "Our Field" EKKO-UNSEZ to enter a reference from the 3rd party system. Our account payable have requested that they need this field to display in FBL1N "Vendor Line Item Display". I tried by using special fields but table is not available. Anyone has any suggestions? I know I can use BSEG and EKKO but it is too big of a table to use. Does this requires more of an ABAP report rather than just a simple QUERY report?
    Your suggestions are appreciated.

    Hi,
    PO Nr. doesn't appear in Vendor line item, but yes, in GRIR account.
    So when are you performing MIRO, you may use XREF3 field, which usually remains blank, through user exit (OBBH) for populating PO Nr. But yes, if you are processing MIRO of multiple POs, you may not be able to set multiple values.
    BR

  • Vendor line item report in New GL

    Hi
    We have activated New GL. We need vendor line item report based on GL view. FBL1n provides report based on entry view. But we need simillar to FBL1n based on GL view. There is a standard report S_AC0_52000888 which provides vendor line item doucment wise with New GL characteristics such as profit center. However, this report does not provide additional information such as posting date, due date et.c which is available in FBL1n. Hence, we are unable to monitor vendor accounts at profit center level.
    Can anyone suggest how to add additional fields in the above report or any other report available for the same.
    Thanks
    S.Radhakrishnan

    hI
    Thanks for the reply.
    As per your suggestion, we need to bring GL view parameters from FAGL* tables. I need clarification here:
    1. In our case, single line item in BSIK may correspond to multiple profit centers and hence multiple line items in FAGL* tables.
    2. Users run the report for multiple vendors ( beig range) with their profit centers as selection criteria.
    3. In the above case, we need to select all the line items for that vendor and go to FAGLFLEXA and select all line items and delete all line items not pertaining to the profit center entered as selection.
    4. The above process would be time consuming since all the open items will be selected and then delete all those items which are not required.
    5. Else, can we select the items from FAGLFLEXA directly for the profit centers entered and bring additional information from BSIK table. Since vendor accounts are not there in FAGLFLEXA, it would be cumbersome and time consuming.
    6. Which of the above approach would you recommend.
    7. Is it possible to modify the ACO report so that we can add additional information such as posting date, due date etc.
    Regards
    S.Radhakrishnan

  • S_ALR_87012103 - List of Vendor Line Items

    Hi,
    Can any one help me on how we can populate following fields in this report:
    - Purchasing Document Number
    - Invoice Reference
    Please note that above fields are available in FBL1N, but they are not available in Report S_ALR_87012103 (- List of Vendor Line Items).I can not depend on FBL1N as it is not executed when number of vendor / selction period is large, whereas this report runs fast.
    Regards,
    AK

    hi,
    please u r create a report in related to vendor account.
    and add field ur required ....
    e.g _y-vledger etc.
    step 2; if any required any field so u r add the fbl1n report ur requirement.....
    rohit

  • Business Area for Vendor Line Items during Payroll Posting

    Dear All
    We are in ECC 6 version of SAP. We are using Business Area for Internal Financial Statement. We are facing a problem with regard to Business area in Payroll posting. Business area does not appear in vendor line items when we make posting of payroll for multiple business area. We have setting technical accounts for HR. We read SAP note 203276 and it seems that it is possible. Can someone tell us what is the reason that business area not coming in vendor line item while payroll posting.

    Hi
    That part we have already done. The problem only come when we run payroll and there are vendors belonging to several business area in that case system keep the business area field blank. In case if we set field status required system give error. That is why we run payroll by each business area we also have maintained technical account for 1001.
    Regards

  • Due date in vendor line items

    I would like to know if it is possible via Customizing to get the due date taking into account a calendar in order to avoid the due date in a non-working date.
    If it's not possible via Customizing, how can we get it?
    Does the standard cover this requirement?
    Thanks a lot in adavance.

    Hello Montserrat,
    I am not sure whether the functionality can be established via Customizing...based on Customer or Vendor Payment Terms (OBB8).
    But, I can advise a solution that can be acheived programatically (technically).
    Configure a Substitution step (OBBH), may be for item level, in the form of User-exit and inform your developer to embed the logic for verifying the Due Date in the customer/vendor line item against the calender (using appropriate function modules that are available in the standard) and substitute the Due Date to a working day, if required.
    Hope this helps you in resolving the problem.
    Pls reward if helpful.
    With Regards
    Vijay Gajavalli

Maybe you are looking for