New GL - Update segment field of table FAGLFLEX*

Hi All,
We are turning document splitting in our configuration, split by segment.
When do posting of invoice, the vendor leg will be automatically split base on expense leg segment.
Example enter invoice consist of 2 expense leg:
GL Account    Segment   Amount
DR Expense  SEG01     $100
DR Expense  (blank)      $200
In document view (BSEG table) the posting will be:
GL Account    Segment   Amount
DR Expense  SEG01     $100
DR Expense  (blank)      $200
CR Vendor                    $300
In GL View (FAGLFLEXA table) the posting will be:
GL Account    Segment   Amount
DR Expense  SEG01     $100
DR Expense  (blank)      $200
CR Vendor     SEG01     $100
CR Vendor     (blank)      $200
We need to default the vendor leg (bold above) segment to SEGXX. Any body have any idea on how to do this? Thanks.
rgds,
Rini

Hi,
I need to default the segment field in FAGLFLEX* table to certain value when the segment field is blank.
Do you know the BAPI/BADI that I can used? Thanks
rgds,
Rini

Similar Messages

  • How to update field in table FAGLFLEXA/FAGLFLEXT

    Hi Gurus,
         we are stay in ECC 5.00. The new g/l have activated but we have not assigned the relevant scenario to the ledger (Refer note no 990612)
         now we have assinged following field:
         FIN_CCA: RCNTR (Cost center), SCNTR (Sender cost center)
         FIN_CONS: RASSC (Trading partner), RMVCT (Transaction Type)
         FIN_GSBER: RBUSA (Business area), SBUSA (Trading partner's business area)
         FIN_PCA: PRCTR (Profit Center), PPRCTR (Partner Profit Ctr)
         FIN_SEGM: SEGMENT (Segment), PSEGMENT (Partner segment)
         FIN_UKV: RFAREA (Functional Area), SFAREA (Partner Functional Area)
         our problem is the data was posted before that does not update fields in table FAGLFLEXA/FAGLFLEXT,How to update field in table FAGLFLEXA/FAGLFLEXT?
    Thanks,

    Hello Jenjira,
    Since this was a question asked few years back, I think you can share your experience with activation of a Scenario subsequent to Go-Live of new GL functionality (We are contemplating activation of one more scenario for Functional Area updation in new GL. 4 update scenarios were activated at time of New GL Implementation 4 years ago).
    Please share following:
    1. Impact of this subsequent activation on Open documents in the live system.
    2. How you addressed the issues arising on Point 1.
    3. Any support that you got from SAP Support Team on issues thereof.
    Any inputs will be of great help.

  • Update PRODH field from table T179T

    hi,
    i want to update PRODH field from table T179T into table VBRP. for this we
    need to take selection option also.
    selection option will be :
    ·             Sales Organization (field VBRK-VKORG)
    ·       Billing Date Range (VBRK-FKDAT)
    ·       Distribution Channel (Vbrk-vtweg
    while i have done this for one field by using hard code but like:
    TABLES: VBRP.
    CLEAR VBRP.
    UPDATE VBRP SET PRODH = 'PLC01' WHERE VBELN = '0008300051'.
    SELECT SINGLE * FROM VBRP WHERE VBELN = '0008300051'.
    WRITE: VBRP-VBELN,VBRP-PRODH.
    but this is not the right way. please guide me how to solve this.

    TABLES: VBRP.
    CLEAR VBRP.
    UPDATE VBRP SET PRODH = 'PLC01' WHERE VBELN = '0008300051'.
    <b>commit work.</b>
    SELECT SINGLE * FROM VBRP WHERE VBELN = '0008300051'.
    WRITE: VBRP-VBELN,VBRP-PRODH.
    use commit work after update statement.
    But this code would make vbrp-vbeln as plc01 only.
    If you want to get the prodh value from t179t, then write a sleect on t179t and then update.
    TABLES: VBRP.
    CLEAR VBRP.
    select single prodh
      from t179t
    where......
    UPDATE VBRP SET PRODH = t179-prodh WHERE VBELN = '0008300051'.
    commit work.
    SELECT SINGLE * FROM VBRP WHERE VBELN = '0008300051'.
    WRITE: VBRP-VBELN,VBRP-PRODH.

  • Updating NETPR field of table EINE using BAPI

    Hello All,
    I have a requirement to update info record data in tables EINE, EINA, KONP. The fields to be updated are KSCHL, KBETR and NETPR. I am able to successfully update KBETR and KSCHL fields using bapi BAPI_PRICES_CONDITIONS. But I am unable to find any field in the bapi structures that would update NETPR field.
    Request you to please suggest how can I update NETPR successfully in table EINE.
    Thanks in advance.
    Anand

    Hi Anand,
                         Use the Function Module 'ME_DIRECT_INPUT_INFORECORD' to update/change the info record values.
    Pass the netpr value in ls_eine structure.
    To get better understanding on using this function module, please have a look on this link
    Create new inforecord with standard-condition via FM
    Regards,
    Arun Prasath Kumar.
    Edited by: Arun Prasath Kumar on Jan 17, 2011 12:09 PM

  • Updating Custom field in Table BUT000 using BAPI 'BAPI_ISUPARTNER_CHANGE'.

    Hi,
    I have added a new custom field in table BUT000. Now i want to update that field with 'X' and i have used EXTENSIONIN parameter in the BAPI 'BAPI_ISUPARTNER_CHANGE'. i have populated the field name(Custom field name) and value 'X' to that structure and passed to BAPI. But that field value was not getting updated. So can any one help me how to resolve this issue.
    Thanks,
    Sushma

    Hi Ravi,
    Thanks for your response.
    I have passed the Structure name  in parameter EXTENSIONIN, but still i am facing the same problem.
    Thanks,
    Sushma

  • Updating custom field in table EKKO within user exit when PO is saved

    I am trying to update a custom field in table EKKO when a PO is saved.  I am using FM EXIT_SAPMM06E_013, within enhancement MM06E005.  Since EKKO is not a table that can be updated with this user exit, I am using a technic that I read about on SDN where I assign a field symbol to the calling program variable and then am able to access data within EKKO table.  But when I pass this data back into the field symbol, for some reason this field is not getting saved when the PO is saved.  In debug mode, it looks like this field is getting updated, but when I look in the table after the PO is saved, it is not there.  My code sample is below.  What I am doing wrong?
    data:
      CHAR(50) VALUE '(SAPLMEPO)EKKO-ZHDRCSTCENTER',
      g_zhdrcstcenter like ekko-zhdrcstcenter,
      FIELD-SYMBOLS <F1> type any.
    if i_ekko-ekorg = '5401'.
      ASSIGN (char) to <F1>.
      g_zhdrcstcenter = <F1>.
      move '0000113322' to g_zhdrcstcenter.
      <F1> = g_zhdrcstcenter.
    endif.
    Thanks!
    Sarah Smyth.

    Firstly, have you investigated using EXIT_SAPMM06E_008 to set any custom fields you have added in the EKKO_CI / CI_EKKODB structure?.. that might work more easily.
    In terms of doing an assign back into a calling program's memory, it can work but it's probably worth setting a break point in your code then stepping through watching the values in EKKO - sometimes you can find subsequent code that re-writes an earlier copy of values back into the structure, thereby preventing you doing your change...  SAP does warn this method is for "internal use".  Also check in your debugger that it's SAPLMEPO and not SAPMM06E you need.

  • BADI or User exit  for FB50 to update custom field in table COEP

    Hi all,
    i have added one custom field in table COEP through include CI_COBL .
    when i do posting through sales order(VA02) or purchase order(ME22n) that custom fields in COEP get updated with controlling document
    and through BADI AC_DOCUMENT i m updating that custom field in COEP.
    but when i do manual posting through FB50 controlling document is generated in COEP but i m not able to update that custom field
    because in this case BADI AC_DOCUMENT  is not get triggered.
    is there any BADI or User exit or enhancement spot for FB50 through which i can update that custom field in table COEP

    Hi Sandy,
    Thanks for u r reply,
    RFAVIS01 is not getting triggered through FB50
    and F180A001 ( EXIT_SAPLF048_001) is getting triggered but it doesnt contain COEP field in its parameter
    import - F180A_DOC_HEAD_TAB
                 F180A_DOC_ITEM_TAB
    changing - RELATION_TAB

  • How to update key fields for table

    Hi,
    how to update key fields for a table.The update statement is not working for the same.
    Regards,

    Hi,
    See the below example.
    TABLES SPFLI.
    DATA WA TYPE SPFLI.
    MOVE 'AA' TO WA-CARRID.
    MOVE '0064' TO WA-CONNID.
    MOVE 'WASHINGTON' TO WA-CITYFROM.
    UPDATE SPFLI FROM WA.
    MOVE 'LH' TO SPFLI-CARRID.
    MOVE '0017' TO SPFLI-CONNID.
    MOVE 'BERLIN' TO SPFLI-CITYFROM.
    UPDATE SPFLI.
    CARRID and CONNID are the primary key fields of table SPFLI. All fields of those lines where the primary key fields are "AA" and "0064", or "LH" and "0017", are replaced by the values in the corresponding fields of the work area WA or the table work area SPFLI.
    Regards,
    raj.

  • Adobe Interactive - Problem Updating Form Fields within tables

    I am working with Interactive forms. My scenario is I download the form, update, upload to the Web and then submit to the backend, I am basically use a blend of the tutorials available. From a Web Dynpro perspective all is working well.
    The problem I am having is in the Form itself.
    I have 10 fields which I want the user to update.  Fields which are bound at Page Level, work fine. e.g.
    <CONTEXT>.<PAGE>.<FIELD>::Change
    Data_Source.Page1.Langu::Change
    However Fields in a table do not seemed to work properly. e.g.
    <CONTEXT>.<PAGE>.<TABLE>.<ROW[x]>.<CELL[y]>.<FIELD>::Change
    Data_Source.Page1.tblCusDetails.Row[0].Cell[1].Name
    If I perform an update in the form Langu works well, Name does not.
    e.g. Page1.Langu.rawValue = "EN"                             This works OK
           Page1.tblCusDetails.Row[0].Cell[1].Name = "Andrew "            This does not work.
    I got round this issue by searching for the attribute at runtime.
    Now (Based on my scenario) I am trying to update my form;
    I download the form to the front end. Update and save. When I open the form again only Langu has saved, Name reverts back to <Emtpy>.
    My workaround would be to remove all the tables, which I will start now, but  I am wondering if I am doing something wrong or if its a bug in the form,?
    Can anyone help?
    Andrew

    Hello Bhavik:
    Thank you, for your quick response.  To be honest, I went through the tutorial from SAP TechEd, "Creating Interactive Forms in Web Dynpro for JAVA, and it is drving me crazy.
    I did create under the Contect actually Value Node:
    DataSource and within that two Value Node for PersonalData and TravelData.  For PersonalData, the following Value Attribute: CostCenter, Department, Name etc etc........
    The properties is already set for the value attributes to string, I tried to change it to init it will not take it? 
    Please call me Amr.  Thank you,

  • Updated a field in table fkkvkp

    Hi Guys
    I am trying to make changes to the address field in table fkkvkp. My program works in development but does not work in QA.
    Can any one explain why this is happenning.The internal table is populated correctly.Please see code below.
    SORT gt_itab BY vkont.
      LOOP AT gt_itab.
        CLEAR: gt_contractaccountdata,
               gt_contractaccountdatax.
        UNPACK gt_itab-adrnb TO gt_contractaccountdata-addr_no.
        APPEND gt_contractaccountdata.
        gt_contractaccountdatax-addr_no = 'X'.
        APPEND gt_contractaccountdatax.
        READ TABLE gt_contractaccountdata INDEX 1.
        READ TABLE gt_contractaccountdatax INDEX 1.
        CALL FUNCTION 'BAPI_ISUACCOUNT_CHANGE'
          EXPORTING
            contractaccount      = gt_itab-vkont
            partner              = gt_itab-gpart
            contractaccountdata  = gt_contractaccountdata
            contractaccountdatax = gt_contractaccountdatax.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
        REFRESH: gt_contractaccountdata,
                 gt_contractaccountdatax.
      ENDLOOP.

    Hi,
    Have you compared versions between the one in development and in QA.
    Also, Check if there are missing transports and the transports imported successfully.
    Also, Try using wait parameter in the transaction commit. Normally, because of volume of data, it may take some time to get updated in the database.
    Title you have provided is not correct
    Hope it helps.
    Sujay
    Edited by: Sujay Venkateswaran Krishnakumar on Sep 6, 2010 3:42 PM

  • Updating eurou field of table dfkkop

    Hi all,
    I need to update the EUROU field of table DFKKOP. Can anyone tell me about a BAPI or function module for the above
    functionality.
    Thank u.
    Sudipta Das

    I think FKK_DOCUMENT_CHANGE will work.

  • Updating ZUONR field of table rbkp

    Moved by moderator to correct forum
    I want to update the zunor field of table rbkp, when invoice is generated for specific purchasing doc. KIndly tell the exits if any or any other method.
    I found one exit "EXIT_SAPLMRMH_001", but it is not updating this field, as the invoice is generated after the execution of this exit only.
    Edited by: Matt on Nov 8, 2008 7:33 AM

    hi Shan,
    this exit doesn't work
    I have to update the field ZUONR of table RBKP manually every time transaction MRRL is run.
    Earlier this filed ZUONR was hidden, we unhide it and want to display some data.
    The screen is of  transaction MIGO,where this field is going to appear.
    Ajay

  • Updating 'SEGMENT' field from transaction FB60 using FAGL_DERIVE_SEGMENT

    In our project we are using BADI FAGL_DERIVE_SEGMENT to automatically determine the field 'SEGMENT' from FB60 transaction.
    This problem only occurs when the field 'Segment' has been updated, because upon creation the value is filled and calculated correctly by the BADI. But it seems that on modification, the BADI is not being called, and therefore the field remains unchanged.
    (This only happens in the table control, because when double-clicking on the line we see that the value is correctly updated)
    Does anyone know any OSS note or any solution (maybe another BADI or configuration) to always have the value updated in the table control?
    Thanks in advance!
    Regards,

    Hi John,
    Through inbound IDOC, if the material already exists then material no will also be passed.
    Use WE19. and give the value for MEINS and check in debug mode.
    Regards
    Arun

  • Update Date Field in Table Row to SysDate

    This appears to be an easy thing to do, but I can't figure out the best way to do it.
    I have a table with 2 input text boxes and some output text boxes.  When either input text box changes for a row, I need to update the date in one of the output text boxes in the same row to the current date. Then, when I commit the changes, the database should show the current date for that date field in that record.
    I'm using JDev 11.1.1.6
    Thanks,
    Ray

    Any help would be appreciated.
    I figure the RowImpl class is being instantiated when the table loads.  Is there a method in the RowImpl class that gets called when a row is changed?  Should I have an action on my submit button that scrolls through all rows to see if any are dirty and update the date from there?
    Please help.

  • How To Automatically Update  a Field in Table

    Hi.
    I have a table :
    PAYMENT_PERIOD
    ID char(10()
    DUE_DATE date
    VALID Char(1)
    In above table ID is customer's ID, DUE_DATE field contains date greater than Current Date and VALID field can contain either 'V' or 'I'. Initially when I insert row in table VALID is V and DUE_DATE is any date greater than Current Date.
    My Problem is
    When Due_Date becomes less than Current Date then VALID field should be automatically updated by 'I'.
    How can I do that?
    Thanks.

    Karthick_Arp wrote:
    978184 wrote:
    Hi.
    I have a table :
    PAYMENT_PERIOD
    ID char(10()
    DUE_DATE date
    VALID Char(1)
    In above table ID is customer's ID, DUE_DATE field contains date greater than Current Date and VALID field can contain either 'V' or 'I'. Initially when I insert row in table VALID is V and DUE_DATE is any date greater than Current Date.
    My Problem is
    When Due_Date becomes less than Current Date then VALID field should be automatically updated by 'I'.
    How can I do that?
    Thanks.Use a TRIGGER or even better have a custom Transaction-API to do the job.And what event causes said trigger to fire?
    From what we know so far, the only thing that makes the row "invalid" is the passing of time and the relation of DUE_DATE to SYSDATE. As John said, don't store VALID at all, just calculate it when needed.

Maybe you are looking for