BAPI Not checking Vendor existance (BAPI_VENDOR_EXISTENCECHECK)

Hi all.
My BDC will created and update the vendor. code is
Check the vendor existance using BAPI_VENDOR_EXISTENCECHECK.
IF VENDOR exist.
Update the VENDOR.
ELSE.
Create VENDOR.
ENDIF.
But the problem is, in case of update record come very next one of the creation of same record.
For the first record BAPI giving vendor doesn't exist and creating, it is fine but
For second one BAPI is giving vendor doesn't exist but the same is exist.
data
(1000091098 ''''''''' 1st record'
1000091098 ''''''''''') 2nd record
I can't use the select statement instead of BAPI.
Why the BAPI is getting fails to do. i am using commit work after BDC also.
Regards,
Sri

I know it's solved (thank you for the feedback), but...
> The BAPI is getting from the data and keeping in buffer.so at next time it is checking against buffer values.
> I copied BAPI into ZBAPI and passing buffer as X.
As you are talking about a buffer, I thought you might be interested by this [wiki which explains why you MUST use BAPI_TRANSACTION_COMMIT instead of COMMIT WORK|http://wiki.sdn.sap.com/wiki/display/ABAP/BAPI_TRANSACTION_COMMITversusCOMMIT+WORK] when you use BAPIs, and what is this buffer about.
> i am using commit work after BDC also
Executing COMMIT WORK after a CALL TRANSACTION will have no effect on what is done inside the CALL TRANSACTION because it's done in a different LUW (see [sap library|http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbae4135c111d1829f0000e829fbfe/frameset.htm]).

Similar Messages

  • This script is not checking the existing of the new created item

    Dear Friends
    I have This script is not checking the existing of the new created item I am using this script in side WHEN-BUTTON-PRESSED trigger
    I am using oracle Forms [32 Bit] Version 6.0.8.11.3 (Production)
    My script as the following :
    BEGIN
    BEGIN
    SELECT ITEM_CODE INTO :GLOBAL.DUMMY
    FROM IM_INVENTORY
    WHERE ITEM_CLASS = TO_NUMBER(RTRIM(LTRIM(:IM_NEW_ITEMS.ITEM_CLASS)))
    AND ITEM_TYPE = TO_NUMBER(RTRIM(LTRIM(:IM_NEW_ITEMS.ITEM_TYPE)))
    AND ITEM_LENGTH = :IM_NEW_ITEMS.ITEM_LENGTH
    AND ITEM_WIDTH = :IM_NEW_ITEMS.ITEM_WIDTH
    AND ITEM_HIGHT1 = :IM_NEW_ITEMS.ITEM_HIGHT1
    AND ITEM_HIGHT2 = :IM_NEW_ITEMS.ITEM_HIGHT2
    AND COLOR_CODE = TO_NUMBER(RTRIM(LTRIM(:IM_NEW_ITEMS.COLOR_CODE)))
    AND SHAPE_CODE = TO_NUMBER(RTRIM(LTRIM(:IM_NEW_ITEMS.SHAPE_CODE)));
    -- get_err_message(87);
    SHOW_MESSAGE('This Item Already Exist !!!');
    RAISE FORM_TRIGGER_FAILURE;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    show_message('here');
    INSERT INTO IM_INVENTORY
    (ITEM_CODE,ITEM_NAME_A,ITEM_NAME_E,STOCK_ITEM,ITEM_CLASS,ITEM_TYPE,SUPP_CODE,ITEM_LENGTH,ITEM_WIDTH,
    ITEM_HIGHT1,ITEM_HIGHT2,COLOR_CODE,SHAPE_CODE,ITEM_SIZE_TYPE,VOLUME,CON_FACTOR,ITEM_PRICE1,
    ITEM_DISCOUNT,MIN_QTY,MAX_QTY,COSTING_METHOD,ITEM_COST,STANDARD_COST,WEIGHT,ITEM_PRICE2,ITEM_PRICE3,
    OPENING_COST,LAST_PUR_COST,QTY_FOR_PRICE2,QTY_FOR_PRICE3,ITEM_PRICE_METHOD,USER_ID,USER_DATE)
    VALUES(:IM_NEW_ITEMS.ITEM_CODE,:GLOBAL.LOC_VAR_A,:GLOBAL.LOC_VAR_E,'1',:IM_NEW_ITEMS.ITEM_CLASS,:IM_NEW_ITEMS.ITEM_TYPE,'0',
    :IM_NEW_ITEMS.ITEM_LENGTH,:IM_NEW_ITEMS.ITEM_WIDTH,:IM_NEW_ITEMS.ITEM_HIGHT1,:IM_NEW_ITEMS.ITEM_HIGHT2,
    NVL(:IM_NEW_ITEMS.COLOR_CODE,0),NVL(:IM_NEW_ITEMS.SHAPE_CODE,0),1,NVL(:IM_NEW_ITEMS.VOLUME,0),1,:GLOBAL.ITEM_PRICE1,0.00,0.00,0.00,'1',0.00,0.00,
    0.00,:GLOBAL.ITEM_PRICE1,:GLOBAL.ITEM_PRICE1,0.000,0.000,0.000,0.000,1,:IM_NEW_ITEMS.USER_ID,:IM_NEW_ITEMS.USER_DATE);
    standard.commit; -- NEW COMMITED
    clear_message; -- NEW COMMITED
         WHEN FORM_TRIGGER_FAILURE THEN
         SHOW_MESSAGE('Error : '||SQLERRM);
    RAISE FORM_TRIGGER_FAILURE ;
    WHEN OTHERS THEN
    SHOW_MESSAGE('Error : '||SQLERRM);
    RAISE FORM_TRIGGER_FAILURE ;
    END;
    END;
    Waiting for your valuable answer .
    Best regards
    Jamil Alshaibani

    Hi,
    I have written the script also with constants values but still it is not going to
    SHOW_MESSAGE('This Item Already Exist !!!');
    and the script is written as the following :
    BEGIN
    SELECT 1 INTO :GLOBAL.DUMMY
    FROM IM_INVENTORY
    WHERE ITEM_CLASS ='110'
    AND ITEM_TYPE ='110105'
    AND ITEM_LENGTH = 1
    AND ITEM_WIDTH = 1
    AND ITEM_HIGHT1 = 1
    AND ITEM_HIGHT2 = 0
    AND COLOR_CODE = '3001'
    AND SHAPE_CODE = '201' ;
    SHOW_MESSAGE('1- This Item Already Exist !!!');
    RAISE FORM_TRIGGER_FAILURE;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    show_message('here');
    INSERT INTO IM_INVENTORY
    (ITEM_CODE,ITEM_NAME_A,ITEM_NAME_E,STOCK_ITEM,ITEM_CLASS,ITEM_TYPE,SUPP_CODE,ITEM_LENGTH,ITEM_WIDTH,
    ITEM_HIGHT1,ITEM_HIGHT2,COLOR_CODE,SHAPE_CODE,ITEM_SIZE_TYPE,VOLUME,CON_FACTOR,ITEM_PRICE1,
    ITEM_DISCOUNT,MIN_QTY,MAX_QTY,COSTING_METHOD,ITEM_COST,STANDARD_COST,WEIGHT,ITEM_PRICE2,ITEM_PRICE3,
    OPENING_COST,LAST_PUR_COST,QTY_FOR_PRICE2,QTY_FOR_PRICE3,ITEM_PRICE_METHOD,USER_ID,USER_DATE)
    VALUES(:IM_NEW_ITEMS.ITEM_CODE,:GLOBAL.LOC_VAR_A,:GLOBAL.LOC_VAR_E,'1',:IM_NEW_ITEMS.ITEM_CLASS,:IM_NEW_ITEMS.ITEM_TYPE,'0',
    :IM_NEW_ITEMS.ITEM_LENGTH,:IM_NEW_ITEMS.ITEM_WIDTH,:IM_NEW_ITEMS.ITEM_HIGHT1,:IM_NEW_ITEMS.ITEM_HIGHT2,
    NVL(:IM_NEW_ITEMS.COLOR_CODE,0),NVL(:IM_NEW_ITEMS.SHAPE_CODE,0),1,NVL(:IM_NEW_ITEMS.VOLUME,0),1,:GLOBAL.ITEM_PRICE1,0.00,0.00,0.00,'1',0.00,0.00,
    0.00,:GLOBAL.ITEM_PRICE1,:GLOBAL.ITEM_PRICE1,0.000,0.000,0.000,0.000,1,:IM_NEW_ITEMS.USER_ID,:IM_NEW_ITEMS.USER_DATE);
    standard.commit; -- NEW COMMITED
    clear_message; -- NEW COMMITED
         WHEN FORM_TRIGGER_FAILURE THEN
         SHOW_MESSAGE('Error : '||SQLERRM);
    RAISE FORM_TRIGGER_FAILURE ;
    WHEN OTHERS THEN
    SHOW_MESSAGE('Error : '||SQLERRM);
    RAISE FORM_TRIGGER_FAILURE ;
    END;
    Best regards
    Jamil

  • Is there any std. BAPI to check both user name and password exist or not

    Hi frnds,
    I am looking for a std. bapi to check both username and password exist or not..
    i found one bapi bapi_user_existence_check. but it checks only username...

    I don't think that you will have access to the passwords that are stored in the system.
    If so, you could read every user's password and logon to the system.
    I guess that they're encrypted and stored on the database.
    Why do you need to check for the password. Isn't the username sufficient?

  • Cenvat determination and vendor excise details are not checked in MIGO

    Hi experts,
    I have created one PO with Zero excise duty amounts (No excise duty) and following problem observed at the time of MIGO -
    System doesnt check any vendor excise details (excise indicator marked as ZERO in j1ID) even without entering excise invoice No and date in MIGO system accepts the entry with ZERO excise duty amounts.
    hence a fictitious part 1 No is generate by system for which no point taking part II.
    Kindly suggest
    Regards,
    Pawan

    Check  SAP  Note No 1282447-  check vendor excise details in MIGO .
    While capturing excise invoice along with the goods receipt process through
    the transaction MIGO, the system does not validate the existence of the
    excise details of the vendor master.
    This note introduces the error 8I 565, 'Excise Details are not maintanied
    for Vendor MIGO', when the vendor excise details are not maintained in
    J1ID.
    Raviraj.

  • Popup to download firefox 4 timed out after install ran about a minute and now will not load or let me download FF 4 or remove FF3.6 (Message: checking for existing installation)

    I got a popup balloon to update to Firefox 4. I clicked it and after running the install for about a minute, it quit and I got a message saying it had timed out. It gave me the website to go to to manually install it. I downloaded the manual install for FF 4, but when I tried to run it, the Firefox Setup Wizard said it was "checking existing installation" and then brought up a window saying Firefox must be closed to run the install. Firefox was not open. I tried to open it and it won't open. I then tried to delete it in my "Add/Remove Programs" (Windows XP Home Edition). I got the same messages: that it was checking the existing installation and that I had to close all firefox programs before I could delete it. I'm out of ideas.

    I got a popup balloon to update to Firefox 4. I clicked it and after running the install for about a minute, it quit and I got a message saying it had timed out. It gave me the website to go to to manually install it. I downloaded the manual install for FF 4, but when I tried to run it, the Firefox Setup Wizard said it was "checking existing installation" and then brought up a window saying Firefox must be closed to run the install. Firefox was not open. I tried to open it and it won't open. I then tried to delete it in my "Add/Remove Programs" (Windows XP Home Edition). I got the same messages: that it was checking the existing installation and that I had to close all firefox programs before I could delete it. I'm out of ideas.

  • Check Vendor no. in CRMD_ORDER on order_save

    Hello,
    I have requirement in which i have to check if in the CRMD_ORDER a vendor exist for a sales org extended to a BP...
    If the Vendor does not exist i have to put a hard break on save(order_save).
    Can anyone please suggest how do i check if the vendor no exist in the CRMD_ORDER on creation before save..
    I tried a few internal tables from CRMD_ORDER_READ but none so helpful.
    Please advice!
    Thanks in anticipation!!
    Alok.

    Hi Alok,
    Since a Vendor is a business partner it will be present in ET_PARTNER internal table of the CRM_ORDER_READ Function Module. So, you can scan the internal table to get whether a BP with the Role VENDOR is present in the One Order Transaction.
    Have a look at the existing code and you can also use the Report Program CRM_ORDER_READ to have a look at all the data that will come in the various internal Tables.
    Hope this will help.
    Thanks,
    Samantak.

  • How to check vendor payment

    Hi gurus,
    how to check vendor payment is done are not in purchase order
    Regards
    murali

    Check through FBL1N vendor line item display, here you can check for the vendor libality generated during invoice (MIRO) posting once you get into the t-code FBL1N select the radio button open items only in line item selection give your vendor account, company code date (Key day at which the line items are open till now), and execute.
    In the report screen to help your self you can search using crtl + F and put reference as serach criteria.
    You will see the non cleared item the Status indicator tells you the line item is not yet cleared.
    BR

  • InfoPath form load rule is not checking all the rows in form library

    Hi,
    Requirement:
    We have a form library named "HR Annual Review". In the InfoPath form we have two buttons "Save" and "Submit". User is allowed to Save multiple times and only once using Submit button. The file name of form library "HR
    Annual Review" will be stored in the format “<username>+<mm>+<dd>+<yy>.xml”. Say for example, an user named Mike Walt submitted a form then the file name will be as “MikeWalt012314.xml”. If the same user (Mike Walt)
    submits the form and tries to open the form for subsequent edit, then we need to show a view which has an error info saying “The Appraisal is already submitted for the current appraisal cycle”.
    Solution we tried:
    To achieve the above requirement, we tried using InfoPath Form Load and add a rule to check whether the combination of current user name and the year already exists in the filename column of the form library. But the rule we applied is not checking all the
    rows in the form library. The rule is always checking the first row of the form library.
    What we need:
    We need the validation using InfoPath rule or some other way/solution to check whether the combination of current login username and current year file already exists in the form library.
    Thanks in advance.
    Srivignesh J

    Hi Srivignesh,
    Submit button Uses the Main Data connection to submit the data to the list. This is what you are using and naming the file in the format. You can create secondary data submit that will update the exiting item in the list. With this, you don't have to create
    any rules to check all the rows which is also not possible in OOB InfoPath.
    Once you have the two data connection, hide the toolbar from the form and display these two on the button. For The Submit button, apply the rule to hide the button if created by is not empty. For Save button, apply the rule to hide the button if Created
    By is empty. This way, when a new form is created, you will see the Submit button, and when the user have to update the form, they will see Save button. Hope it help.s
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • Duplicate Invoice Check Not Checking the Gross Invoice Amount-

    Gurus,
    When checking for duplicate invoices in MIRO/FB60, I have made all the config and setup but still the system is not checking the gross Invoice amount field. Lets say I enter
    Invoice 1 :
                     Vendor                 X
                      Reference            123
                      Date                    10/27/2010
                      Company Code : 1111
                      Currency           : USD
                      AMOUNT           :100         and post this invoice
    I try to enter the second invoice
    Invoice 2: 
                       Vendor                 X
                      Reference            123
                      Date                    10/27/2010
                      Company Code : 1111
                      Currency           : USD
                      AMOUNT           : 90    
    I get the error message even though the AMOUNT in the second invoice is 90 which is not the same as first invoice .
    I chcked the vendor master duplicate check, made the config in spro-liv for duplicate invoice for company code, reference number and invoice date.
    The help says that after 4.6 version if all of them match, then the system wiill throw error, but in my case the amount is not matching and its still giving me an error.
    Kindly help..<< Moderator message - Please do not offer points >>
    << Moderator message - Everyone's problem is important >>
    Edited by: Rob Burbank on Oct 27, 2010 4:07 PM

    Hi,
    After making the duplcate invoices chek at spro will checks the reference number of the invoice entered previouslu with that one entered later for that company code.as the first check itself failed system throws the error thinking, you are trying to enter a duplicate invoice for a  already posted invoice though how much is the amount in the second invoice .
    It will allow to enter the item details , if the dupplicate invoice check is properly configured for that company code and ref number .Did you get the error mesage after entering the details?If you get a error a message which stops furthur entry them your conf is correct, if not you may need to check back .
    Check the invoice toletrances at spro too amount.
    the below link explains you the process of dupliation in LIV.
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/ce/4f3e39ea3aee02e10000000a114084/frameset.htm
    Regards,

  • Internal note and Vendor text to R/3 PO

    HI All,
    I need your help in implementing this process.
    We are in SRM 4.0, using extended classic scneraio.
    Internal notes or Vendor text entered in the shopping cart is getting transfered to the text of EBP PO item. But is it not getting copied over to the R/3 PO.
    What should I do to copy these texts to R/3 PO?
    Thanks.

    Hi Arun,
    From SRM 5.0
                                                                                    From SRM side we can map the long text fields with BAPI                       
    structure (which is not available in lower releases), inorder to map          
    this we have to use BBP_LONGTEXT_BADI  > GET_COPY_RULES                       
    method. This will be used to map the long text fields with                    
    BAPI structure as per the copy rules defined in the method                    
    GET_COPY_RULES.                                                                               
    Now when we transfer the PO the long text fields (potextitem)                 
    would be available in R/3 system but this 'potextitem' should be              
    mapped with the bapi_potextitem in R/3 side. Inorder to map this              
    we have to use the BADI BBP_POINBOUND_BADI   > MAP_BEFORE_BAPI                
    method. In MAP_BEFORE_BAPI method (of the BADI BBP_POINBOUND_BADI) we         
    need to map the structure BAPI_POTEXTITEM with the values from the            
    structure bbp_poitemtext. There is no                                         
    need of RFC call to SRM system from R/3 system inorder to get the long        
    text vlalues.                                                                               
    Here we have to use both the BADIs (BBP_LONGTEXT_BADI in SRM side,            
    BBP_INBOUND_BADI in R/3 side) to transfer the vendor text and internal        
    notes.                                                                               
    i) BBP_LONGTEXT_BADI   > used to map the long text fields                  
          to BAPI strcture based on the copy rules (defined in the                
            method GET_COPY_RULES).                                               
       ii)BBP_INBOUND_BADI    > used to map the long text with                    
          BAPI_POTEXITEM which is available in R/3 system. RFC call               
           to SRM is not required which would lead to performance                 
          issues                                                                               
    In lower releases                                                                               
    We can't send the text values from SRM system to R/3 system.                  
    So, from R/3 we need to use the BADI bbp_poinbound_badi   >                   
    map_before_bapi method to retrive the text values (using RFC call) and        
    map it to BAPI_POTEXTITEM structure.                                                                               
    Regards
    Laszlo

  • How to check vendor schema group for info record for third party vendor

    Hi Expert,
    How to check vendor schema group that assigned in info record for third party vendor?
    Thanks

    Hi,
    Vendor schema group is not assigned in info record, It is assigned in purchasing data view of vendor master ( Check in XK03 )
    You can check in Vendor master- XK03- Purchasing data.
    hope it will help u.
    Deepak

  • Looking for a good BAPI to create vendors...

    Hello SAP SDN members-
    I've been trying to find a standard SAP delivered BAPI that can be used to create vendor master records in ECC 6.0.  Up to this point I have not been able to do so.  With SAP MDM solutions and SRM solutions it seems logical that SAP would deliver a standard BAPI that can be used to create vendor master records in the ERP/R3 environment (similar to the BAPI_MATERIAL_SAVEREPLICA for creating material master data records).
    I have been able to find BAPI_VENDOR_CREATE but this only calls the online transaction and does not offer much additional functionality beyond transaction code XK02. 
    The next best alternative appears to be IDOC_INPUT_CREDITOR but our preference would be to not use IDOCs for the project we are working on.
    Finally, I found BAPI_CREDITOR_GET_PW_REG which might work but I'm still analyzing the specs on this BAPI to see if it will work.
    In the mean time can anyone offer advice based on personal experience? 
    Thanks.
    Rich Wortmann
    <removed_by_moderator>
    Edited by: Richard Wortmann on Apr 27, 2009 3:54 PM
    Edited by: Stephen Johannes on May 14, 2009 2:28 PM

    Hello Rich,
    Further research reveals that the only BAPIs available for vendor master
    create / change are those found via trans SE37 using the following
    search terms:  BAPI_VENDOR* or BAPI_CREDITOR*.  If the BAPIs do not
    provide the required functionality, you may wish to use the batch input
    program RFBIKR00 which allows vendor master create / change.  Please
    review the documentation for program RFBIKR00 via trans SE38; click on
    Documentation -> Display. 
    Hope the above information arr helpful to you!
    Best Regards,
    Gladys xing

  • 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

  • Update Private Note in Vendor Master

    Hi All,
    We have a requirement to update Private Note in Vendor. It can be seen in Transaction XK02 on any screen on the top at the left most corner of the screen before the title in the drop down menu.
    I tried using BDC but BDC is not capturing this event and thus it is not being recorded.
    Please provide a solution to this or any other way to update the private note.
    Thanks,
    Manish

    hi,
    Use T code - XK02- change  /XK01- create  -  Vendor Master data change - --select Address check box in general data - press enter and  in communication - E-Mai --- their we need to maintain vendor Email address in vendor master data
    Thanking you
    Mahesh

  • Vl01n for so does not check batch management

    batch management on the mm was not initially checked.
    was checked after the material was put on the so.
    unrestricted batch stock does exist
    attempt to vl01n for that line creates a delivery but does not check batch management under material tab
    what needs done to get the delivery to inherit the batch management check?

    Dear Starz,
    I guess according to SAP standard -  The indicator cannot be changed if stocks exist in either the current period or in the previous period.
    However the same would be applicable as soon as you post the new stock after changing the material master record.
    Hope this helps...
    Give points if useful...
    Thanks,
    Jignesh Mehta

Maybe you are looking for

  • Mini DisplayPort to DVI and VGA - Does it work or not?

    I have just received my new aluminium MacBook Pro, and I think it is awesome. I can even get over the fact that it lacks the full-size DVI connection like the old one has just because it is so nice and shiny. I do need it to work with both DVI and VG

  • Calling all TN Wiki users! May TechNet Gurus announced!

    The results for May's TechNet Guru competition have been posted! http://blogs.technet.com/b/wikininjas/archive/2014/01/16/technet-guru-awards-december-2013.aspx Congratulations to all our new Gurus for May! We will be interviewing some of the winners

  • Internet explorer 9 flash wont work!

    hallo, seit monaten funktioniert FLASH nicht mehr unter Internet explorer 9. habe alles probiert was man unter google und adobe finden kann. mit firefox gibt es keine probleme. möchte aber internet explorer benutzen. woran kann das denn jetzt liegen?

  • Apache 2.0 and PHP 5

    Hello, I have a Customer who wants to develop an application with IAS 9.0.4. There should be an Integration of PHP 5 as Apache module mod_php (using the following PEAR packages) - DB - DB_LDAP - Auth - Config - File - Log - XML_Serializer and additio

  • Using SJS MQ 4.0 as JMS provider with JBoss or Apache Geronimo

    Is it possible to integrate SMS MQ 4.0 as the JMS provider for JBoss and / or Apache Geronimo ? For JBoss, the only info that I can find is this: http://swforum.sun.com/jive/thread.jspa?threadID=45414&messageID=127657 ... but not too much detail on h