BAPI - Query

I am using this std BAPI (BAPI_ENTRYSHEET_CREATE)
Suppose 30 fields required for creating a service entry.
Third party system is sending 10 fields to XI and XI is putting these 10 fields to the BAPI.
This will inlcude the PO number and line item number.
Now fields like material group, company code , business area etc will not be sent by third party system, but these fields are required to create service entry.
Query:
1. If PO and PO line item entered in BAPI will the BAPI pick other data which are required for creating the service entry?
2. How does BAPI works ? Can anyone please explain in simple terms.
Please advice.
Thanks
Moderator message - Cross thread locked. And please use a meaningful subject line.
Edited by: Rob Burbank on Nov 12, 2009 11:41 AM

I am using this std BAPI (BAPI_ENTRYSHEET_CREATE)
Suppose 30 fields required for creating a service entry.
Third party system is sending 10 fields to XI and XI is putting these 10 fields to the BAPI.
This will inlcude the PO number and line item number.
Now fields like material group, company code , business area etc will not be sent by third party system, but these fields are required to create service entry.
Query:
1. If PO and PO line item entered in BAPI will the BAPI pick other data which are required for creating the service entry?
2. How does BAPI works ? Can anyone please explain in simple terms.
Please advice.
Thanks
Moderator message - Cross thread locked. And please use a meaningful subject line.
Edited by: Rob Burbank on Nov 12, 2009 11:41 AM

Similar Messages

  • Need example for BAPI query. Please, help.

    Hi,
    badly need help on BAPI_ACC_ACTIVITY_ALLOC_POST.
    Does anybody have some example code for jCO query?
    Thanks.
    Vladimir

    Hi,
    Try this code...
    package jco;
    import com.sap.mw.jco.*;
    public class jcosample
       public static void main(String args[])
           JCO.Client myConnection = null;
           JCO.Repository mRepository = null;
           JCO.Function myFunction = null;
           try
           myConnection = JCO.createClient("client","username","password" ,"language","ip address","system no");           
           myConnection.connect();
           mRepository = new JCO.Repository("WIPRO",myConnection);
           try
                  if (mRepository == null )
                         System.out.println("NuLL");
                  try
                         IFunctionTemplate ft=mRepository.getFunctionTemplate("BAPI_COMPANYCODE_GETLIST");                                                 
                         myFunction=ft.getFunction();                    
                  }catch (Exception ex)
                         throw new Exception(ex + "Problem retrieving JCO.Function object.");
            if (myFunction == null)
                     System.exit(1);
                  myConnection.execute(myFunction);                                  
                  }catch (Exception ex)
                         ex.printStackTrace();
                         System.exit(1);
                myConnection.execute(myFunction);
                JCO.Table codes = null;
                  codes =myFunction.getTableParameterList().getTable("COMPANYCODE_LIST");
                  int size;
                 size =codes.getNumRows();
                  if (size == 0)
                      System.out.println("No value matches the selection cretaria");
                  else
                     for (int i = 0;i<=size; i++)
                            codes.setRow(i);                      System.out.print(codes.getString("COMP_CODE"));                     System.out.println(codes.getString("COMP_NAME"));
           }catch( Exception e)
                  e.printStackTrace();
    Hope that helps...
    Note: in case for the BAPI that inserts or modified data you must call the BAPI_TRANSACTION_COMMIT also for the changes to get reflected in the Database.
    Please let me if that helps you.
    Cheers
    Kathir~

  • Reg: Bapi query!!

    Hi experts,
    is it possible to call a standard SAP transaction in a custom BAPI ?? How do we suppress the standard SAP screens if we can call the transaction??
    BAPI for creation of material document number by using static inputs like moment type 311, source and destination storage locations.Transaction for material document creation is MiGO.

    Hi,
        You can create material document by the BAPI    <b>BAPI_GOODSMVT_CREATE</b>
    see the documentaion for more details.
    Regards

  • Error while initializing OLAP BAPI query extract

    Hi,
       I am getting a error while scheduling a job thru RSCRM_BAPI:
    "Internal error in method CHECK_TABLE_NAME (RSCRMBW_EX_NAMESPACE_GET)"
    Has anybody faced this error before and/or know what to do about it?
    Thanks

    Just incase if you have not looked at note '526173'
    Symptom
    Namespace /BIC/ is set to not editable but a file extract should be created anyway. To create extracts the RSCRM internally generates a structure in customer name space. On this structure the whole creation of the extract is build. So this structure is needed and can't be removed.
    The standard way is that the RSCRM checks if the name space /BIC/ is editable. If not the structure won't be generated and the extract is aborted.
    The following modification will ignore this check. The extract could be generated anyway.
    Other terms
    RSCRM_BAPI namespace CSV extract RSCRM164 CHECK_TABLE_NAME RSCRMBW_EX_NAMESPACE_GET
    Solution
    Modification
    regards,
    Hari

  • BAPI - Issue in fetching non-cumulative KF for Inventory

    Hello All,
    Would kindly require ur help urgently on the issue mentioned below:
    We require the non-cumulative KF '0TOTALSTOCK' in the BW side for further processing. Now we are using BAPI to get the query executed and store the results in a table, so that we can fetch the value from the table.
    The issue occuring is, if the Reciept Total Stock and the Issue Total Stock are same which means 0TOTALSTOCK will be '0', this gets stored in the table, but when the the values for Reciept Total Stock and Issue Total Stock are not same, the job for query execution fails giving NO ERROR.
    Kindly share ur views on it, since it is critical.
    Thank you.
    PS: Transaction used for BAPI is RSCRM_BAPI, authorization is not an issue, query contains no formulas, and have performed basic checks with respect to BAPI query execution.
    Regards,
    Kunal Gandhi

    Hi Kunal,
    Check this links:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b06c3f96-ed4f-2a10-1693-f2c76a39988f
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/90886731-21e4-2a10-2ebf-901c2c2b4e3d
    Basically, what you do is:
    - Define a source: in your case will be a query.
    - Define a target: you'll need to create a transactional DSO to save information.
    - Connect both: you can simply assign fields if the query is just what you need to download, or you can have routines.
    Transaction for creating APD is RSANWB. It's pretty easy and it's a graphical interface, so you should find your way easily.
    Hope this helps.
    Regards,
    Diego

  • Erorr in run bapi

    hi,
    i wont run bapi in portal and i get erorr :
    No storage space available for extending an internal table., error key: RFC_ERROR_SYSTEM_FAILURE
    the bapi is working o.k. in R.3
    what can be the problem?
    Regards

    does the query too large, consuming large memory?
    This is most likely to happen when the system is being used extensively and the memory is not sufficient, or the query is very large or complex.
    - any relevant dump in ST22?
    - can simplify the bapi query definition ?
    - try execute $SYNC to clear the internal
    - can it be run in background somehow ?
    - what is the value of following parameters ?
    ztta/roll_extension =
    abap/heap_area_total
    abap/heap_area_dia =
    abap/heap_area_nondia
    em/initial_size_MB =
    - are you in 64bits or 32 bits ?
    - SAP note #649327     Analysis of memory consumption
    cheers,
    Vincent

  • Dynamic entry list in Dropdown List Box

    Hi All,
    I need to create a dropdown box in a form whose input is connected to the output of a bapi/query. I want the values of a field in the bapi to the elements of the entry list.
    Can anyone tell me how to create the entry list dynamically?
    Thanks,
    Sruti

    Hi,
    Create Drop-Down List in VC
    Go throgh this links...
    http://help.sap.com/saphelp_nw04s/helpdata/en/96/c33a3382914f6d8aeba11413e3e356/frameset.htm
    Web blog
    /people/thomas.jung/blog/2006/05/26/visual-composer-value-help-data-service
    Referece Guide
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9326072e-0c01-0010-bc97-f72e93338101
    and
    http://help.sap.com/saphelp_nw04s/helpdata/en/bf/39becc90824d4d999eb05336345e5e/frameset.htm
    Senthil K.

  • Help needed in mapping BI query output to use as input for BAPI

    Hi,
    After wrestling with it for quite some time I choose to ask yet another question here. I want to use the output of a BI query I use as input for a BAPI. I just can not get the mapping correctly:
    The query delivers: 104908BA092F7501F5E1008000829000AC
    I need: 104908BA092F7501F5E1008000829000AC
    How can I lose the two first digits? Thanks in advance!
    Best regards,
    Jan

    Nevermind. I found out myself. I am now using the statement MID(@GUID,2,32) in the connection.

  • Passing multiple single values from R/3 BAPI to BW Query in VC

    Hi Experts
    I have a VC model where I am calling an R/3 BAPI which is returning a table of customer accounts.  I'm trying to go directly from that BAPI to a BW Query and pass the table of accounts into the BW Query.
    The BW Query has been set up with a variable to accept multiple single values for accounts, and I have mapped the correct output field from the BAPI to the correct input field on the Query.
    The BAPI does not seem to be passing the table of accounts into the Query.   If I hard code a single account in the mapping of the BAPI to Query call, the Query successfully returns the data I expect.
    Can I pass a table of accounts to a BW Query in this way?
    Many Thanks
    Tom

    Hi
    Have you tried with 'Group & Combine' operator. Just add this operator & join your BAPI & BI Query to this. Then in ths configure of this oparator select the 'Accoount' field & gourp the data accordingly. Also specify the aggregation if required. & in the table/chart after the operator select the fields which you want to show.
    I hope this is what you are looking for.
    Regards
    Sandeep

  • Need to send success or failure message to BAPI of SQL query action block

    Hi All,
    I need to send success or failure message(i.e. 1 or 0) to BAPI which has been called below sql query action block in transaction
    Here in SAP, i have created on BAPI with one import parameter and one export parameter.
    In the sql query action block, it insert records in the database table. If it fail or success, that message(numeric value 1 or 0) has to send to SAP program through BAPI.
    I have created a SAP ABAP program which sends message to MII Message listener through RFC then in the process rule message it will call transaction, in transaction, sql query will insert records into database table.  if it success or fail, it will pass to BAPI. And i calling that BAPI in the same SAP ABAP Program to show in the output screen.
    Here the issues, i am not getting the value from BAPI which has send by the transaction in MII.
    SAP Jco, I have mapped in conf. links --> BAPI input with sql query sucess
    Thanks,
    Kind Regards,
    Praveen Reddy M

    Dear All,
    I am facing problem regarding completion notifications in Oraclr r12, when user click the upon completion generated notifications it can only be viewd once, second time user cannot view the notifications.
    I have find that fnd_file_temp table store this information and deleted it.
    Plz help me how to view this URL again.
    thanks
    regards,
    Zubyr

  • Query on Bapi

    HI
    This is the query on BAPi,I have got one FS on Enhancement.i.e EPOS Upload program,that means i have to upload the data from Excel sheet to sap by using BAPI.I have one BAPI Name also,i.e XBAPI_RE_CN_SALES_REP_REPORT.This was given from onsite,i am workig in offshore,Actually in the excel sheet the fields are comp code,contact number,sale type,report name ,report to,and sales netvolume.But in that BAPI i could not find all the parameters which are existing in the excel sheet.If we want to upload the data from excel sheet,we shud have the same fields in the BAPI na!! to pass from that fucntion module(BAPI).So please tell me the process and coding ,I know its very simple procedure.But I am unable to do it.Please help me out

    it is necessary to have fields...but there might be a  case where company code in BAPI will hold some other field, means it might not be company code but some other field and when executed it transfers data to company code field. also, XBAPI_RE_CN_SALES_REP_REPORT is not a BAPI...check it...

  • Querying a BAPI Function Module

    Is it possible to write a query on the BAPI Function Module. For example I have a views in oracle database and i can query the views based on some condition and get the required data from the views. In the same way is it possible to query the BAPI function module to get the data based on given condition

    Hi Nikki,
       You can use FM RFC_READ_TABLE to read data from any SAP table.
      Also check following post by Raja -
         RFC_READ_TABLE for SAP Web AS - Code Sample
    Cheers,
    Sanjeev

  • BAPI for jump query(T. code RRI) and Exceptions

    Is there any BAPI is avaliable for jump query and Exceptions in BW System?
    Thanks,
    Rohan

    Hi Sanjay,
                      There is a 2 BAPI's for loading Catalogs
    1)  BAPI_QPGR_REPLICATE - to create Code group
    2)  BAPI_QPGR_SAVEREPLICA - to create Codes
    Thanks,
    Shobha

  • Bapi to get data from BW query

    Hi,
    Does anyone familiar with bapi function to get data from BW query .???
    I'm trying to use  RS_VC_GET_QUERY_VIEW_DATA_FLAT  but i get only the SUM rows of the query
    and not the details rows (drill down).
    i want to export the data of BW query to table and i need all the query data.
    if someone have an example or documention its will be great.
    Thanks.

    Hi,
    Does anyone familiar with bapi function to get data from BW query .???
    I'm trying to use  RS_VC_GET_QUERY_VIEW_DATA_FLAT  but i get only the SUM rows of the query
    and not the details rows (drill down).
    i want to export the data of BW query to table and i need all the query data.
    if someone have an example or documention its will be great.
    Thanks.

  • Query in BAPI.................Urgent

    Hi Friends,
      Here is my query in BAPI,
      I need a BAPI to upload asset information (which is currently held in Physical data) data  to SAP.
    Its very very urgent for me,plz help me on this.
    Thanks a lot in Advance.
    mrutyun^

    hi Mrutyunjaya,
    try using BAPI_FIXEDASSET_CREATE1.
    You will get lot of information about asset in business object ‘BUS1022’.
    regards,

Maybe you are looking for

  • Error While Trying To Populate Data .....Invalid Row ID

    Hi , I have created a form wherein the user enters details and presses save . The data on the form level is populated in a Custom Table . Some attributes of the table are programatically populated and some attributes are tagged to UI Components on th

  • Time Machine problems with MBP 2011

    I've been having problems trying to back up my computer data to a hard drive using Time Machine. I've already set Time Machine up, connect my 500 GB Seagate hard drive (which says is specifically designed for Time Machine on the Mac) and press Start

  • Problem with stop PPC G5 Dual 2GB

    Hi, i m new user. I have a problem with Dual G5 2,0GB. I dont know why my mac when do STOP at apple menu, it die. Dont start again. I tryed to reinstall OSX 10.5 and 10.5.6 But it does the same thing. There is somebody can help me what i do????? Than

  • I lost the round red, yellow, and green buttons in Safari.  How do I get them back?

    I lost the round red, yellow, and green buttons in the upper left hand corner in Safari.  Does anyone know how to get them back?

  • Oracle 9i Database for Linux

    Hello, I need to be able to test some software changes against an Oracle 9i database running under Linux as this is an environment used by one of my customers. I have tried downloading the zip files found at http://www.oracle.com/technology/software/