RBKP and BKPF table update from MIRO

Hi All,
I am using the BADI BADI_FDCB_SUBBAS01 to add a custom field in MIRO transaction. The added custom field is getting updated in RBKP transaction.
I also want to update the custom field data in BKPF table, but i dont know when the BKPF table gets updated in MIRO transaction.
Can you help me where the BKPF table will get updated. Is there any BADI for updating the custom fields in table BKPF via MIRO?
Thanks and Regards,
Vijay

Hi Baskar,
I have done this thing from MIRO transaction to update BKPF table. Please check the below code.
METHOD if_ex_badi_fdcb_subbas01~put_data_to_screen_object.
  CONSTANTS:
  c_bkpf_xref1(25) TYPE c VALUE '(SAPLFDCB)BKPF-XREF1_HD'.
  FIELD-SYMBOLS: <fs_bkpf_xref1> TYPE ANY.
fill interface attributes from importing paramters
  me->if_ex_badi_fdcb_subbas01~invfo  = im_invfo.
  ASSIGN (c_bkpf_xref1) TO <fs_bkpf_xref1>.
  IF sy-subrc = 0.
    <fs_bkpf_xref1> = me->if_ex_badi_fdcb_subbas01~invfo-zlet_number.
  ENDIF.
ENDMETHOD.
METHOD if_ex_badi_fdcb_subbas01~get_data_from_screen_object.
CONSTANTS:
c_bkpf_xref1(25) TYPE c VALUE '(SAPLFDCB)BKPF-XREF1_HD'.
FIELD-SYMBOLS: <fs_bkpf_xref1> TYPE ANY.
fill export parameters from interface attributes
  ex_invfo  = me->if_ex_badi_fdcb_subbas01~invfo.
ASSIGN (c_bkpf_xref1) TO <fs_bkpf_xref1>.
if sy-subrc = 0.
<fs_bkpf_xref1> = ex_invfo-zlet_number.
endif.
ENDMETHOD.
After passing the data through field symbols, then you need to update the BKPF table using the BADI AC_DOCUMENT. Refer the below code.
METHOD if_ex_ac_document~change_after_check.
variable declaration
  DATA: lv_let_number  TYPE zisr_let_number,
        lv_field TYPE char18 VALUE '(SAPLMRMP)xaccit[]',
        lv_let_field TYPE char27 VALUE '(SAPLMR1M)RBKPV-ZLET_NUMBER'.
Field symbol declaration
  FIELD-SYMBOLS : <ft_accit> TYPE accit_t,
                  <fs_accit> TYPE accit,
                  <fv_let_number> TYPE ANY.
Constant declaration
  CONSTANTS : lc_miro TYPE sytcode VALUE 'MIRO'.
Check for transaction code MIRO
  IF sy-tcode EQ lc_miro.
    ASSIGN (lv_field) TO <ft_accit>.
    CHECK sy-subrc EQ 0.
    ASSIGN (lv_let_field) TO <fv_let_number>.
    CHECK sy-subrc EQ 0.
Assign the letter number to BKPF table field XREF1_HD
    LOOP AT <ft_accit> ASSIGNING <fs_accit>.
      lv_let_number = <fv_let_number>.
      <fs_accit>-xref1_hd = lv_let_number.
    ENDLOOP.
  ENDIF.
ENDMETHOD.

Similar Messages

  • Any problem using bseg and bkpf tables

    For fico details i using  bseg  and bkpf  tables.
    I noted that programming is very difficult because of these tables are cluster table.
    plz give me other tables
    if i using these tables any problem will come?

    >
    mysvijai197715 wrote:
    > Hi Aniesh,
    >
    >            BSEG and BKPF are cluster tables. It contains transperant tables like BSIS, BSIK etc. For example to take vendor details usr the BSIK.If you use BSEG and BKPF it will take long time search. suppose your concern having lot of data means may be your server will get shutdown. So use only trasnperant tables like BSIS, BSIK etc.
    >
    >
    > Regards
    > R.Vijai
    Incorrect.  BKPF is a transparent table and not a cluster table and you can use it just like any other transparent table.  BSEG is a cluster table but there is no problem selecting from it so long as you use the key of BUKRS, BELNR, GJAHR - unless you are selecting a very large amount of data, but then this can cause problems when selecting from any type of table.
    The advantage of using BSEG over the other FI line item tables such as BSIS and BSIK is that it holds all the lines of an FI document while the others will hold only a subset eg BSIK will only hold lines that contain a vendor reference and BSAS holds only cleared GL account lines.  Though you can only use it when you have the key.  If you need to search on vendor, you can use BSIK as a starting point, but since I usually need to get hold of all the lines on an FI document, I then have to select from BSEG anyway.

  • Link between AUFK and BKPF table

    Hi all,
    Can anyone tell me the link between AUFK and BKPF table.
    Thanks in advance
    Regards
    Neha Kapoor

    hi neha ,
    1.first u have to get MBLNR from AUFM for that order
    2.Next u have to call FM
    <b>AC_DOCUMENT_RECORD</b>
    I_AWTYP                         MKPF--->Constant
    I_AWREF                         4900003215--->MBLNR
    I_AWORG                         2004--->Year
    I_AWSYS
    I_AWTYP_INCL
    I_AWTYP_EXCL
    I_BUKRS
    I_VALUTYP                       0
    X_DIALOG                           X
    then u will get the Accounting Documents.
    regards
    prabhu

  • Replacement iphone - trying to restore from backup, but iOS v 6 running and won't update from recent backup

    Replacement iphone - trying to restore from backup, but iOS v 6 running and won't update from recent backup. How do I ensure I get all my photos etc onto new phone?
    Thanks

    If you're old phone that was repalced was a higher version of iOS, it wont be able to restore. Update your iPhone to the lastest iOS 7.0.4 and try to restore it then.

  • How can I copy and paste table cells from Pages into InDesign with minimum reformating?

    How can I copy and paste table cells from Pages into InDesign with minimum reformating?

    Do you mean you want to retain the formatting from Pages, or retain formatting already applied in ID?

  • I have a new 5s and everything has updated from the cloud except my iTune songs. They all show waiting since yesterday , how do I get to download

    I have a new 5s and everything has updated from the cloud except my iTune songs. They all show waiting since yesterday , how do I get to download

    Do you have iTunes Match or Purchased songs?
    If purchased, start iTunes Store > More... > Purchased > Music > re-download from here
    If iTunes Match : http://support.apple.com/kb/TS4124

  • I have Iphone 5S and I never updated from IOS 7.1.2 to IOS 8 and now this morning I noticed that IOS 8.0.1 was available but since it had bugs it was removed, so can anyone tell me if I can update to IOS 8 not 8.0.1 but just IOS 8?

    I have Iphone 5S and I never updated from IOS 7.1.2 to IOS 8 and now this morning I noticed that IOS 8.0.1 was available but since it had bugs it was removed, so can anyone tell me if I can update to IOS 8 not 8.0.1 but just IOS 8?

    No its not out yet, when I went in to settings it still says 8.0.1 and I just searched on google, it says IOS 8.0.2 will come out in a few days. I just want to get IOS 8, I don't care about IOS 8.0.1 or 8.0.2 .

  • HT1926 iTunes won't install everything it needs to run.  I remove it from my computer and reinstall it and it keeps saying it.  I am using Windows 7 and the latest update from iTunes.

    iTunes won't install everything it needs to run.  I remove it from my computer and reinstall it and it keeps saying it.  I am using Windows 7 and the latest update from iTunes.

    What does the error message say when you install iTunes and it fails?
    This post was edited by Malignance

  • Idoc for bsid ,bseg and bkpf tables

    hi ,
    i have extrated the data from 4.7 and uploading into ecc 6.0.
    is there any IDOC for uploading data coming from BSID , BSEG AND BKPF tabels?
    i checked bapi , i could not find some fields in bapi .pls.advise if any IDOC
    As it is very urgent , pls.help me in this regard .
    Regards ,
    Kiran.

    Hi,
    There is some IDOCs which related to the bseg, bkpf etc table
    FIDCC1,FIDCC2.
    <b>Reward with points if helpful.</b>
    Regards,
    Vijay

  • Table update from workflow

    Hi,
      I have a requirement to start workflow when table entry or modification is made. And in one has to authorize for the data. then only data should be saved in data base. if manager rejects data should not be saved in data base.
      What i have done till now is i have generated a table maintainence and created and new (using business objects )event to raise. (writing a FORM). So when ever we create new table entries event is raised. And i am using this event to trigger my workflow.
      I have two problems
      first one. this event is only getting trigged if i make entry to table through se11 and create new entries option. if i am using a program to update the table then event is not getting trigged. Is there way i can make this event to trigger even if i insert  data to this table from any where?
    Second problem
         i want to complete my workflow. based on manager decision only database should be commited or rolled back.
      if any one needs further details regarding problem reply.
    Thanks in advance
    Mohan

    Hi,
    I also think you should use a temporary table where you store the data you want to insert into the database before the approval is done. You create the maintenance view on this temp table and start the workflow from there. Once manager approves the new entry / change, workflow automatically updates the permanent table and deletes the record from the temp one.
    You can use the change documents, maintenance view event routines or maintenance view screen logic to trigger the WF. But I`m not aware of any tools to capture a database change done by a direct update, so if you also have programs directly updating the database table, you have to trigger the workflow start event explicitely in those as well.
    Regards,
    Krisz

  • Adding Custom Fields to BSEG and BKPF Tables

    Hi All,
    My customer would like to add around 5 fields to BKPF table and 6-7 fields to BSEG table. Can you all suggest me whether it would be a good idea to add any custom field to these tables ? I would like to mention that standard fields available in these tables will not be used for the requirements of the customer and he is insisting on adding custom fields. I need your expert advice on this matter.
    Regards,
    Rohit

    Hi Friend,
    Please do not add any custom fields in those tables.
    These two tables are pillar of accounting entries in SAP, if you want to push them then it is OK, otherwise find some other way.
    Regards
    Krishnendu

  • Table update from text file on server

    How do I get a table in dreamweaver to update from a text
    file thats on the server it will be posted on? Do I need to use
    some sort of weird coldfusion or asp.net, or can i do it in basic
    html. It would be sweet to make happen for my portfolio news
    section ... thanks!

    Hello,
    What you need is to know the structure (fields) of your internal table LS_BKPF at runtime.
    The standard SAP class CL_ABAP_TYPEDESCR contains Methods to describe not only repository structures but also variables used in your ABAP program.
    DESCRIBE_BY_DATA : Description of data object type
    DESCRIBE_BY_NAME : Description of object type using relative/absolute names
    DESCRIBE_BY_OBJECT_REF : Description of object type using reference
    DESCRIBE_BY_DATA_REF : Description of data object type using reference
    Example on how to do this can be found here :
    [http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414700)ID1687263150DB21033411053326729243End?blog=/pub/wlg/2071|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414700)ID1687263150DB21033411053326729243End?blog=/pub/wlg/2071]
    After you have retrieved the fieldnames of your internal table at runtime you can add them in the first line of your dataset.
    Success.
    Wim

  • HT4972 I have an iPhone 3g and trying to update from 4.1 version to newest...help?

    I have an iPhone 3g and I am trying to update from 41. version to newest 6.1....won't wo rk...help!!

    The iPhone 3G cannot be updated beyond iOS 4.2.1.

  • What are the equivalents to AI single scan and AO single update (from v. 6.1) in version 8.2?

    I just recently upgraded my labview program from version 6.1 to version 8.2 and now I'm converting over some of my VIs from the previous version.  I'm looking for equivalent VIs to AI single scan and AO single update.

    The functions are available if you install traditional DAQ as well as DAQmx but since the traditional DAQ driver is no longer getting updates, you'll want to transition to DAQmx. You should check the references that Abhinav T mentions in this post. A DAQmx Read is used for acquisition and a DAQmx Write is used for output.

  • Target and Source Table - Query from ODI Repository

    Hi folks,
    Can anybody help me? I am trying to query the following from an ODI 11g work repository:
    All tables and for each table the tables that are listed in designer as “filled by” (don’t know the exact translation as I am using a german ODI designer) – in other words “all tables and the tables they are depending on”. The reason is to perform a connect-by query on that.
    There is a solution published on ODIEXPERTS: http://odiexperts.com/interface-mapping-query, but however it does not show me the expected results. Does anyone have an idea how to get a simple table like that:
    TARGET          SOURCE
    TAB1           TAB2
    TAB1           TAB3
    TAB2           TAB4
    TAB3           TAB5
    TAB3           TAB6
    TAB6           TAB7
    Using the Metadata Navigator is no option as we don’t have Weblogic installed and I need the data for further processing.

    If memory serves you have an SNP_POP table still in that release, join to the Model table (the joins cols are obvious if I recall) to get the datastore names and your more or less there.
    I dont have that table in 11.1.1.5 and we moved over a while back so cant really take a look anytime soon.

Maybe you are looking for

  • Keyboard shortcut for "Save a Copy" in Acrobat 9 Pro?

    I cannot find a keyboard shortcut for Save a Copy in Acrobat 9.3.2. THere's nothing in the help docs. Even more bizarrely, the idiots who designed the GUI assigned the y shortcut on the File menu to both "Modify PDF Portfolio" *AND* "Save a Copy", so

  • JSP/JSTL to faces migration

    hello all i have some web applications developed in jsp an i want to migrate to faces - if i install the faces servlet all the jsp will work ok ? - how can i migrate an jsf to faces ? - faces will work well with tomcat 6.x java EE 1.6.0 - is there an

  • IMovie 08 Requirements. Can't install iMovie 08! Please help!

    I have a G5 Dual 2.0 Ghz PPC with 2gb of memory. I am trying to install iLife 08. The requirements say: iLife '08 requirements Hardware: Mac computer with an Intel, PowerPC G5, or PowerPC G4 processor • iMovie requires a Mac computer with an Intel pr

  • Cost center table

    WE have FICO and HR modules on different Boxes. We use BD16 to ALE CostCenters from Finance to HR BOX. Is there a Trasansaction code where we can ALE 100 Costcenters at one time. BD16 allows only one costcenter right now

  • Indesign CS5 and Photoshop

    Hi, I have InDesign CS5 V.7 installed on my PC at work and want to find out the easiest way to add Photoshop to this software? Help much appreciated. Thanks