Seperate Document Row with same account  when post GL

Hello everyone
How I can seperate Document Row with same account  when post GL
because If I post dcoument that  have many rows but same account and difference detail. It will sum amount for same account in JE
and I found that will seperate if it has diference project code but it's not enough for me.
How I can config SAP B1 to seperate Doc row when post to JE if it has difference detail (as userfield or standard filed)
Sorry for my poor english
Thank,Seang

Hello Suthee,
Sorry to tell you, it is not possible to do so in current B1 without addon development.
There are 2 alternative.
1.Consulting Workaround:
Seperate the Item into 2 items, the account into 2 sub accounts.e.g.
Item A => Item A01 and A02
G/L Account 1001 => Sub Account 100101 and 100102
2.AddOn development to seperate the JE just after it is created document
You can update to JE to seperate just after JE are created by docuemnts.
Just Listen FormDataAdd Event.
Sample Code:
Private Sub FormDataEventHandler( _
    ByRef BusinessObjectInfo As SAPbouiCOM.BusinessObjectInfo, _
    ByRef BubbleEvent As Boolean) Handles oApp.FormDataEvent
        'I just listen 133 - AR invoice here,
        'You may add the target documents
        'Before action = true, start the transation
        If BusinessObjectInfo.FormTypeEx = "133" _
                And (BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD _
                Or BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_UPDATE) _
                And BusinessObjectInfo.BeforeAction = True Then
            oCompany.StartTransaction()
        End If
        'Before Action = false,
        'Update the JE in document
        'Succeed, commit, otherwise rollback
        If BusinessObjectInfo.FormTypeEx = "133" _
        And (BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD _
        Or BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_UPDATE) Then
            If BusinessObjectInfo.BeforeAction = False And BusinessObjectInfo.ActionSuccess Then
                Dim xmlDoc As System.Xml.XmlDocument = New System.Xml.XmlDocument
                xmlDoc.LoadXml(BusinessObjectInfo.ObjectKey)
                Dim objectKey As String
                objectKey = xmlDoc.SelectSingleNode("//DocEntry").InnerText
                Dim oDocument As SAPbobsCOM.Documents = Nothing
                oDocument = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseOrders)
                If oDocument.GetByKey(CInt(objectKey)) Then
                    Dim oJE As SAPbobsCOM.JournalEntries
                    oJE = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)
                    If oJE.GetByKey(oDocument.TransNum) Then
                        '*Add you code to Update oJE lines here*
                        lRetCode = oJE.Update
                        If 0 <> lRetCode Then
                            oApp.MessageBox("Failed to update JE")
                            'roll back the whole transaction, including the document
                            oCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_RollBack)
                            Exit Sub
                        Else
                            'Commit the transaction
                            oCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_Commit)
                        End If
                    End If
                End If
            End If
        End If
    End Sub
Hope it helps. Thanks.
Kind Regards
-Yatsea

Similar Messages

  • Unbale to create new document part with same document number

    Number range assigned to the X Document Type is internal. I have created new document (0001) with Document Part 000 & Version 00. For same Document Number when i tried to create New Document part by mentioning Document Numner 0001, Document Part 001 and Version 00, it says Document Type X can be assigned to internal number range only.
    Even I tried with following selection....
    Document Number = Blank
    Document Part = 001
    Document Version = 00
    Template:
    Document = 0001
    Document Part = 000
    Document Version = 00
    Now system is creating document with new number i.e. 0002.  But we want to create another document part with same Document Number. What is the problem with internal number range for Document Number?

    Hi Pradeep,
    Following are the config parameter of the document type.
    CM Relevnce = blank
    Number assignmt= 01
    Internal Number Range =02
    External Number Range= blank
    Number Exit =MCDOKZNR
    Vers. No. Incr. =0
    Version Sequence = blank
    AlternativeScreen = blank
    Let me know if you need anything more.
    Edited by: JJSingh76 on Dec 7, 2010 7:25 PM

  • Can You Transfer iTunes from One Log-in to another Log-in on the SAME computer with SAME account?

    How do You Transfer iTunes from One Log-in to another Log-in on the SAME computer with SAME account?

    Move the files to the /Users/Shared/ folder and then to the other account's home folder.
    (85927)

  • How do i have CC on home and work computer with same account?

    How do i have CC on home and work computer with same account?

    Hi Markofm,
    You may install software on up to two computers. These two computers can be Windows, Mac OS, or one each.
    If you install on a third computer, it will request you to De-activate on the other two computers.  You can then reactivate one of the previous two computers, and use Creative Cloud apps on it.
    If you regularly need to use the Creative Cloud on more than two computers then it would be best to purchase an additional subscription.  This is the same licensing between which we have for our perpetual product.  An advantage though for Creative Cloud over the perpetual product is that you can install on Mac and Windows with the same subscription!
    Thanks & Regards,
    Sanjeeta

  • Logged with same account on 2 separate machines - ...

    Hi there, appreciate if someone could clear this up for me. If I'm logged with same account in two separate places, while in a conversation - would you be able to see or hear the conversation on the computer, that's not the one I'm calling from? Thanks!

    blaze64 wrote:
    Tried to create account on new computer...
    Don't "create" an account. On the new computer, just go to the command *Store > Authorize This Computer*, and authorize it to the existing account, using the existing ID and password.

  • Can't import from home share with same account

    Hi all,
    I have this really annoying problem that some of the content of my iTunes library on one computer cannot be imported to the other one, because "this computer is not authorized".
    That is, of course, bollocks.
    The scenario:
    MacMini Server = mac1
    Macbook Pro = mac2
    - Both machines have itunes signed into the same account
    - Both machines have home sharing enabled
    - mac2 is the "master", it's where I buy music etc. and mac1 is the machine I use to stream off at home, it's always on etc.
    When I purchase anything new, I can transfer those purchases just fine via the import function. However, I have probably about $200 worth of music in the mac2 iTunes which _plays fine_ on mac2, however, it is not transferrable to mac1 due to mac1 not being authorized (but it is).
    Is it possible I purchased that music with a different account and somehow managed to authorize mac1 to play it? If so, how can I find out?
    Cheers
    - Balt

    I will reply with the error message as soon as I can. Thanks!
    Good-O! I'll be watching for it.

  • Is there any way to combine 2 seperate lines on the same account into a family plan?

    My wife and I have our phones on the same account, but the Verizon Wireless salespeople signed her up as 4 separate lines instead of a family plan. I admit she was an easy mark for the salesperson, because she went in to get two smartphones and walked out with 3 smartphones and a home voip device. I was at work and wasn't expecting her to be taken advantage of in such a way, or I would have had her wait to join when we both had the time to do it together. Now we have a smartphone collecting dust in a drawer, and a home phone that only rings when telemarketers call.
    Long story short, we are going to have to cancel two of the lines that we don't use, probably pay etf's, and all that fun stuff. If we are to keep Verizon, we will need to switch our lines from being separate services to a family plan or it just won't be worth keeping this carrier. 2gigs of data just simply isn't enough for us both, considering the family plans for 2 people that are comparably priced have 10gigs.
    Has anyone here run into a similar situation? Any help you can give in fixing this would be greatly appreciated.

    How are you on the same account if they are separate lines?
    Were any of these lines on the Edge payment option?

  • Podcast synching on multiple macs with same account

    How do I get my podcasts to synch on multiple macs and therefore ipods with same itunes authorized account, ie the subscriptions I have on home computer don't show up on my work itunes account and therefore when I'ved watched flying one way, when I land I want to load the next set of episodes, but find the need to create entirely new subscriptions?
    Thanks
    george

    I was able to resolve the problem using addMessageCountListener and messagesAdded method, as suggested by you.
    I am now facing another problem. Whenever a new message is received, code inside messagesAdded method gets executed. Here I am trying to spawn another thread and do some stuff. But this new thread is not starting at all. It goes into some JavaMail:EventQueue and does nothing. What is the concept of EventQueue here? How can I get this new thread executed?
    Also will there be synchronization problems in messagesAdded method. Say I received a message and I am processing it in the messagesAdded method. In the mean time another message comes up. How will this behave.

  • Multiple objects with same name when rebuilding index online

    I am looking for advice on how to handle a race-condition in sql server, related to reading metadata while an online index rebuild is being performed.
    The problem is as follows:
    At some point we execute the following statement:
    SELECT 
    obj.object_id AS id, 
    scm.name AS scm, 
    obj.name AS name, 
    obj.type AS type, 
    ds.name AS dataspace_name, 
    prop.value AS description, 
    part.data_compression_desc as compression_desc
    FROM sys.objects AS obj
    INNER JOIN sys.schemas AS scm ON obj.schema_id = scm.schema_id
    INNER JOIN sys.indexes AS idx ON obj.object_id = idx.object_id AND idx.type IN (0,1)
    INNER JOIN sys.data_spaces AS ds ON idx.data_space_id = ds.data_space_id
    INNER JOIN (SELECT object_id, data_compression_desc FROM sys.partitions WHERE index_id IN (0,1) /*Heap, Clustered*/) AS part ON part.object_id = obj.object_id
    LEFT OUTER JOIN sys.extended_properties AS prop ON obj.object_id = prop.major_id AND prop.minor_id = 0 AND prop.class = 1 AND prop.name = 'Description'
    WHERE obj.type = 'U' OR obj.type = 'S'";
    The statement returns some metadata for indexes (indices?), the purpose of wich is not the subject.
    When executed while an online index rebuild is running, a race condition occurs: When the rebuilding enters the final phase, the new index, which have the same name, becomes visible and thus results in two rows with the same name (from sys.object). I am unaware
    if this only occurs for clustered index (which is what we have observed).
    We became aware of this behaviour, as we added the metadata to a .Net Dictionary using name as key, and received a duplicate key exception. We have, hoewever, not been able to reproduce the situation, due to the nature of the race condition, and we found very
    little documentation on the subject.
    What we would like to do now, is to differentiate between the two. We see two options:
    1) We could just use the first of the rows and ignore the second. This solution would require that the metadata for both rows are identical.
    2) We could discern the "real" index from the "rebuilding" index. This requires some kind of extension of the Where-part.
    We have not been able to determine if the requirements for either option is present, as we havent found any documentation, nor have we been able to test for differences, as we cannot reproduce the situation.
    We would also like some way of reproducing the situation, so ideas as to how to do that is welcome.
    Can anyone direct me to relevant documentation, or alternate solutions.
    HRP

    1. Use the index with the lower fragmentation to identify the newly rebuilt index (as it almost always will have lower fragmentation)
    2. To reproduce, block the online index rebuild process by trying to alter the table's definition in a transaction (and don't commit, which will place schema lock on the table)
    Satish Kartan http://www.sqlfood.com/

  • Exit or substitution GL account when posting goods issue

    Hi out there,
    does anyone know how to change BSEG-HKONT via a subsitution ? It seems to be blocked for that purpose. Although if I unblock it in table GB01 this does not work.
    If there is no possibility does anyone know a customer exit to change the account determination for GBB VBR when posting a goods issue ? It is needed for special postings and I want to program it either in a substituiton or exit.
    Thanks a lot for your help.
    Sebastian

    Dear Sebastian,
    It is possiable to change G/L through subsitution. But you will have to take help from abaper who will write code for the subsitution.
    Any subsitution which is realted to G/L can be written though the following path
    Financial Accounting (New)->>Financial Accounting Global Settings (New)->>Tools->>Validation/Substitution->>Substitution in Accounting Documents
    after that enter new line and double clik to write ABAP code based on your requirement.
    Hope you got the way.
    Rupesh

  • If I already purchased apps from my iPhone with same account, where are they?

    I have purchased many apps in the last year or two with my iphone using apple apps but when I try to find those apps for downloading to my macbook air, they're not there. It makes it seem as if I need to repurchase them again using the same account. Is there something I need to do to find them?

    Welcome to Apple Communities
    You need to purchase them, because iOS and OS X are different and requires different apps

  • Grouping consecutive rows with same value?

    Hi
    I have a table in which three columns are:
    ROWID  SHOPNAME
    1      SHOP_C     
    2      SHOP_A     
    3      SHOP_C     
    4      SHOP_C     
    5      SHOP_A     
    6      SHOP_A     
    7      SHOP_C     
    8      SHOP_B     
    9      SHOP_B     
    10     SHOP_E    
    11     SHOP_A     
    12     SHOP_D     
    13     SHOP_D     
    14     SHOP_F     
    15     SHOP_G     
    16     SHOP_F     
    17     SHOP_C     
    18     SHOP_C     
    19     SHOP_C     
    20     SHOP_C      Rowid is a primary key column with unique ids
    Shopname is varchar2 column
    I want to make groupings of every "shopname" value "order by ROWID" such that when there are consecutive rows of same shopname the group remains same and as soon as there is different value in shopname column for the next row the "group" changes.
    below is my desired output is with 3rd column of groupings as follows:
    ROWID  SHOPNAME    Groups
    1      SHOP_C      1
    2      SHOP_A      2
    3      SHOP_C      3 ------> same grouping because Shop name is same
    4      SHOP_C      3 ------> same grouping because shop name is same
    5      SHOP_A      4 ----> different shopname so group changed.
    6      SHOP_A      4 ----> same group as above because shopname is same
    7      SHOP_C      5
    8      SHOP_B      6
    9      SHOP_B      6
    10     SHOP_E      7
    11     SHOP_A      8
    12     SHOP_D      9
    13     SHOP_D      9
    14     SHOP_F      10
    15     SHOP_G      11
    16     SHOP_F      12
    17     SHOP_C      13
    18     SHOP_C      13
    19     SHOP_C      13
    20     SHOP_C      13I want that to be done via analytics, so that I can partition by clause for different shops over different cities
    regards
    Ramis.

    with data(row_id, shop) as
    select 1,      'SHOP_C' from dual union all
    select 2,      'SHOP_A' from dual union all     
    select 3,      'SHOP_C' from dual union all
    select 4,      'SHOP_C' from dual union all    
    select 5,      'SHOP_A' from dual union all     
    select 6,      'SHOP_A' from dual union all
    select 7,      'SHOP_C' from dual union all
    select 8,      'SHOP_B' from dual union all
    select 9,      'SHOP_B' from dual union all
    select 10,     'SHOP_E' from dual union all
    select 11,     'SHOP_A' from dual union all
    select 12,     'SHOP_D' from dual union all
    select 13,     'SHOP_D' from dual union all
    select 14,     'SHOP_F' from dual union all
    select 15,     'SHOP_G' from dual union all
    select 16,     'SHOP_F' from dual union all
    select 17,     'SHOP_C' from dual union all
    select 18,     'SHOP_C' from dual union all
    select 19,     'SHOP_C' from dual union all
    select 20,     'SHOP_C' from dual
    get_data as
      select row_id, shop,
             lag(shop) over (order by row_id) prev_shop
        from data
    select row_id, shop,
           sum(case when shop = prev_shop
                      then  0
                      else 1
                      end
                ) over (order by row_id) grps
      from get_data;
    ROW_ID SHOP   GRPS
         1 SHOP_C    1
         2 SHOP_A    2
         3 SHOP_C    3
         4 SHOP_C    3
         5 SHOP_A    4
         6 SHOP_A    4
         7 SHOP_C    5
         8 SHOP_B    6
         9 SHOP_B    6
        10 SHOP_E    7
        11 SHOP_A    8
        12 SHOP_D    9
        13 SHOP_D    9
        14 SHOP_F   10
        15 SHOP_G   11
        16 SHOP_F   12
        17 SHOP_C   13
        18 SHOP_C   13
        19 SHOP_C   13
        20 SHOP_C   13
    20 rows selected

  • 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.

  • 1 Mac & 1 PC using iTunes with same account: download purchased?

    I have two computers: one a Mac (running OS X) and another a PC (running Vista). Using the same iTunes account, I've purchased music on both computers. However, when I go to "purchased" on each computer it only shows that purchases I've made on each machine (not the combined purchases). How can I download purchases on one computer that was made on another (that used the same account)?

    I understand that; however, the purpose of O/S evaluation use is to (hopefully) resolve these kinds of issues in advance of final release. Since this is a user forum, I thought that possibly someone might have an idea. I'm not usre if the issue relates to the O/S or possibly to a security setting related to the O/S that is preventing the song download and the application to acknowledge being authorized.

  • Insert row with same formatted cells

    I am a newbye with Numbers.
    I have created a spreadsheet with some columns and every cell formatted, such as a list or a box to check.
    Until now every time I have inserted a new row the system create a row with the same formattated cells,
    now the system insert a blank row without formattated cells.
    Please, help me! Thanks.

    Vin,
    Being new to Numbers, you should read the Numbers User Guide, available as a free download from the help menu.
    The problem you are experiencing may be in another column. The condition that Barry mentioned, having the same expression or special format in every body row, applies to every column in the table.
    Jerry

Maybe you are looking for