Existence check bapi's??

can i use existence check bapi's for validations( like.....checking the company code exist in database ).......instead of select single??????????????????????
Message was edited by:
        raam
Message was edited by:
        raam

Hi,
The code would be:
CALL FUNCTION 'BAPI_COMPANYCODE_GETDETAIL'
EXPORTING
companycodeid = l_bukrs
IMPORTING
COMPANYCODE_DETAIL = ls_comcode_det
COMPANYCODE_ADDRESS = ls_compcode_address
RETURN = ls_ret_msgs
In the code above:
1. l_bukrs is the company code you want to get the details for
2. ls_comcode_det is the Company Code Detail Data whose structure is of type
BAPI0002_2
3. ls_compcode_address is the Company Code Address Data whose structure is
of type BAPI0002_3
4. ls_ret_msgs is the structure for the return messages whose structure is of type
BAPIRETURN.
No commit needed for this as you are just extracting information.
Regards

Similar Messages

  • BAPI for Existence check of Delivery Address

    Hello Everyone,
    Can anyone suggest me of a BAPI or Remote Enabled FM that does an Existence check for Delivery address "AD_ADDRNUM" while creating a Purchase Order? I would appreciate your help.
    Regards,
    Gopal.

    I couldnt find any BAPI or FM for you but you can write your own RFC. Tables: ADRC, ADRP , ADRT may help you. Check them with your address number

  • QM quality notification : existence check and modify

    Hi,
    I would like to know if there dedicated BAPi or standard module function to perform following tasks on QM quality notifications (QM02 /QM03 notifications).
    - existence check from notification type and number
    - data changes such as tasks, header data, status
    - lock object
    Do you also know some document with relation diagram about involved data tables such as VIQMEL, QMFE QMUR and so on ?
    Thanks for help
    Regards
    morgan

    Hi Bala,
    Please see the below links:-
    http://help.sap.com/saphelp_46c/helpdata/en/58/e82c7dd435d1118b3f0060b03ca329/content.htm
    http://help.sap.com/bp_pharmav1500/Pharma_DE/Documentation/GxP_Assessment_List.pdf
    Regards,
    Anil

  • Essbase Product Existence Check Fails against the Shared Services Server

    Hello Everyone,
    I am a new to Essbase
    When I am launching the EAS web console and trying to log in, its giving me an error saying "Could not connect to Administration Server".
    I looked in ESSBASE log file its showing an error 1051429 : "Essbase Product Existence Check Fails against the Shared Services Server with Error []"
    This error actually started when I copied an Essbase Application from one of my computers to another computer. All I simply did is copied the application folder into "app" folder. I am not sure if migration
    is possible just by copying and pasting the application folders. I am not sure if doing this messed up security with shared services. Also under c:\hyperion\essbase folder I see another text file named "SharedServices_Security_Client".
    Its log for today is below:
    2011-11-03 19:36:15,375 INFO [main] CSS is initialized as client. The default logger properties will be loaded com.hyperion.css.CSSSystem.<init>(Unknown Source)
    2011-11-03 19:36:15,531 INFO [main] CSS Log file will be generated at C:\Hyperion\logs\essbase\SharedServices_Security_Client.log com.hyperion.css.CSSSystem.<init>(Unknown Source)
    2011-11-03 19:36:15,531 INFO [main] Configure CSS with registry com.hyperion.css.CSSSystem.initCSSSystem(Unknown Source)
    2011-11-03 19:36:15,531 INFO [main] Initializing CSS from Registry. com.hyperion.css.common.configuration.CSSConfigurationManager.getConfiguration(Unknown Source)
    2011-11-03 19:36:18,531 INFO [main] Trying to get Registry Instance com.hyperion.css.registry.RegistryManager.<init>(Unknown Source)
    2011-11-03 19:36:45,531 ERROR [main] 20:1092:Failed to initialize EPM System registry. [Root Cause: hyperion.jdbc.base.BaseSQLException: [Hyperion][SQLServer JDBC Driver]Error establishing socket to host and port: chandan:1433. Reason: Connection refused: connect ] com.hyperion.css.registry.RegistryManager.<init>(Unknown Source)
    2011-11-03 19:36:45,531 ERROR [main] Arguments: param1={}, param2=null, param3=C:\Hyperion\logs\essbase\, com.hyperion.css.CSSSystem.initCSSSystem(Unknown Source)
    2011-11-03 19:36:45,531 INFO [main] CSS system intialization failed. : [44156 ms] com.hyperion.css.CSSSystem.initCSSSystem(Unknown Source)
    2011-11-03 19:44:14,765 INFO [main] CSS is initialized as client. The default logger properties will be loaded com.hyperion.css.CSSSystem.<init>(Unknown Source)
    2011-11-03 19:44:14,781 INFO [main] CSS Log file will be generated at C:\Hyperion\logs\essbase\SharedServices_Security_Client.log com.hyperion.css.CSSSystem.<init>(Unknown Source)
    2011-11-03 19:44:14,781 INFO [main] Configure CSS with registry com.hyperion.css.CSSSystem.initCSSSystem(Unknown Source)
    2011-11-03 19:44:14,781 INFO [main] Initializing CSS from Registry. com.hyperion.css.common.configuration.CSSConfigurationManager.getConfiguration(Unknown Source)
    2011-11-03 19:44:14,828 INFO [main] Trying to get Registry Instance com.hyperion.css.registry.RegistryManager.<init>(Unknown Source)
    2011-11-03 19:44:16,265 INFO [main] Got Registry Instance com.hyperion.css.registry.RegistryManager.<init>(Unknown Source)
    2011-11-03 19:44:16,796 INFO [main] Got hub location from Registry:http://chandan:28080 com.hyperion.css.registry.RegistryManager.getHubLocationFromRegistry(Unknown Source)
    2011-11-03 19:44:16,953 INFO [main] Got native directory location from Registry:chandan:28089 com.hyperion.css.registry.RegistryManager.getNativeProviderLocationFromRegistry(Unknown Source)
    2011-11-03 19:44:16,953 INFO [main] URL constructed out of values in Registry database:ldap://chandan:28089/dc=css,dc=hyperion,dc=com com.hyperion.css.common.configuration.CSSConfigurationImplXML.initConfiguration(Unknown Source)
    2011-11-03 20:02:47,687 INFO [main] CSS is initialized as client. The default logger properties will be loaded com.hyperion.css.CSSSystem.<init>(Unknown Source)
    2011-11-03 20:02:47,859 INFO [main] CSS Log file will be generated at C:\Hyperion\logs\essbase\SharedServices_Security_Client.log com.hyperion.css.CSSSystem.<init>(Unknown Source)
    2011-11-03 20:02:47,859 INFO [main] Configure CSS with registry com.hyperion.css.CSSSystem.initCSSSystem(Unknown Source)
    2011-11-03 20:02:47,859 INFO [main] Initializing CSS from Registry. com.hyperion.css.common.configuration.CSSConfigurationManager.getConfiguration(Unknown Source)
    2011-11-03 20:02:48,328 INFO [main] Trying to get Registry Instance com.hyperion.css.registry.RegistryManager.<init>(Unknown Source)
    2011-11-03 20:03:08,921 ERROR [main] 20:1092:Failed to initialize EPM System registry. [Root Cause: hyperion.jdbc.base.BaseSQLException: [Hyperion][SQLServer JDBC Driver]Error establishing socket to host and port: chandan:1433. Reason: Connection refused: connect ] com.hyperion.css.registry.RegistryManager.<init>(Unknown Source)
    2011-11-03 20:03:08,921 ERROR [main] Arguments: param1={}, param2=null, param3=C:\Hyperion\logs\essbase\, com.hyperion.css.CSSSystem.initCSSSystem(Unknown Source)
    2011-11-03 20:03:08,921 INFO [main] CSS system intialization failed. : [63140 ms] com.hyperion.css.CSSSystem.initCSSSystem(Unknown Source)
    2011-11-03 20:05:37,343 INFO [main] CSS is initialized as client. The default logger properties will be loaded com.hyperion.css.CSSSystem.<init>(Unknown Source)
    2011-11-03 20:05:37,343 INFO [main] CSS Log file will be generated at C:\Hyperion\logs\essbase\SharedServices_Security_Client.log com.hyperion.css.CSSSystem.<init>(Unknown Source)
    2011-11-03 20:05:37,343 INFO [main] Configure CSS with registry com.hyperion.css.CSSSystem.initCSSSystem(Unknown Source)
    2011-11-03 20:05:37,343 INFO [main] Initializing CSS from Registry. com.hyperion.css.common.configuration.CSSConfigurationManager.getConfiguration(Unknown Source)
    2011-11-03 20:05:37,390 INFO [main] Trying to get Registry Instance com.hyperion.css.registry.RegistryManager.<init>(Unknown Source)
    2011-11-03 20:05:49,875 ERROR [main] 20:1092:Failed to initialize EPM System registry. [Root Cause: hyperion.jdbc.base.BaseSQLException: [Hyperion][SQLServer JDBC Driver]Error establishing socket to host and port: chandan:1433. Reason: Connection refused: connect ] com.hyperion.css.registry.RegistryManager.<init>(Unknown Source)
    2011-11-03 20:05:49,875 ERROR [main] Arguments: param1={}, param2=null, param3=C:\Hyperion\logs\essbase\, com.hyperion.css.CSSSystem.initCSSSystem(Unknown Source)
    2011-11-03 20:05:49,875 INFO [main] CSS system intialization failed. : [12625 ms] com.hyperion.css.CSSSystem.initCSSSystem(Unknown Source)
    2011-11-03 20:06:42,859 INFO [main] CSS is initialized as client. The default logger properties will be loaded com.hyperion.css.CSSSystem.<init>(Unknown Source)
    2011-11-03 20:06:42,859 INFO [main] CSS Log file will be generated at C:\Hyperion\logs\essbase\SharedServices_Security_Client.log com.hyperion.css.CSSSystem.<init>(Unknown Source)
    2011-11-03 20:06:42,859 INFO [main] Configure CSS with registry com.hyperion.css.CSSSystem.initCSSSystem(Unknown Source)
    2011-11-03 20:06:42,859 INFO [main] Initializing CSS from Registry. com.hyperion.css.common.configuration.CSSConfigurationManager.getConfiguration(Unknown Source)
    2011-11-03 20:06:42,890 INFO [main] Trying to get Registry Instance com.hyperion.css.registry.RegistryManager.<init>(Unknown Source)
    2011-11-03 20:06:45,359 INFO [main] Got Registry Instance com.hyperion.css.registry.RegistryManager.<init>(Unknown Source)
    2011-11-03 20:06:47,218 INFO [main] Got hub location from Registry:http://chandan:28080 com.hyperion.css.registry.RegistryManager.getHubLocationFromRegistry(Unknown Source)
    2011-11-03 20:06:48,250 INFO [main] Got native directory location from Registry:chandan:28089 com.hyperion.css.registry.RegistryManager.getNativeProviderLocationFromRegistry(Unknown Source)
    2011-11-03 20:06:48,265 INFO [main] URL constructed out of values in Registry database:ldap://chandan:28089/dc=css,dc=hyperion,dc=com com.hyperion.css.common.configuration.CSSConfigurationImplXML.initConfiguration(Unknown Source)
    2011-11-03 20:07:17,359 ERROR [main] 80:6007:Failed to load SAP certificate from keystore at SAP.keystore. Ignore if SAP provider is not configured.[Root Cause: Invalid keystore format ] com.hyperion.css.SAPSecurity.loadSAPCertificate(Unknown Source)
    2011-11-03 20:10:12,937 INFO [main] CSS is initialized as client. The default logger properties will be loaded com.hyperion.css.CSSSystem.<init>(Unknown Source)
    2011-11-03 20:10:12,937 INFO [main] CSS Log file will be generated at C:\Hyperion\logs\essbase\SharedServices_Security_Client.log com.hyperion.css.CSSSystem.<init>(Unknown Source)
    2011-11-03 20:10:12,937 INFO [main] Configure CSS with registry com.hyperion.css.CSSSystem.initCSSSystem(Unknown Source)
    2011-11-03 20:10:12,937 INFO [main] Initializing CSS from Registry. com.hyperion.css.common.configuration.CSSConfigurationManager.getConfiguration(Unknown Source)
    2011-11-03 20:10:13,000 INFO [main] Trying to get Registry Instance com.hyperion.css.registry.RegistryManager.<init>(Unknown Source)
    2011-11-03 20:10:14,265 INFO [main] Got Registry Instance com.hyperion.css.registry.RegistryManager.<init>(Unknown Source)
    2011-11-03 20:10:14,671 INFO [main] Got hub location from Registry:http://chandan:28080 com.hyperion.css.registry.RegistryManager.getHubLocationFromRegistry(Unknown Source)
    2011-11-03 20:10:14,812 INFO [main] Got native directory location from Registry:chandan:28089 com.hyperion.css.registry.RegistryManager.getNativeProviderLocationFromRegistry(Unknown Source)
    2011-11-03 20:10:14,812 INFO [main] URL constructed out of values in Registry database:ldap://chandan:28089/dc=css,dc=hyperion,dc=com com.hyperion.css.common.configuration.CSSConfigurationImplXML.initConfiguration(Unknown Source)
    2011-11-03 20:10:15,234 ERROR [main] 80:6007:Failed to load SAP certificate from keystore at SAP.keystore. Ignore if SAP provider is not configured.[Root Cause: Invalid keystore format ] com.hyperion.css.SAPSecurity.loadSAPCertificate(Unknown Source)
    I dont know how to resolve this.
    Please Help
    Thank you

    From the log
    Error establishing socket to host and port: chandan:1433. Reason: Connection refused: connect
    The SQL server itself is not running or TCP/IP is disabled. That can be confirmed by runing netstat and see it is listed there.
    Then run telnet chandan 1433 and see it can connect
    To enable the TCP refer to this link
    Re: error establishing socket to host and port: EPM11:1433

  • How to ReUse Existence Check Validation ?

    Hi All,
    I read chapter 9.6.2 of ADF Developer Guide 4GL, "9.6.2 Implementing an Efficient Existence Check". However the exists() method in the ProductDefImpl.java can only be use to check product existence when user add new product on Product entity .
    But in my case, there are many entities having FK referring to Product
    entity, e.g :
    OrdersDetail has FK to Product
    PurchaseDetail has FK to Product
    ShipmentDetail has FK to Product
    ..and some more...
    I don't want to code productExists() method to all xxxDefImpl class of all
    above entities. How can I create just one productExists() method and reuse it in all entities having FK to Product entity ?
    Thank you for your help,
    xtanto

    Hi Steve,
    yes, I have check to ServiceRequestImpl in SRDemo, there is a method validator that invoke productDef.exists(getDBTransaction(),data).
    But, by using method validator, I still have to copy-paste the code to ALL entities that has FK to Product.
    How to make it a Reusable Validation Rule (like "DateMustComeAfterRule") so that I just need "plug" it to All entities (at attribute level) having FK to Product ?
    Thank you,
    xtanto

  • Existence check during archiving : AM_ASSET

    According to the job network graphic of archiving object 'AM_ASSET', PS_PROJECT is prerequisite.
    Could anybody tell me what is checked during writing program/deletion program of AM_ASSET?
    For example, existence check of related PROJECT is done during deletion program .. and so on.
    Thank you
    Yuko

    Thanks Srinivasa,
    I tried change the profit centere to optional still i get the same error. (Note : In the performance screen (error msg scree) There is a customizing link when i click it, It takes me to the following IMG menu:
    Financial accounting new .-> GL New-> Business Transactions ---> Document splitting -
    > Define document splitting charaterstics for general ledger accounting.
    But i am not sure what configuration i should do over there. (Note: it already has field profit center and segment .there is a tick mark for zero balance and mandatory field against profit center. Nothing is checked for segment.) Hope this input will be of some help.
    Please let me know if you need any additional information
    Regards
    Naveen

  • ERROR - 1051417 - Essbase Application Existence Check Fails against..

    Hi
    Our backup routine copies our Essbase databases to a seperate application. First, it drops the target app before rebuilding it.
    But in our Test environment (11.1.1.3) this step fails with the following error:
    +ERROR - 1051417 - Essbase Application Existence Check Fails agaainst the Shared Services Server with Error [Local ID is required.]+
    Any ideas what that is about ?
    Cheers

    From the log
    Error establishing socket to host and port: chandan:1433. Reason: Connection refused: connect
    The SQL server itself is not running or TCP/IP is disabled. That can be confirmed by runing netstat and see it is listed there.
    Then run telnet chandan 1433 and see it can connect
    To enable the TCP refer to this link
    Re: error establishing socket to host and port: EPM11:1433

  • Analytical Services Application Existence Check Fails against the SSH

    Hi guys,
         We have a problem in Essbase 9.3.0.1. Some time, when we try to start the Essbase Server, is not possible to complete the startup sequence with the following error in Essbase.log:
    [Fri Jan 23 01:38:54 2009]Local/ESSBASE0///Error(1051417)
    Analytical Services Application Existence Check Fails against the Shared Services Server with Error []
         After check the Shared Services log, we receive this message:
         “23 Jan 2009 05:30:47 - org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter - ERROR - SQL error 0 on /1222000912577.1: Connection is closed.
    605779961 [ExecuteThread: '4' for queue: 'weblogic.kernel.Default'] ERROR cms.CMSFacade - org.apache.slide.common.ServiceAccessException: Service org.apache.slide.store.impl.rdbms.JDBCStore@1794494 access error : Connection is closed.
    605779961 [ExecuteThread: '4' for queue: 'weblogic.kernel.Default'] WARN cms.CMSFacade - GetUsers() - Skipping User
    com.hyperion.eie.common.cms.CMSException: error.UnableToGetNodeRevisionDescriptor”
    I tried to start Essbase Server many times, but only after restart Shared Services was possible to start Essbase Server with success.
         I checked the connectivity with OpenLdap (through LDAP Browser), Shared Services repository (through SQL*Plus), Shared Services and MSAD Provider and everything is OK.
         Our environment is:
    Sun Solaris 9:
    Shared Services 9.3.0.1
    Analytic Administration Services 9.3.0.1
    Planning 9.2.0.3
    BI+ 9.2.0.3
    IBM AIX 5.3
    Analytic Services 9.3.0.1
    Oracle 10.2.0.4
    WebLogic 8.1.4
    External Authentication: MSAD
    I found some topics with errors alike, but without a solutions. I am with a Service Request in Oracle Support but they could not find a reason to this yet.
    Thanks !

    What is the solution to the problem.How did you resolve it.

  • Entity Attribute Existence Check - Query Result Parameter not possible ?

    I already read the section of the ADF BC Developer Guide (9.6.2 Implementing an Efficient Existence Check).
    That works and maybe is the best solution, however I am working with a group of Forms Developers which are much more comfortable with writing SQL statements.
    Natural thing for them in this case was to define a declarative compare validator with the following Query Result:
    select PROD_ID from Products where PROD_ID=:ProdId
    where :ProdId is ServiceRequest.ProdId
    Is this possible with ADF BC ?
    Other possibility is to define a List Validator with the following Query Result:
    select PROD_ID from Products
    but this is not performant.
    I know the programmatic approach is always possible, but to make migration easier for Forms developers into the ADF BC world, the declarative SQL option should be available.
    Thanks,
    Claudio.

    This isn't possible out of the box in 10.1.3 since we don't support a mechanism to set the values of the bind variables. In 10.1.3, you would need to build a custom validation rule class (explained in section 26.9 "Implementing Custom Validation Rules") to make this declarative for others on your team.
    I wouldn't recommend the list validator in 10.1.3 for anything but the most trivial uses. This is because it's current implementation retrieves all rows from the query, then does the attribute comparison in memory.
    Among many, many other enhancements, we are greatly enhancing declarative business logic features of ADF Business Components for our 11g/Fusion release (the next major release), where this will be super-easy.

  • AIX SSH Connectivity,  existence check failed for bin/bash

    hello;
    I received error
    AIX 7 Oracle RAC 11g R2
    Oracle RAC AIX SSH Connectivity
    existence check failed for bin/bash on node2
    but the bin/bash exists
    have any idea?
    regards
    siyavus
    Edited by: sak on May 31, 2011 10:41 PM

    Does it really say "bin/bash"? It should have a slash in front of bin: "/bin/bash"
    Can you login to node 2 and do:
    echo $PATH
    ls -l /bin/bash

  • Existence Checking question

    Hi,
    Can someone explain me what are the different option we have for Existence Checking in the default properties tab?
    The doc doesn't seem to explain that. Is this related to the behavior before reading object from the database?
    Thanks

    It does look for an record in the database but with an id equalq to 0 and not to seq.nextval from dual?
    Is this normal?Yes, the does-exist is executed before the sequence id is assigned, the sequence id is only assign for inserts, which the does-exist determines. You should never have duplicate sequence ids, nor be trying to update a newly created object.
    I assume that it is looking for 0 because your id attribute is a primitive, if your id was null or you had a null-value the does exist would not be executed at all as null primary keys are assumed to be always new.
    For existing objects you should first read them, then change them, then commit.

  • Directory Existence Check Before File-Download.

    Hi,
      How to check the existence of a directory say USR/INTERFACES/HR/NONHR/SAP_TO_IFS/
    before I download a file into that particular directory using GUI_Download.
    Currently even if such a directory does not exist,
    The download is successful.
    But I want to validate the existence of the directory before the download.I tried using the FM PFL_CHECK_DIRECTORY.
    Kindly Advice.
    Thanks .

    Hello Renu
    It seems that you are mixing directories on presentation (GUI_DOWNLOAD) and application server (USR/INTERFACES/HR/NONHR/SAP_TO_IFS/).
    To check the existance of a directory on the presentation server use method cl_gui_frontend_services=>DIRECTORY_EXIST.
    This class has many more useful methods.
    Regards
       Uwe

  • Check bapi in se37

    hey friends,
    I need to change for custom fields updation and valid_from field through BAPI direct execution in SE37, could anyone help me to know the correct process to check with commit?
    Thanks
    TIna

    Hi,
      Use the EXTENSIONIN internal table in the BAPI to change the custom fields.
      Then the test sequences give the BAPI_TRANSACTION_COMMIT function module to commit the changes..
    Thanks,
    Naren
    Message was edited by: Narendran Muthukumaran

  • Sender file adapter, file existence check in archive folder if exists rename the same and proceed with current file

    Dear SAP Gurus
    Interface flow:
    File --> File and RFC.
    We have a requirment where PI needs to check the file existency in archive folder and if there is a file already exists with same name we need to rename that file and archive the current file as is...
    Note* Customer don't want to add time stamp!!!!
    For ex today first message processed with file name "UBMO_delta20140626.xml" and archived as is- UBMO_delta20140626.xml
    and customer sends a second file on the same day with same name(UBMO_delta20140626.xml) in this case before archiving PI needs to check whether there is a file exists already in archive folder or not if there is, then it should rename the same like(UBMO_delta20140626_1.xml) and proceed with current message processing and archive the same name(UBMO_delta20140626.xml).
    Many Thanks in advance...
    Nagesh

    Hi Nagesh,
    I think you can use the feature of run operating system command before message processing. you can refer the below wiki for information.
    SAP XI File Adapter OS Command Line Feature - Process Integration - SCN Wiki
    regards,
    Harish

  • How to Separate Existence Check / Details Information in an HGrid

    I need to display an HGrid that represents an employee hierarchy. In addition to the hierarchy I need to display columns in the HGrid result table that query data from tables outside of the tables that define the recursive hierarchy.
    I was able to get my HGrid to work with all the specified columns but to do so I integrated the information from those additional tables into my HGrid view objects.
    Unfortunately this is making my HGrid very slow to load initially because of the repeated queries (one for existence and one for retrieval of data) on the HGrid view objects and the queries against my additional tables are relatively intensive.
    Is there anyway to setup an HGrid such that you can define a view object and requisite view links to support defining the hierarchy and then a view object/link to support going after the detailed information such that the detailed query only executes once for each node? If so, how would I do that?
    If you need any other information please let me know.
    I'm on Oracle EBS 11.5.10

    Bump!

Maybe you are looking for