BAPI to check BP fields

Hi all,
I need to check some business partner fields in transaction bp (telephone number or identification number, for example).
Does anybody know if there is a BADI or a FM to do these validations?
Thanks in advance

Hi !
BAPI_BUPA_ADDRESSES_GET isn´t the way to check fields in BP transaction. With this BAPI you send me, you can get partner´s address details.
What I need is a BADI to check fiels of a BP when executing BP transactions. I found BADI_FURTHER_CHECKS and BADI_CENTR_CI_CHECK, but I don´t know how they work.
Could anyone tell me what is the properly usage of these BADIS?
Thanks in advance.

Similar Messages

  • How to use BAPI extension for updating field which is not in BAPI stracture

    I am doing a conversion for control cycle create. The data is maintained in DB Table "PKHD". i have to update 12 fields threre through BAPI "BAPI_KANBANCC_CREATE". there are 11 fields in BAPI structure. but 1 field called"BERKZ" is not there . How can i update it through EXTENSION.

    Hi ,
    in the bapi extension check one structure with name BAPIPAREX will available..
    you need to pass custom structure in that..
    ands conactenate 12 field of your structure and pass in to value1 in bapirex structure and append.
    go to se11 and enter >bapiparex> check where it is used -->see the zprogram and check how it is used the add your code according to that..
    Regards,
    Prabhudas

  • BAPI 'BAPI_SALESORDER_CHANGE' - Change a field

    Hi all!
    I am doing an exercise which it's necessary to change just one field (PO number) in a sales order using the BAPI from the subject. After the execution of the BAPI, "return" table shows the following message:
    E   |V2                  |051   |Terms of delivery FH are not defined.    <
    E   |V4                  |219   |Sales document 0000001666 was not changed<
    Here follows the code:
    DATA: " for BAPI use
        v_vbeln LIKE vbak-vbeln, " order that i would like to change
        v_order_header_in LIKE bapisdh1,
        v_order_header_inx LIKE bapisdh1x,
        v_purch_no_c LIKE bapisdh1-purch_no_c, "
        v_return LIKE TABLE OF bapiret2.
    INITIALIZATION.
      p_vbeln = 1666.
      v_order_header_inx-updateflag = 'U'.
      v_order_header_inx-purch_no_c = 'X'.
      CONCATENATE 'test_' v_purch_no_c INTO v_purch_no_c.
      v_order_header_in-purch_no_c = v_purch_no_c.
      v_order_header_inx-purch_no_c = 'X'.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
        EXPORTING
          salesdocument               = v_vbeln
          order_header_in             = v_order_header_in
          order_header_inx            = v_order_header_inx
        TABLES
          return                      = v_return.
    If sy-subrc = 0.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    What does the error "Terms of delivery FH are not defined" mean? Did i forget to import an obligatory entry?
    Thanks a lot!

    Hi guys!
    after a lot of tries i found what this error means. Let me explain what was the problem:
    I was trying to update a single field at the sales order (po number), but l didn't see that this order had another field with a value ("FH") which was deleted and was get from another table.
    So as you just specify in BAPI which fields you would like to change when in an update, problably the BAPI try to keep the rest of the fields without doing any kind of check. And this resulted in my problem with that error message.
    Can i go ahead at this and ask if there is a way to make BAPI check the fields not specified at the import of the function?
    Thanks a lot for everybody who tried to help me.

  • Extending sales order change BAPI and updating custom fields

    Hi
    i added 3 new fields into VA01/02/03 screen.i added at the header level in the additional data tab B area and appended them in VBAK table.
    i want to change these values using sales order change BAPI.i added the fields in the structure VBAKKOZ,VBAKKOZX,BAPE_VBAK,BAPE_VBAKX.
    may i know what else i need to do?should i move them anywhere with in the code or does the bapi take those values automatically using EXTENSIONIN structure?
    also can some one send me code to actually check if bapi is changing my values?
    if poss tell me how should i populate values into BAPI.

    After adding field in structures VBAKKOZ,VBAKKOZX,BAPE_VBAK,BAPE_VBAKX, create pair of name-value pair extensiot structure and value.
    Fill values as follows :
    Data :   ls_parex  TYPE  bapiparex,
                lt_parex  TYPE STANDARD TABLE OF  bapiparex.
    ls_parex-structure = 'BAPE_VBAK'.
    ls_parex-valuepart1+0(10) = Sales order no
    ls_parex-valuepart1+10(XX) = somevalue.  <---- Value for custom field no 1
    ls_parex-valuepart1+XX(XX) = somevalue.  <---- Value for custom field no 2
    APPEND ls_parex TO lt_parex  .
    clear ls_parex.
    ls_parex-structure = 'BAPE_VBAKX'.
    ls_parex-valuepart1+0(10) = Sales order no
    ls_parex-valuepart1+10(1) = 'X'. <--- checkbox mark for custom field no 1
    ls_parex-valuepart1+11(1) = 'X'. <--- checkbox mark for custom field no 2
    APPEND ls_parex TO lt_parex.
    Same pair for VBAKKOZ & VBAKKOZX
    Updating custom fields
      CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
        EXPORTING
          salesdocument    = Sales order number
          order_header_inx = 'U'   <--- U for update
        TABLES
          extensionin      = lt_parex[].
    Edited by: nkarwa on Oct 25, 2010 12:39 PM

  • How to insert check box fields in a htmlb: tableview

    Hi,
    Can anybody tell me how to insert check box fields in a htmlb: tableview in a sequence of rows in a table view. How to generate the sequence no for the checkbox inorder to know the row that is checked.
    Thanks in advance,
    Aruna.

    Here is the code which has the custom "Checkbox" in the tableview & Triggers the event. <b>You can identify the checkbox based on cell ID (p_cell_id)</b> in the method "IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START" & Based on the event name + Cell ID. Look at the code & let me know if you any issue.
    <b>Layout:</b>
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content id               = "content"
                   design           = "design2002+design2003"
                   controlRendering = "SAP"
                   rtlAutoSwitch    = "true"
                   forceEncode      = "ENABLED" >
      <htmlb:page title="Test " >
        <htmlb:form>
          <%
      data TV_ITERATOR Type Ref To zcl_itr.
      data iterator type ref to IF_HTMLB_TABLEVIEW_ITERATOR.
      create object tv_iterator exporting appl_cons = application.
      iterator = tv_iterator.
          %>
          <htmlb:tableView id              = "fligts"
                           headerText      = "Flight"
                           width           = "100"
                           headerVisible   = "true"
                           design          = "alternating"
                           visibleRowCount = "10"
                           fillUpEmptyRows = "true"
                           showNoMatchText = "true"
                           filter          = "server"
                           sort            = "server"
                           onHeaderClick   = "MyEventHeaderClick"
                           table           = "<%= APPLICATION->itab %>"
                           iterator        = "<%= ITERATOR %>" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    <b>Event Handling:</b>
    DATA: EVENT_ID1 TYPE REF TO IF_HTMLB_DATA.
    EVENT_ID1 = CL_HTMLB_MANAGER=>GET_EVENT_EX( REQUEST ).
    CASE EVENT_ID1->EVENT_SERVER_NAME.
    IF NOT event_id1 IS INITIAL.
       if event_id1->server_event+0(9) = 'chkevent'.
      SPLIT event_id1->server_event AT '-' INTO v_event v_dummy v_row v_col.
      endif.
    endif.
    method IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS.
         CLEAR p_column_definitions.
        CLEAR p_overwrites.
        DATA: tv_column  TYPE TABLEVIEWCONTROL.
        tv_column-COLUMNNAME  = 'FLDATE'.
        tv_column-edit        = 'X'.
        tv_column-sort        = 'X'.
        tv_column-TITLE               = 'Flight Date'.
        tv_column-WIDTH  = '100'.
        APPEND tv_column TO p_column_definitions.
        CLEAR tv_column.
        tv_column-edit        = 'X'.
        tv_column-COLUMNNAME          = 'CONNID'.
        tv_column-TITLE               = 'Conn.ID'.
        tv_column-WIDTH  = '70'.
        tv_column-HORIZONTALALIGNMENT = 'center'.
        APPEND tv_column TO p_column_definitions.
        CLEAR tv_column.
        tv_column-edit        = 'X'.
        tv_column-COLUMNNAME          = 'CHECKBOX1'.
        tv_column-TITLE               = 'Check Box'.
        tv_column-WIDTH  = '30'.
        tv_column-HORIZONTALALIGNMENT = 'center'.
        APPEND tv_column TO p_column_definitions.
    endmethod.
    METHOD IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START.
           DATA: L_EVENT TYPE STRING.
      CASE P_TABLEVIEW_ID.
        WHEN 'fligts'.
          CASE P_COLUMN_KEY.
            WHEN 'CHECKBOX1'.
    *          CONCATENATE 'chk_event' '123' '2323' INTO L_EVENT SEPARATED BY '-' .
    CONCATENATE 'chkevent' p_cell_id INTO l_event SEPARATED BY '-'.
              P_REPLACEMENT_BEE = CL_HTMLB_CHECKBOX=>FACTORY( ID = P_CELL_ID
            ONCLICK = L_EVENT CHECKED = 'false' ).
          ENDCASE.
      ENDCASE.
    ENDMETHOD.
    Hope this will solve your problem.
    <b><i>* Reward each helpful answer.</i></b>
    Raja T
    Message was edited by:
            Raja T

  • Validation to check a field in Purchase Order.

    Dear friends ,
    Could we create an Validation to check a field in tcode ME21N, and this validation must check if field (header) is empty if yes when SAVE send error message"You could not create PO without release strategy , please contact IT area! "
    Rule to check it.
    Tcode ME21N
    if field EKKO-FRGSX or EKKO-FRGKE without value when Saving document so send an error message as discribed above not allowing user to save and create PO.
    Best regards
    Ale

    hi Amams
    check this link
    Adding Fields to Sales order
    i think it may give u some idea
    Regards,
    Naveen

  • How do you spell check a field?

    How are people spell checking their fields?
    In searching around, I have only found (a) suggestions to yank the text into MS Word, do a spell check, then yank the resulting text into the field; (b) software from DC AL CODA that we aren't clear how they actually work (http://www.dcalcoda.com).
    Specifically, my manager wants a tool that'll interface with Oracle like this: give a table name and a field name and be asked about each spelling error, much like an email spell check. The tool would change things as you ask, directly in the database. You wouldn't have to cut and paste into it and back to the db fields.
    We aren't using forms. We use SQL*Plus, Quest Software's TOAD, and our own Java servlets (using JDBC to enter SQL statements).
    I would love to hear how people do their spell checking.
    Hopefully this is an appropriate forum for this question. There doesn't seem to be a general or SQL forum. Our database tables include a fair amount of text that shows up on Web pages. These are the fields we want to spell check.

    I thought I'd reply to my own question since I found a workable solution, at least for our office which has MS Windows.
    MS Access can connect directly to an Oracle data source. Access has a spell checking feature where you can select a field and spell check it. Below are tips and instructions for doing this.
    TIPS:
    It's surely a good idea to back up tables and be the only person or process changing those tables during the spell check.
    One thing to watch for is whether the entire table comes in. At the bottom of the screen is a >* button which seems to get all fields. For large tables, you have to hit this button before you get the entire table.
    Another glitch is that all of the given database user's tables show up in one list box -- makes for some painful scrolling, but all of the tables are listed.
    A much smaller glitch is that if you widened any of the fields in the view of the table, when you close the window, it asks if you want to save the formatting. It has nothing to do with saving the data (that is automatic). It's safe to say no.
    The spell check doesn't recognize HTML tags (asks about "br"s from <br> tags) but seems to know to ignore things like &quot;
    How to set up an ODBC Data Source in Windows:
    1. MS Start -> Settings -> Control Panel -> ODBC Data Sources (32 bit)
    2. Drivers tab, scroll down and select Oracle ODBC Driver
    3. OK
    4. User DSN tab, Add...
    5. Select Oracle ODBC Driver and Finish
    6. Make up a data source name (example: src)
    7. Enter a description for it
    8. For Service name, put what your service name is (for an SQL*Plus connection, 'usr/passwd@svc', this is 'svc')
    9. For UserID, put your user id (for an SQL*Plus connection, 'usr/passwd@svc', this is 'usr')
    10. Ignore the rest of the fields, click OK
    11. Another OK.
    How to use Access to Spell Check an ODBC Data Source Field:
    0. Install Access from (MS Office 2000).
    1. Start Access (by the way, you might find it way down the list in Start -> Programs).
    2. Open file, in the file type box, scroll to the end: ODBC Databases. You'll get a dialog.
    3. Machine Data Source tab, select the name you gave it (src in step 6 above)
    4. You'll be prompted for the password (for an SQL*Plus connection, 'usr/passwd@svc', this is 'passwd')
    5. Select from the huge list of every table the table you want. Ok.
    5.a. If the table has no key, you'll be prompted for the unique key from a list of all fields.
    6. Double click the item that has just been added to the dialog that remains on the screen. It'll have a globe next to text like USR_TABLENAME. This brings up a randomly sized first chunk of the table.
    7. To make sure you get the entire table, on the paging buttons on the bottom (|< < > >| >*), click >*. It may take a few moments to get a huge table.
    8. Click the heading of the field (column) you want to spell check). This selects the entire column.
    9. Hit spell check (ABC checkmark tool or Tools -> Spelling)
    10. Check away. The changes are made immediately to the database.
    11. Close the table display window.
    null

  • How to check which fields of a table are changed

    Hi
    I have a FM in which i pass VBAK and VBAP. I store records of table in internal tables and update the values during execution and at the end of this i have to cpmare VBAK and VBAP with internal tables to chcek which field value is changed in both VBAK and VBAP. Its not possible to check all fields bcause there are so many fields in VBAK and VBAP. Can any body help me.
    Thanks and Regards
    Aditya

    Hi,
    Try using where used list.
    click on the field. pree F1. select Technical Info from the pop-up. then from the field data, double click one the field name. it will navigate to the table/structure where the field is used. double click on the field there or
    press CntrlShiftF3.
    It will give you the where used list.
    Pls reward poins if useful.
    Regards,
    Chandru

  • How to do to add a specific BAPI WBS Check betteen 2 systems  via ALE

    I am on the module TRAVEL MANAGEMENT (FI-TV) into the sap system DTM version ECC5 (for expenses). I wish communicate with the SAP system R/3 DGI version 4.6C via ALE and BAPI.
    When I create the expense in DTM, I put a WBS and I want to do severals checks via ALE into the system DGI.
    I have implemented the note 516109 into DGI to instal the bapi "BAPI_PROJECT_EXISTENCECHECK".But the link doesn't work from DTM to DGI.
    Please could you help me ?
    Other point : How to do to add a specific Bapi to check
    WBS? I didn't found USER EXIT.
    Thank in advance.
    Odile Dougnac

    Did you set your distribution model correctly ?
    You need to add this BAPI in ALE distribution model between your two systems.
    You need also to create one defaut destination for the remote logical system (this is done in SALE) because the BAPI uses RFC destination, not IDOCs

  • Incoming Payment Check No. field not editable directly

    SBO 2007A, PL 42
    Banking >> Incoming Payments >> Payment Means
    When I am entering an incoming check from a customer, on the Payment Means window, I can't click in the Check No. field and enter data, but if I tab over it to it from the amount field, I can.
    Is this by design or a bug? What's the point of it?

    Hi Cindy
    It works fine on mine .Is that you are having problem when you enter incoming payment at first time or when you are trying to edit .
    It is working fine on mine .I can put check number .
    What patch level you are in ? which SBO version
    Thank you
    Bishal

  • Bapi Names For Following Fields?

    Hi All,
    I Want BAPI names For Following Fields.
    1.Personnel Area.
    2.Personnel SubArea.
    3.PERNER
    4.OBJID.
    5.LAND1
    6.REGIO
    Thanks
    SubbaRao Chinta

    Hi Subbu,
    its very difficult to find out the BAPI useing the fileds .
    At least you should know the Technical name of your BAPI when you are developing the application.
    If you dont know the BAPI name then how can you map it to ur VC user and get the Data.
    I think u got my point
    Regards,
    Govindu

  • Check number field coming in blank

    I am new to this forum, and I am searching but canu2019t find a solution.
    I have a database, which contains a field called u201CCheck Nou201D, which contains the check numbers as well as type of payment received from a contributor.
    So, if the contributor paid which a check, then the check number is there, but if they paid by money order, pay pal or cash, then those terms are there.
    The problems is when I bring the data into CR, it is only bringing over the check numbers, as number.
    Now, I wrote a formula to convert the numbers to text, but it still is not reading the literal data, u201Cmoney order, pay pal or cashu201D.
    The formula that I wrote is:
    If {2009.CHECK_NO} = 0.00 Then
    "*CASH*"
    Else
    ToText ({2009.CHECK_NO},0,"")
    and believe, it or it works, u2018cause the check numbers come in great.
    I called tech support up and they told me something about marking the field as u201Calphanumericu201D, and to look to the forum for a solution, or else pay $195 per incident for tech support.
    I figure this must be a common occurrence, u2018cause all organizations maintain some type of check register, and there are times, now a days when pays with something other than a check, e.g. wire transfer, debit card, etc.., and if that literal text is in the check number field, Iu2019d like to bring it over as such.
    Thx in advance for answering my question.

    Here is the formula I have in my CR report:
    ToText ({Sheet1_.F3},0,"")
    and here is the result I get:
    Check No     
    4204     
    6008     
    448     
    2079     
    13495     
    1216     
    369     
    320     
    2227     
    231     
    139     
    351     
    524     
    1562     
    402     
    5098     
    1109     
    2240     
    922     
    Where the blank lines are records containing text entries in that field, such as "cash, credit card, paypal".
    My problem is that no matter what I'm trying, the numbers come across fine, but now the literal text isn't.
    I've tried some variation of the formula as follows:
    If IsNull({Sheet1_.F3}) then "" ELSE
    if not(Isnumeric({Sheet1_.F3}))  then ({Sheet1_.F3}) else 1
    As a suggestion from the board, but when I check for errors, I get various errors such as  "string needed" or something else.
    I'm getting lost on this.
    And, I'm sure it is something simple, but I just can't grasp it from the manual or help screen.
    Please help!!

  • Check list field values using LINQ

    I have to check if the CURRENT USER is already in the list USERS by comparing his AccountName to the list field ACCOUNTNAME.
    If the USER is on the list I have to check if the field IsFollower is YES or NO and change it according to some conditions.
    I think LINQ would be the correct way of doing this but I have no clue how to do that.
    Any ideas pls, thanks

    Hi,
    Yes, you can query the list using LINQ.
    You need to get the SPList Object firstly, and then you can query list item value using LINQ.
    More information about how to check list field value using LINQ:
    http://msdn.microsoft.com/en-us/library/office/ee538250(v=office.14).aspx
    http://www.wolfsys.net/query-sharepoint-lists-with-linq/
    http://geekswithblogs.net/TanviBlog/archive/2013/06/06/linq-in-sharepoint-and-querying-list-items.aspx
    More information about how to use Server Object Model in SharePoint lists:
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splist.aspx
    http://msdn.microsoft.com/en-us/library/office/ms456030(v=office.14).aspx
    Best regards

  • Checking a field in VA01 at the time of saving

    Hi,
    I want to check a field at item level in VA01 at the time of saving the document. Can anyone tell me about the user exit I should look for.
    Thanks,
    Salman Zahir

    Thanks Suresh,
    I have put a break point is the include RV60AFZC, but it is not stopping while saving the document, it stops  when I do other activities.  Actually in the Item Detail I want to check that account assignment group is not blank. If it is I want to show a error message.
    Thanks ,
    Salman

  • Co11n check on field

    hi experts,
        I am using WORKORDER_GOODSMVT BADI  to put check on quantity field of CO11n tcode. I found the method GOODS_RECEIPT having the changing parameter CT_GOODS_RECEIPT which is containing the field ERFMG (quantity).
    I created an implementation  ZBADI_co11n for the BADI.
    I am trying to write code like this :
    IF ct_goods_receipt-erfmg = 0.
        MESSAGE e001(0) WITH  ' Please Enter Exact Quantity ' .
      ENDIF.
    it is throwing error CT_GOODS_RECEIPT is a table without header line therefore has no component called ERFMG.
    can anyone tell what to write in the mehtod GOODS_RECEIPT  for my check on field.
    help pls

    hi ira,
       thanks for your reply. I am able to code it without error.
    but my requirement is this BADI  is triggered after I press goods movement & the message
    is displayed on the confirmation screen itself, i want it to display it in goods movement screen.
    how?

Maybe you are looking for

  • How to change message V1801 to error message?

    Dear expert            In sales order creation, Message no. V1801 u201CPricing error: Mandatory condition is missingu201D will display if material condition does not exist. But the incomplete sales order still can be saved, how can we set V1801 to er

  • HT201302 i can not delete photos from photo library from my iPhone 4

    i can not delete photos from photo library and onother folder contain same photo in the photo library from my iPhone 4 thnx

  • HttpURLConnection and the killer Pound (#)

    I'm trying to create a part of my application that posts data to an ASP page (on an affiliate's web site). Originally, I was using the following code to post the data: URL url = new URL(sPostURL);                     HttpURLConnection conn = (HttpURL

  • SORT_AREA_SIZE+Oracle dedicated servers

    Hi Friends, I am using Oracle 10g server release 2,Today i have gone through the Orcale docs,its written there that "Oracle does not recommend using the SORT_AREA_SIZE parameter unless the instance is configured with the shared server option. Oracle

  • EJB - This Application hasn't J2EE modules.....

    I am trying to run a Web Dynpro Application (using an EJB as a model) but for some reason I have to redeploy the EJB every time I reboot the J2EE server or stop/start the EJB. I noticed when I hit the DEPLOY button in Visual Administrator, I see a wa