Checking / posting a GL balance - with a trading partner?

Hi All,
Am quite at a loss, after worrying at this problem for a month. If anyone can give me a clue, I'd be most appreciative!
I'm writing code that builds several BAPI objects, then uses BAPI_ACC_GL_POSTING_CHECK to make sure it can post. (I'm going to use it's twin, BAPI_ACC_GL_POSTING_POST, with exactly the same objects, if it passes the check.)
For posting to a number of GL accounts for a given period, that is fine. But I understand I'm supposed to use "GL Account" AND "Trading partner" as a unique key, rather than just "GL Account". And that's where I'm stuck.
To put it another way, right now I can do something like this:
GL Account: 100101             Posting Value: -1000
GL Account: 100102             Posting Value:  -5000
GL Account: 100103             Posting Value:  6000
This will post successfully, because the total balance is zero.
But what i want to be able to do is something like this:
GL Account: 100101             Trading Partner: ABC123     Posting Value: -1000
GL Account: 100101             Trading Partner: DEF456      Posting Value:  -5000
GL Account: 100103                                                          Posting Value:  6000
So, if anyone can, please! A point in the right direction would be most helpful!
Thank you,
Richard

Hello Kalyan,
I was testing your solution and I have a problem with the validation. I think the problem is the set.
Is BSEG and HKONT the table and field that I should use on the set? if not what table and field should I use to create the set?
The problem that I have is that the validation rejects all the accounts (even the correct ones).
Below my configuration:
Set
Table BSEG
Field name  HKONT
001     65401     65405     Valid GL accounts
_Validation_
Prerequisite
  BSEG-LIFNR = '2943' AND BSEG-ANFBU = 'US10'
Check:
BSEG-HKONT IN SET01
Please advice.
Regards,
Monica

Similar Messages

  • SAP Standard Report:  Trial balance that include trading partner

    Good Morning Guru's-
    To avoid creating a custom report, does anyone know of a standard SAP report trial balance that includes trading partner?
    Thank you. 
    Points will be awarded promptly!

    Hi
    You can use Trading partner in the selection screen but not in the output in standard reports
    If you populate Trading partner in the dynamic selection, output you will get only specific to that trading partner
    Reg
    Vishnu

  • Stock Take Posting does not balance with Stock Take Variance

    Hi Experts,
    We have a client that has completed and posted a stock take and the result from the variance report is not the same as the total of the stock take journal.
    For example the total gain of the stock take was R839.13 in value
    The stock take journal show a total gain of R2216.89 in value.
    I  run a audit report of the warehouse and the total qty and value match to the variance report of a total gain of R839.13
    I have also checked that the price source for whs stock posting is at item costs which calculates to the same total value of R839.13
    The stock take posting posts a ST Journal and you are not able to drill down into where the figure originates from.
    So it makes it very difficult to investigate or determine why there is a difference.
    Please can you assist with possible solutions or reasons to determine why there is a variance between the variance report and the stock take posting?
    Regards
    Christine Ward

    Dear Mr Boshard,
    In order to know the value of the stock taking in Business One you can check the field 'COUNTED' in OITW.
    Therefore, if you compare the counted and the onhand quantity before doing the inventory posting but after the stock taking you will find which items had more quantity at the moment of the stock taking than now.
    Please, try this query:
    SELECT T0.[ItemCode], T0.[WhsCode] FROM OITW T0 WHERE T0.[Counted] >  T0.[OnHand]
    Do not hesitate to come back if you still need help.
    Regards,
    Marcella Rivi
    SAP Business one Forums Team

  • Unable to update Partner Unit in Eccs with Trading Partner from FI

    Hi,
    I had removed the Breakdown category from the FS item Master (CX14) for a reco Acct by mistake .Now when i update the master table in CX14 with the same Break down Category(0110 - Partner Unit (break down Type-4) + Translation Currency (break down type -2)) the sytem than gives a pop up window showing the "Report for Transaction Check" where it asks for the Default Value of Partner Unit to be entered.Once i maintain the default value of partner unit all the document for the reco account gets updated with default Partner unit.However in FI module each of the documents posted for this account have diffrent Trading Partner due to which im unable to do the Interunit Elimination.
    Kindly let me know how do i update Partner unit in all the documents in Consolidation with the trading Partner from FI module.
    thanks
    Karan

    Once i maintain the default value of partner unit all the document for the reco account gets updated
    this system behavior makes sense as you are trying to change configuration after loading transaction data. what happens if you go back to the underlying accounts and change TP back to what FI is showing? if u have to deal with a lot of documents u may want to set up a BDC session to do the mass update.

  • FB01 Enter Trading Partner for Posting Key 01 (Customer Invoice)

    Dear Experts,
    I would like to ask is it possible to enter the Trading Partner for the FI Document line item with Posting Key 01.
    I can modify the Trading Partner for Posting Key 40 and 50 but I cannot find field in the More Data Button.
    Can anyone help me to solve this issue?
    Thanks.

    hi,
    Check whether the document type you are using to post is allowed to enter the trading partner.
    To check use the TCODe OBA7  and select the relevent document type. then select the check box enter trading partner under control data.
    and also check the customer you assigned for that posting key 01 is got assigned trading partner in the master record or not(TCOD XD02/XD03).
    thanks.

  • Re: Problem with currency valuation by trading partner

    Consultants,
    During currency valuation , we maintained V_FAGL_FCBAL table in sm30 that provides the ability to post valuation results by additional dimensions along with the GL account. 
    Our Client went live with 7 fields maintained for all three ledgers. Now business has a need for valuation results by trading partner (TP) which is currently not maintained. The field is RASSC for Trdaing partner.
    Adding TP to the table is not giving the results, rather the program errors out and does not post documents. The T Code used is FAGL_FC_VAL. The message that the system generates on running the above t code is" Field COBL-VBUND. does not exist in the screen SAPLKACB 0002".
    Can any one suggest of any missing link or any configuration that needs to be checked.We had checked in the document types and the trading partner is checked.
    An early response is highly appreciated.

    Hi Ranganath - Can you please let us know if you found a solution to work around this issue?
    Thanks

  • Trading partner account balances

    Experts,
    How can we move the account balances from one Trading Partner to another Trading Partner?
    Please help!
    Thanks,
    Bob

    Hi Bob
    Check the balance of GL/Trading Partner Combination
    eg
    GL          Trading Partner  Balance
    666666   XX003                 -20000
    666666   XX004                 30000
    Now suppose you need to transfer balance from CN003 XX004
    You can make a posting as
    DR  666666 XX003     20000
    CR  666666 XX004     20000
    So that the GL balance is not affected, but the trading partner balance is transferred
    Regards
    Sachin

  • Trading Partner is Missing, Posting is not possible

    Hi Guru's,
    We are not maintaining trading partner on GL master level.
    By using TC- ABAVN (Asset Retirement by scarping), system asking trading partner.
    I have also checked Document type (AA), there is selected trading partner option.
    Can You Please tell me how to solve this error.
    Regards,
    MowliT

    You say
    I have also checked Document type (AA), there is selected trading partner option
    - obviously, that's the reason you are getting the error message.
    Check with your team who has set this flag in the doc type config - there might be some genuine reason why this flag has been set in your system (txn OBA7).
    Removing the flag will remove your error message, but you need to be sure before removing that there would be no side-effects.
    Regds
    Gulshan

  • B2B integration with just one trading partner using a dedicated VPN channel

    Hi colleagues,
    We are working in a B2B integration escenario, where our company will just integrate with a service provider using a dedicated VPN channel, so we won't go out to internet, for that B2B communication we have identified 10 inbound + 9 outbound interfaces.
    Do we need to look into implemeting an document exchange protocol for that? Of course we need some ACK mechanism as there'll be SLAs in place. If so, what would it be the most appropiate? I've been reading about ebxml, rosettanet etc but still not very clear for me which level of customization you'll need in order to apply those protocols. If this is much and given the fact that we are just dealing with a trading partner and we won't scale this platform to use more parther in the future, would it be worthy to customize our own ACK mechanism?
    If relevant, in our side we use oracle fussion middleware, the trading partnel is using SAP IS-U. The message format will be standard XML, we haven't identified the need of any other formatting at the moment such EDI.
    I know this is a very open question, so any advices or recommendations on that are highly appreciated.
    Regards,

    Hello Dipal,
    There is a lilttle catch. Eventhough your Delivery channel which is used in the agreement for a specific trading partner specifies some IP/Port, you can dynamically send the message to some other IP as well. This is specified in the document.
    This will give a flexibility of sending the HL7 message not just to the end point which is mentioned in the agreement but also to any othere ip/port as driven by the ACTION_NAME field in the IP_MESSAGE type. However ACTION_NAME filed overrides the delivery channel information, hence at any point of time you can
    1. Send a message to the end point mentioned in the delivery channel and used in the agreement. In this case ACTION_NAME is null or
    2. Any dynamic end point driven by the ACTION_NAME.
    Hope this is clear.
    Rgds,Ramesh

  • Trading Partner for open item document prior to BCS implementation

    Dear Experts,
    We have just introduced BCS in our company currently. One of the difficulties the user are facing is that the open item (many of them - thousand open item with different currencies and exhange rate) prior to the introduction of BCS does not contain Trading Partner. This ended up that the adjustment on the Trading Partner has to be done in BCS regularly. The amount in value of adjustment is not fixed - since there could be subsequent payment that will clear the open item.
    I understand that TP cannot be changed once posted. Have read a lot in the SAP portal and forum.
    Question: Based on your experience, it there a way that I can overcome this problem? Could SAP somehow allow TP to be assigned to open item document prior to implementation of BCS?
    I hope I can get some answer, otherwise, our user has to diligently continue to put the adjustment until all the open items are cleared.
    Thank you.
    Regards
    Fauzi

    hi,
    Check whether the document type you are using to post is allowed to enter the trading partner.
    To check use the TCODe OBA7  and select the relevent document type. then select the check box enter trading partner under control data.
    and also check the customer you assigned for that posting key 01 is got assigned trading partner in the master record or not(TCOD XD02/XD03).
    thanks.

  • Trading Partner + Document type

    Hi
    As per my understanding, there are following 2 options for posting trading partner on a line item:
    Option - 1
    I checked the fields u2018Inter-company postingu2019 and u2018Enter Trading Partneru2019 in the control tab for Document type. 
    In this case, Documents can be posted cross-company and you can enter the partner for G/L account items manually.
    In this case, system will not derive Trading Partner based on the trading partner on other line item of the document if this field is left blank during the document entry
    Option - 2
    I did not check the field u2018Inter-company postingu2019 and checked u2018Enter Trading Partneru2019 in the control tab for Document type.
    In this case, you manually enter Trading Partners.  Cannot be a Cross-company partners (different trading partners on different lines).  If there is GL/Vendor/Customer with a trading partner, system will post the same on other line item or system will automatically derive trading partner on the other line item
    Is there a way that system derives Trading partner automatically on the GL line item based on the trading partner in the master data of vendor on the credit line item (Option - 2) and at the same time if i need to overwrite it / change it on the GL line, i have the flexibility to do that. 
    Please advice
    Thanks,
    Shiv

    Hi Shiv,
    Please see if attached Note 386896,779844 applies to your situation.
    Let me expplain how the system works concerning the setting of XMGES (enter trading partner) and XGESUB(intercompany posting)
    XMGES NOT set and XGSUB NOT set:
    ===============================
    If VBUND is maintained in the master data of the customer or vendor, VBUND is transferred to all line items while POSTING the document.
    XMGES set and XGSUB NOT set:
    ===========================
    VBUND can be entered for the whole document. Only possible for G/L accounts, which have not maintained a VBUND in the master data. VBUND entered in the document header will be transferred to all line items.
    XMGES NOT set and XGSUB set:
    ===========================
    Enables to post a cross-company document. More than one VBUND is concerned. VBUND is not unique for the whole document. Master data are not regarded.
    XMGES set and XGSUB set:
    =======================
    Enables to post a cross-company document. A manual entry of VBUND for the G/L account is possible (it is not transferred into G/L account from the customer/vendor; but into customer/vendor line item) to the G/L account.
    Regards
    Ravinagh Boni

  • Populating Trading Partner

    Hi All,
    I have a requirement as below,
    1) For vendor/customer posting I have to populate the trading partner field in GL line item with trading partner of vendor/customer.
    2) If it is a GL to GL posting I have to populate the trading partner from GL master.
    Please help me on how to achieve this.
    Thanks
    SK

    Dear:
    In case of customers please follow and also check its account group field status in OBD3for trading partner.
                     In the SAP menu, select  Accounting -> Financial accounting -> Accounts receivable -> Master records -> Change. Proceed as follows to maintain customer master records:
    1. In the initial screen, flag the indicator "Control data" in the general data area.
    2. In the detail screen for control data, enter the company ID in the field "Trading partner".
    For vendors ( also check its account group field status in OBD3for trading partner)
    Select  Accounting -> Financial accounting -> Accounts receivable -> Master records -> Change. Proceed as follows to maintain vendor master records:
    1. In the initial screen, select the indicator "Control data" in the general data area.
    2. In the detail screen for control data, enter the company ID in the field "Trading partner".
    For GL A/c ( also check its account group field status in OBD4 for trading partner)
    Select  Accounting -> Financial accounting -> General ledger -> Master records -> Change.
    In the detail screen, enter the company ID in the "Trading partner" field.
    Regards

  • Trading Partner Configuration from FICA site

    Dear Gurus,
    We are struggling to bring the Trading Partner ID on FB03 or FBL3N screen  after SAP ISU Invoice posting ? Please suggest necessary configuration or User Exit / Enhancement required for this.
    Thanks In Advance
    With Regards,
    Sunil

    Hi Sunil,
    Trading partner can be inherited or derived from master or can be entered manually in transactions.
    Updation of trading partner is being controlled through relevant document type configuration in SAP
    Its being controlled through two main check boxes in document type configuration (transaction code-OBA7) namely, "Inter-company postings" and "Enter Trading partner" check boxes
    a) If "Inter-company postings" check box is set and "Enter Trading partner" is not set
    Functionality: Trading partner is derived from master data and no manual entry is possible in line item / transactions. Here trading partner must not be unique in a document.
    b) If "Inter-company postings" check box is not set and "Enter Trading partner" is set
    Functionality: Trading partner can be manually entered in line item / transaction by choosing Extras menu button -> Trading partner which will be applicable for all the line items in a document. Here trading partner is unique in the document.
    c) If both "Inter-company postings" and "Enter Trading partner" check boxes are set
    Functionality: Trading partners are derived from master data and can also be entered manually in the line item / transaction in the "More Data" screen. Here trading partner must not be unique in a document.
    d) If both "Inter-company postings" and "Enter Trading partner" check boxes are not set
    Functionality: Trading partner can be manually entered in a line item / transaction by choosing Extras menu button -> Trading partner which will be applicable for all the line items in a document. Here trading partner is unique in the document.
    In short, both options (b) and (d) represents the same functionality and it depends on each of the document type configuration with the business process involved.
    Hope it helps...
    Thanks,
    Amlan

  • Trading partner - cleared document

    Hi All
    I would like to change trading partner in posted document. is it possible.if not please suggest me how to change this?
    Regards
    Prasad

    Hi
    to do the trading partner corrections it is better to create new document type with "enter trading partner"
    you can dr/cr with same gl code with correct trading partner one line and with wrong trading partner other line..
    regards..
    Pranav

  • Exit in FB01 to populate trading partner

    Hi All,
    I have an requirement to fill the GL line item trading partner with value of trading partner from vendor or customer master.
    For example if I post document with two line item, one is vendor leg and other is GL leg. In vendor line item i have trading partner field which is getting populated with the trading partner from vendor master. The same trading partner needs to be populated in GL line item trading partner field.
    Please let me know can it be done thru exit or is there any other way to do it?
    Regards,
    KS
    Edited by: KS on Apr 27, 2011 6:47 AM

    hi,
    This should be possible to do through a validation on document level. Please look into OBBH for this.
    Regards
    Hein

Maybe you are looking for