Badi for Z-Fields updating using BAPI_CONTRACT_CREATE

Hi Experts,
I need badi name required for updating Custom fields in contract while creating purchase contract.
I am using BAPI_CONTRACT_CREATE for creating contract.
Thanks & Regards,
Sushant singh

1. did you pass your z-fields to BAPI_CONTRACT_CREATE
using EXTENSIONIN strucutre?
2. put break-point into your BADI and check if program stops there....
reards,darek

Similar Messages

  • Exit or Badi for FB01 to update KMNAM filed value to BKPF free field

    Hi Experts,
    Please provide me the correct Exits or Badi for to update KMKPF-KMNAM value to BKPF reference field while posting FB01.
    I tired with substitution but it was not solved my requirement.
    I have to update the KMNAM value into BKPF-XREF2 field as the user selects account assignment model while posting FB01.
    Please advise and share me, is there any other solution you have.
    Thanks & Regards
    Sankar.

    Hi ,
    These is not exits or badis or BTE are not available eith import paremeters KMKPF.
    So you need to get this value using  Assign statement in any user exit  which contains export parmeter as BKPF .
    ASSIGN ('(SAPLSPO4)KMKPF-KMNAM) TO <fs_KMNAM>.
    I hope this may helpfull..
    Thank you,
    Thanks,
    AMS

  • Lead Status Field Updation Using Workflows

    Hi,
    Could anyone suggest me how to update Lead Status field using workflows since that field not visible at the workflow level. we can update using Lead Qualification Script . Is there any other way other then qualification script. Any help would be appreciated.
    Thanks & Regards,
    Ambarish.

    The Status field for Lead is a read-only field. The updates you see are done by the system. Workflow cannot update read-only fields.

  • Userexits/Badis for MIGO to update business area(GSBER) in FI constitution

    Hi ,
    I need to update business area field (GSBER)  for  accounts document after Goods Recieve (GR) through MIGO and Post Goods Issue (PGI) through VL02N.
    Can you please tell me the userexits/BADIS for this requirement
    Thanks in advance
    Sakti

    Hi Sujit,
    Thanks for reply
    I tried with both BADIs. After implementing I put break point.
    And goto MIGO. and filled req. fields and click on SAVE button, it should be stopped there.
    But it is not stopping there.
    Regards,
    Sakti

  • Periodic alert for DFF field update

    Hi Everyone,
    We need to builde the periodic alert for below requirement.
    We have DFF field for status (Submitted/ Not Submitted) which is maintained in Attribute13 in per_all_people_f.
    First alert will fire on update of this DFF to Not Submitted which is straight & simple.
    We need to have weekly alert from the time this field is changed till the time it changed to submitted.
    once it is changed to submitted no aler will fire.
    I was thinking of having custom table with status & update date but this will require to build 3 alerts.
    Can anyone suggest some better way of doing it?
    Thanks
    Deepali

    Hi,
    One option is to use standard AuditTrail functionality on that field, then you'll have the entire chronological history for the field to work the periodic alert logic from.
    Regards,
    Gareth
    Blog: http://garethroberts.blogspot.com/

  • User exit or BADI for MIGO to Update a field in MSEG-KOSTL

    Hi,
    I want to update/change the KOSTL (Cost center) value before creating/posting  the document.
    Please let me know is there any user exits or BADI,  which will export the MSEG structure.
    Regards,
    Ganesh

    Hi
    I believe there isn't a BADI or EXIT allows to change item data, I usually use the exit to change the item text EXIT_SAPMM07M_001 (the BADI MB_MIGO_ITEM_BADI should be the same thing) where I change the data by field-symbols:
    FIELD-SYMBOLS: <KOSTL> TYPE MSEG-KOSTL.
    ASSIGN '(SAPMM07M)MSEG-KOSTL' TO <KOSTL>.
    <KOSTL> = .......
    Max

  • USER EXIT or BADI for Vendor field in MIRO

    Hi Experts,
    In MIRO transaction vendor field gets defaulted from Purchase Order. So my requirement is to changes that vendor with alternate payee.
    To <u>replace the vendor with alternate payee</u> I need the <b>USER EXIT or BADI</b>, kindly help me on this will be useful for us.
    Thanks in Advance.
    SAP Consultant

    Transaction Code - MIGO                     Goods Movement
    Exit Name           Description
    MBCF0002            Customer function exit: Segment text in material do
    MBCF0005            Material document item for goods receipt/issue slip
    MBCF0006            Customer function for WBS element
    MBCF0007            Customer function exit: Updating a reservation
    MBCF0009            Filling the storage location field
    MBCF0010            Customer exit: Create reservation BAPI_RESERVATION_
    MBCF0011            Read from RESB and RKPF for print list in  MB26
    MB_CF001            Customer Function Exit in the Case of Updating a Ma
    No of Exits:          8
    BAPI-step by step procedure
    http://www.sapgenie.com/abap/bapi/example.htm
    list of all BAPI's
    http://www.planetsap.com/LIST_ALL_BAPIs.htm
    Rewards if useful.................
    Minal

  • SQL Query for Date field updation

    I want a query from u.. Hope u help me with a
    solution soon..
    My Q: I want to update a date field in Oracle
    database. But the condition is that i shouldnt change
    the hours, minutes & seconds of the date field.
    generally , if we update the date field then it takes
    the default values for hours, min's & sec's to
    00:00:00.
    EX : if we have a value 21-SEP-2002 04:54:44 in a date
    field. I want to update it to 22-SEP-2002 04:54:44.
    But it updates to 22-sep-2002 00:00:00 if we use
    UPDATE command.

    Use a PreparedStatement:
    PreparedStatement ps = conn.prepareStatement("SELECT * FROM TEMP WHERE TDATE > ? AND TDATE < ?");
    // note: month numbers start at 0, so 1 is february
    GregorianCalendar c1 = new GregorianCalendar(2002, 1, 11, 11, 0);
    GregorianCalendar c2 = new GregorianCalendar(2002, 1, 18, 22, 0);
    Date d1 = c1.getTime();
    Date d2 = c2.getTime();
    java.sql.Timestamp sqlDate1 = new java.sql.Timestamp(d1.getTime());
    java.sql.Timestamp sqlDate2 = new java.sql.Timestamp(d2.getTime());
    ps.setTimestamp(1, sqlDate1);
    ps.setTimestamp(2, sqlDate2);
    ResultSet rs = ps.executeQuery();
    // get results from the result setJesper

  • User-Exit or BADI for USER FIELD in C201 or C202

    Dear Experts,
    SAP has made provision of USER FIELDs in C201 / C202 (Create/Change Master Recipe: Operation), which is saved in PLPO table.
    By applying logic, for each operation I want to create a Phantom part and update values in this user fields at the time of SAVE.
    Is there any BADIs, User-Exit or any standard way available which is called at the time of Recipe Create / Change?
    Or Should i go through Implicit Enhancement for the same?
    With Regards,
    Kaushik Savaliya

    Hi Kaushik,
    Please check these Function exits.
    EXIT_SAPLCPDO_001 -PS: User fields
    EXIT_SAPLCPDO_002 -PS: Customer specific fields in process (standard net)
    EXIT_SAPLCPDO_003 -PS: Customer specific fields in process (standard net)
    Hope it helps.

  • Substitution required for BSEG field updation.

    Hi All,
    I am having a scenario for updating the BSEG-RECID field depending on the value of the RSEG-GEBER field in MIRO.
    When I am trying to create a substituion in GGB1 T.Code:field BSEG-RECID is not displayed there for creating the substitution
    How to get that field for applying the substituion in to that screen. Remaining fields in BSEG table are being displayed.
    Help me out.
    Regards
    Srikanth

    Hi SriKanth,
    You will have to update the table using SM30 or take a help from an ABAPer to updated the table.
    I do not remember the table,but check the techinical details of the filed names in substituition and ask the ABAP er to update the field you require to be in the desgnated table
    I think there is a program which does the chage for you
    Anand

  • Badi for custom field check

    hi
      what is the badi which is used to enchence the field validation for the custom fields and control the custom fileds as well as standard felds.
    thx in advance...explain me in detail abt it...

    Hi
    For field validation for the custom fields and control the custom fileds as well as standard felds, you can use the following SRM Business Add-Ins(BADIs) ->
    - BBP_DOC_CHECK_BADI / BBP_ITEM_CHECK_BADI
    - BBP_CUF_BADI / BBP_CUF_BADI_2
    To get the complete details of these SAP BADIs, use transaction - SE18, and read the relevant Standard documentation an the sample code in the methods given in this case...
    Hope this will help. Do let me know your complete business requirements.
    Regards
    - Atul

  • BADi for custom field

    Once the custom fields inside cProjects are updated and saved, I am looking for a BADi that would do some enhancements. Any idea about this availability?

    Dear Anantharam,
    Please check this sample program from other thread to find BADI and enhancement for a given transaction code. You just need to create a custom program in your system by cut and paste below codes.
    REPORT ZTEST.
    TABLES: TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    TSTCT.
    DATA: JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA: FIELD1(30).
    DATA: V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS: P_TCODE LIKE TSTC-TCODE,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA: WA_TADIR TYPE TADIR.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'PROG'
    AND OBJ_NAME = TSTC-PGMNA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM TRDIR
    WHERE NAME = TSTC-PGMNA.
    IF TRDIR-SUBC EQ 'F'.
    SELECT SINGLE * FROM TFDIR
    WHERE PNAME = TSTC-PGMNA.
    SELECT SINGLE * FROM ENLFDIR
    WHERE FUNCNAME = TFDIR-FUNCNAME.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'FUGR'
    AND OBJ_NAME EQ ENLFDIR-AREA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    ENDIF.
    ENDIF.
    SELECT * FROM TADIR INTO TABLE JTAB
    WHERE PGMID = 'R3TR'
    AND OBJECT in ('SMOD', 'SXSD')
    AND DEVCLASS = V_DEVCLASS.
    SELECT SINGLE * FROM TSTCT
    WHERE SPRSL EQ SY-LANGU
    AND TCODE EQ P_TCODE.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) P_TCODE,
    45(50) TSTCT-TTEXT.
    SKIP.
    IF NOT JTAB[] IS INITIAL.
    WRITE:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    ENDCASE.
    Alternatively, you can do the following:
    1. For what ever transaction u want the enhancement .. just check for the System-->status (menu) and find out the PROGRAM name....
    2. Double click on to the program name and go inside the program (Abap editor)
    3. Search for "Call Customer-function " ... and u'll get some search results .. If u get results then u have enhancement in that tcode .....
    4. Then it actually calls a Function module .... copy the Function module name .... go to SE80 (object navigator) click on "Repository Information system" then Customer Enhancements .... Give the Function module name in the "Components" field and click Execute ....
    ull get a list of Enhancements related to that Componene....
    5. Choose which ever enhancement will suit ur business need ..
    6. Go to CMOD... create a project .... assign ur enhancement ... and then code ur logic.... activate ur enhancement in CMOD ....... Ur Buisness need will be solved...
    For a user exit......
    Finding whether there is any User Exit or not for tcode VA42
    1. For what ever transaction u want the user exit .. just check for the System-->status (menu) and find out the PROGRAM name.... ( The program name would be for our scenario "SAPMV45A" )
    2. Double click on to the program name and go inside the program (Abap editor)
    3. Search for the word "USEREXIT" .... u ll find all the user exits in the search result .. and find ur's then ...
    Reward points if this is helpful.
    Regards,
    Naveen.

  • BADI for changing fields during Creation of BP in CRM

    Hello to everyone,
      I need to find a BADI (or other way) to default several fields during BP creation in CRM (4.0 SR1 SP9). The fields I will like to set are TAX TYPE, TAX NUMBER, TAX CATEGORY, etc.. I have found the BADI BUPA_TAX_UPDATE but i dont see any suitable parameters (structures) to changes these fields. Please advice and thanks in advance.

    Hi
    If you use function BUPA_NUMBERS_GET then your BP number will already be buffered and you can avoid a DB read. It may also be that the BP is not in the DB yet anyway.
    You can only pass one GUID in at a time - loop through IT_CHANGED_INSTANCES into a variable of type BU_PARTNER_GUID and pass that into the function as input parameter IV_PARTNER_GUID.
    Cheers
    Dom

  • Custom fields update using BAPI: BAPI_SALESORDER_CHANGE

    Hi,
          I have append one field into VBAP Table, and i want to update that filed value by using BAPI_SALESORDER_CHANGE FM. I have done all the coding but still its not updating the table. I have checked with SAP fields like order quantity, its upadating the database but the custom fileds are not upadting.
    steps i have done:  Append field to :           VBAP,BAPE_VBAP,VBAPKOZ
                                   Append Check field to : BAPE_VBAPX,VBAPKOZX
    Here is the code : plz check and add ur comments
      DATA : l_wa_bapiparex        TYPE bapiparex,
             l_wa_ord_header        TYPE bapisdh1x,
             l_itab_bapiparex      TYPE STANDARD TABLE OF bapiparex INITIAL SIZE 0,
             l_itab_return         TYPE STANDARD TABLE OF bapiret2   INITIAL SIZE 0,
             l_wa_item              TYPE bapisditm,
             l_itab_item           TYPE STANDARD TABLE OF bapisditm  INITIAL SIZE 0,
             l_wa_itemx             TYPE bapisditmx,
             l_itab_itemx          TYPE STANDARD TABLE OF bapisditmx INITIAL SIZE 0,
             ORDER_HEADER_IN       LIKE BAPISDH1.
      l_wa_ord_header-updateflag = 'U'.
      ORDER_HEADER_IN-REF_DOC = '0000000244'.
    *Populate Item detail
      l_wa_item-itm_number = '000010'.
      l_wa_item-NET_WEIGHT = '5000'.
      APPEND l_wa_item TO l_itab_item.
    *Populate Item detail checkbox
      l_wa_itemx-itm_number = '000010'.
      l_wa_itemX-NET_WEIGHT = 'X'.
      l_wa_itemx-updateflag = 'U'.
      APPEND l_wa_itemx TO l_itab_itemx.
      l_wa_bapiparex-structure = 'BAPE_VBAP'.
      l_wa_bapiparex-valuepart1+0(10) = '0000000244'.
      l_wa_bapiparex-valuepart1+10(6) = '000010'.
      l_wa_bapiparex-valuepart1+16(15) = 'ABCDEF'.
      APPEND l_wa_bapiparex TO l_itab_bapiparex.
      CLEAR l_wa_bapiparex.
      l_wa_bapiparex-structure = 'BAPE_VBAPX'.
      l_wa_bapiparex-valuepart1+0(10) = '0000000244'.
      l_wa_bapiparex-valuepart1+10(6) = '000010'.
      l_wa_bapiparex-valuepart1+17(1) = 'X'.
      APPEND l_wa_bapiparex TO l_itab_bapiparex.
      clear l_wa_bapiparex.
      CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
        EXPORTING
          salesdocument    = '0000000244'
          order_header_in  = ORDER_HEADER_IN
          order_header_inx = l_wa_ord_header
        TABLES
          return           = return
          order_item_in    = l_itab_item
          order_item_inx   = l_itab_itemx
         schedule_lines   = l_itab_schedule
         schedule_linesx  = l_itab_schedulex
          extensionin      = l_itab_bapiparex.
    IF SY-SUBRC = 0.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          = 'X'
    IMPORTING
      RETURN        =
    ELSE.
       RAISE ERROR.
    ENDIF.
    I HAVE GONE THROUGH DEBUGGING AND FOUND ALL ARE GOING FINE...ITS UPDATING VBKOM AND VBKOMX STRUCTURE BUT AT LAST ITS NOT UPDATING THE CUSTOM FIELDS
    Thanks,
    Baidya

    Sorry guys........this code is correct one.......there is a problem in IDES....i tried in client server its working fine
    If anyone is having this type of requirement then copy this program.
    thanks,
    Baidya

  • Exit for PR fields updation from sc for Account assignment

    Hi All,
    I have a requirement where I need to update fields from Shopping Cart account assignment to Purchase requisiton customer data tab. could any one  let me know how to make data flow from SC and make the data appear in PR.
    Thanks

    Hi,
    Please check the BADI BBP_CREATE_BE_RQ_NEW.
    Regards,
    Masa

Maybe you are looking for

  • Excise tab is not appearing in Import of STO material-MIGO display

    Hi Guru's, Excise tab is not appearing in Import of STO material-MIGO display. Find the Process steps below. 1)Stock transfer order using NB document type-(Company codes are different) 2)VL10B 3)VL02N-PGI 4)Customs Invoice in Indian rupees. 5)Capture

  • I have received an email for an iPhone repair I haven't had done, what should I do?

    I received an email to my iCloud account this morning saying that my iphone had been repaired in a shop in anchorage, I live in England. There is obviously something wrong but I cannot find anywhere on the apple website where I can forward this to sa

  • Ouput file problems

    Hi, The attached code is supposed to read in a file and only print out to a file those lines that have CA and ARG. However, it is also printing out other rubbish: Please help, thanks import java.io.*; public class ForCampBell { /** Creates a new inst

  • Where to put ringtones?

    ok I found where the "stock" ringtones reside on the N9 /usr/share/sounds/ring-tones/ to paste stuff in here though you need authorization.

  • I want to know how many minutes were used last billing cycle for calling

    my daughter has been calling out of state a lot recently.  i want to know previous statement minutes and it also mentioned that out of area calls may not show up on bill right away. so how many minutes has she actually used this billing cycle?