BAPI in BLS

Hi,
I am trying to call a BAPI in BLS.  The following are the steps which I did:-
1.  As a pre-requisite the SAP system configuration is already entered in the SAP Server Editor under Data Services.
2.  Created a New Transaction and used the SAP JCo Interface object to connect to the SAP server.
3.  After choosing the Server Name, choosed the BAPI "BAPI_SALESORDER_GETSTATUS" within the configure screen.
I am unable to follow this blog as I am just a beginner:-
/people/musarrat.husain2/blog/2007/10/23/a-beginners-guide-to-call-an-rfc-in-bls
After step 3, what are the other steps that I need to do in order to display the Sales Order information.  What I want to achieve is that input the Sales Order Number and get the Sales Order details as output.
Appreciate your help.
Krishnan

Krishnan,
Go back to the blog, but skip the error handling portion for now and go straight to "Populating Data in Illuminator Document".  His blog is pretty good for building this application.  You may also want to download some of the templates for Production Orders (Details).  They use a different BAPI, but the transactional logic is similar (and includes the error handling).
[Templates|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/90537bfe-fd6b-2910-fda3-b04f1177c51e [original link is broken]]
Once you have that working, then go back and add in the error handling.  Please post any specific problems you run into so we can answer them with more detail. 
Good luck,
Mike

Similar Messages

  • Error while calling BAPI in BLS(Logic Editor)

    Hi all,
    I am using a RFC(BAPI_OBJCL_CHANGE) in XMLL logic editor. I have configured in SAP JCO interface. While executing that transaction, it shows error like ACTION FAILED: End Action SAPJCOInterface_0 : (SAP JCO Interface).  But, when I try with other BAPI's its working fine. At the same time when I execute the RFC(BAPI_OBJCL_CHANGE) in SAP logon its working fine. What could be the problem?
    Help in this regard, it's urgent.
    Thanks & Regards,
    Hemalatha

    Did you try to execute the BAPI from SAP in BAPI Explorer?  If you are not familiar with the behavior of a particular BAPI, that is a good place to do testing.  By using BAPI Explorer, you have bypassed any impact xMII may have on the execution of the BAPI. 
    Once you have the parameters set correctly there and the BAPI executes without error, then try it in xMII.  A couple of other things to keep in mind.  SAP often adds leading zeroes to various ID's (material, production order, batch, etc.).  BAPI's often do not.  So make sure you know the configuration of the object and check to make sure you have leading zeroes where appropriate.
    Hope this helps,
    Mike
    Also make sure you check the Automatically Commit Transaction since you are performing an action upon SAP rather than simply retrieving information.
    Edited by: Michael Appleby on Feb 11, 2008 4:17 PM

  • JCOerror: This system does not let you log on using a password

    Hi,
    "JCOerror: This system does not let you log on using a password"
    This is the error message I get from MII tries to connect to the Production ECC using my credentials to perform a BAPI call.
    These credentials work fine interactively (using the SAP GUI) and for BAPI calls from MII on SAP Development instances.
    I can interpret this message in two ways:
    - My login can not log on using password (though I can interactively)
    - The server does not allow logging on using password only. (It might require to pre-authorize the connecting server as well).
    I guess my question can be if this error requires adding additional rights to my login for the production environment, or if this is a global SAP setup for this system?  Or something else?
    In either way, what is required to have this work?
    Thanks.

    Hi,
    Kindly try the following options.
    Try executing the BAPI seperately in se37, using your login credentials.
    Check whether RFC is enabled for the BAPI.
    Check whether the SAP server is details are furnished correctly in "SAP Server"(available under "Data Services") editor.
    We can ensure this by checking the connection status link in xMII.(Link is available under "Data Services").
    If connection status is "Running" then SAP server setting configuration is fine. Else it is not configured properly.
    Try executing the BAPI in BLS(Business Logic Services) using JCO connector.
    I believe if any one of these scenarios fail then "Proxy Error" might thrown.
    Thanks
    Rajesh Sivaprakasam

  • Downward and Upward integration scenarios

    Hi,
    Can anybody explain some upward and downward scenarios from scratch how to approach.
    Like i am looking at these
    Downward ( ERP to SFA systems ) :planned Orders,Bills of Material
    Upward (from SFA Systems to SAP ERP )
    - Upload Inspection results recording
    Please explain how  idocs,bapi(standard) ,bls are used to integrate.
    Thanks,
    Vansi

    That's a consulting question...we charge to answer these

  • Integrate xMII with ERP

    Hi,
    I am trying integrate xMII with ERP, So I have followed this blog
    /people/dipankar.saha3/blog/2007/02/05/how-to-integrate-sap-xmii-with-sap-erp
    I have created JCO Interface with some BAPI in BLS. I have added a sequence in that I am keeping Message XML output. While I am runnig, I didn't get that output.
    If anybody worked on this give me step by step solution
    Thanks
    Art

    Art Tech
    Use Action <b>Tracer</b> after each actions in the BLS and link the Output of previous action to the message of Tracer. This will help u to find where prob comes. probably u hv got stuck with some misleading in BLS.
    Find this out urself which will give u a strong understanding on this.
    I did the documentation wat i sent u in previous post with positive result
    Regards
    Som

  • Filtering the data in BAPI

    Hi,
        we are using bapi_PRODORDCONF_GETDETAIL to fetch some data in a transaction. For this we have to use a condition that it should display records only from plant 1000. for this I'm trying to use genericfilterandsort action filter the results. But the problem is that when I'm trying to map it to output of repeater or the bapi output, The filter columns are not being displayed. I've tried to link also, but its of no use. I've tried conditional statement too... but din't work either.... can anyone help in this scenario???
    thanks

    Huh
    Well, would any of these 2 ideas help to get ur required result -
    1> In the SAP System, with help of ABAP (if u know, otherwise let some ABAPer do)develope a new FM (Function Module) which will call the FM <b>BAPI_PRODORDCONF_GETDETAIL</b> to get required order details on plant selection, where plant selection will be created as an input parameter for that newly developed FM.
    Then in BLS, use that new FM as RFC which in turn has a request item as Plant, which will be passed as input parameter and get response from RFC. that will be ur expected result.
    2> Just use <b>BAPI_PRODORDCONF_GETDETAIL</b> as RFC in BLS using JCO Interface Action to get the result of all order details. Then loop this result using Action <b>Repeater</b> with item of the table which returns all the details as XPath Target of Repeater (in Configure Object). In this loop, use <b>Conditional</b> Action to check the transaction input parameter (plant) with the plant item in the Repeater, Then use <b>Row</b> Action to append the satisfied items from Repeater to the XML Document (it must be defined initially with required column names to be displayed as output in the BLS)
    Regards
    Som

  • Posting an XML Variable to a BLS Transaction from a web page

    I am working in xMII 11.5 with all the latest service packs. I know this is probably a really basic question but I am stumped.
    I am trying to pass a multi row and multi column XML data set from a web page into a BLS transaction (actually, two of them) in order to populate the parameter. I want to use the Web Service interface to the transaction. I have tried using parameters on an Xacute Query in an Applet as well with an equal lack of success. I cannot persuade the transaction to see the incoming variable as an XML data type. I have tried encoding and decoding and string to xml conversions and nothing seems to successfully allow the data set to be seen withing the BLS as anything but a string. The String to XML action will not handle the number of columns in the dataset though it seems to work if the data set has only one column. The data set is formatted in the proper "Rowsets/Rowset/Row" format. I have considered writing the data to an XML file on the server (I know I can deal with that) but that is not acceptable in this application.
    Can someone share the secret with me?
    ...Sparks

    Parameter value:
    r1d1,r1d2,r1d3;r2d1,r2d2,r2d3;r3d1,r3d2,r3d2
    Pass thru String List to Xml Parser with delim ";"
    <Row>
    <Item>r1d1,r1d2,r1d3</Item>
    </Row>
    <Row>
    <Item>r2d1,r2d2,r2d3</Item>
    </Row>
    <Row>
    <Item>r3d1,r3d2,r3d2</Item>
    </Row>
    Repeat on each row/item and pass thru String List to Xml Parser with delim ","
    <Row>
    <Item>r1d1</Item>
    </Row>
    <Row>
    <Item>r1d2</Item>
    </Row>
    <Row>
    <Item>r1d3</Item>
    </Row>
    Of course, your columns aren't flat but they are easy to ref, to get "column 2" for example:
    StringListToXml_1.Output{/Rowsets/Rowset/Row[2]/Item}
    So now you have rows and columns. Assign your data to your BAPI structured as needed.
    We have passed complex XML via the SOAP interface in 11.5, but it involved some "hacks". Basically we passed the sterilized XML via a String Type Parameter, and then unserialized it inside the BLT.  
    I have been told on this board that there is a solution to passing XML data vie the SOAP interface using ref docs, but i have never personally seen a working example.

  • Problem in getting Output Values from BAPI

    hi,
    When i call BAPI 'BAPI_REQUISITION_GETITEMS' with Input parmaters 'Material Number' like '1000' from xMII BLS.
    While executing from xacute query im not getting any output.
    Please suggest me how can achieve using this BAPI, what are all inputs to be passed?.
    Regards,
    Raj

    Hi Sachin,
    Thanks for your reply.
    not only OPEN_ITEMS and also need to add the following fields in BLS.
                                     ASSIGNED_ITEMS,
                                    CLOSED_ITEMS,
                                     DELETED_ITEMS,
                                    PARTIALLY_ORDERED_ITEMS,
                                     ONLY_NON_MATERIAL_ITEMS
    now its working fine.
    Thanks.

  • Problem in retrieving multiple records SAP xMII from SAP using BAPIS

    Hi friends,
             In SAP xMII i called BAPI_USER_GETLIST by passing import parameters 10 and y.In r/3 BAPI returned 10 rows but In xMII it was returned only one Record.
    i want to display 10 records in sap xmii
    1) I created to connection ECC5 in Dataservices-->SAPSERVERConfiguration
    2)In BLS we placed JCO Interface inside Sequence
    3)In BLS I used ECC5 connectrion(using JCO Interface) and called  BAPI_USER_GELLIST
    4)In Links-->Transaction created two input values for "maxnoofrows","withusername" and output value is "userid".
    Input what i mapped 
    Transaction>"maxnoofrows" =====SAPJCOINTERFACE->Request>BAPI_USER_GETLIST>INPUT-->MAX_ROWS
    Transaction>"withusername" =====SAPJCOINTERFACE->Request>BAPI_USER_GETLIST>INPUT-->WITH_USERNAME
    Output what i mapped 
    SAPJCOINTERFACE->Response>BAPI_USER_GETLIST>TABELS>USERLITS >ITEM>USERNAME=====Transaction-->userid
    5)Saved the Transaction.
    6)In Query Template -->xactuateQuery selected
    7)In Datasource Query mode was selected ,Inputrarams i passed 10 and y as parameters.
    It was returned one user id from R/3 inSAP xMII
    please help me to retrive all  10 rows from r/3
    Regards
    Srikanth

    hi,
    What is the data type of Transaction output (userid)?
    Make this as XML type.
    The format which BAPI returns the result does not match with xMII XML format.
    Create a xMII XML document and configure with column name as userid. and by using repeater and XML row add all tho values to the document. Then assign whole doument to transaction output.
    Hope this will help to resolve the issue.
    Regards,
    Kishore

  • SAP Standard BAPI Issue ---BAPI_PROCORDCONF_CREATE_TT

    Hi
    We are using the standard BAPI--  BAPI_PROCORDCONF_CREATE_TT to do Process order confirmations , which is invoked by an MII BLS using data from the MES system.
    Everything worked like a charm ( Partial confirmations, Final Confirmations, Goods Movements ie.101 etc) , but recently we implemented it a new plant. Now in this plant there is a strange Business process i.e they Do a partial confirmation of the full qty of the process order and then do a Final Confirmation with Zero Qty. let me explain
    Process order requires 100 GAL of a perticlar paint .
    First the MES system does a process order confirmation and goods Receipt of 100 Qtys  as  a Partial confirmations and then They do a Final confirmation with Qty as Zero.
    This works fine when i do it in the SAP GUI ( CORK t-code for process order confirmations and GR) but with the BAPI  BAPI_PROCORDCONF_CREATE_TT , the first transaction sets the Status of the process order the to PCNF DLV (which is as expected) .
    Next when they send a Zero Qty with a final Confirmation , the system changes the STATUS of the proces order to CNF (and removes the DLV) which does not happen with SAP GUI and CORK t-Code.
    Is there any parameter that i am missing.
    Please help me. the plant has gone live , they dont want to change the process and i need to resolve this issue.
    Regrads
    Suraj Prabhu

    Hi CKxMII
    Movement Type value i am passing is 101.
    What i am doing in MII is first i Pass the basing parameters of Plant, Order ID, Phase, Yield and Confirmation type (X for Final, Space for partial) to another standard BAPI BAPI_PROCORDCONF_GET_TT_PROP.
    Now this BAPI returns me with all the required parameters for the  actual Process Order Confirmation BAPI i.e BAPI_PROCORDCONF_CREATE_TT .
    See the issue is not that the Final or Partial Confirmation is not happening. They are happening fine. Only in case where i am doing a final confirmation with the Qty = Zero is where i am seeing the  DL Flag is dropped.
    Regards
    Suraj

  • Question related to BAPI Call

    Hi All,
    I am using a BAPI Call to SAP in my BLS transaction. One of the action blocks in the transaction is a SQL Query which updates a Oracle table based on the SAP returned values from the previous action block. For the most part, it works fine except once in a blue moon, the values show up as 'null' when in fact I expect some values to be returned from SAP. Is there anyone out there who has faced a similar issue? What would be a quick and easy solution to this? Thanks.
    Regards,
    V M.

    Hi Venki,
    Possible response segments for CONF_CNT (in DETAIL_RETURN):
    1) That BAPI will return "000000" for counter if the confirmation was unable to be processed for some reason, but you were able to connect to SAP.  A fairly common reason is the record being locked if you run similar confirmations too close together.  It takes time for the confirmation record to be released by SAP.
    2) It will return a number "000001 or greater if the confirmation was successful (along with a confirmation number). 
    3) The circumstances where it will return an empty field are when it is unable to connect to SAP, but you should have a conditional to check for the success flag from the BAPI.  This is standard error handling when using a BAPI.  This will also leave all fields in the response segment blank. 
    4) And there is another set of circumstances which will leave the fields blank.  This is fairly unusual, but does happen when the error handling inside the BAPI runs into a situation which it can't handle.  So the BAPI crashes and never returns any information back to MII.
    You will need to decide which of these situations are causing your null data.  But put error handling in based on the Success flag for the BAPI for SAP unavailable and for a CONF_CNT = "000000" or blank.
    Good luck,
    Mike

  • Process to call BAPI in xMII

    Hi All
    I want to check BAPI in xMII and do not no much in xMII.
    Can anyone please tell  process to call bAPI in xMII.
    Points for quick reply
    -Philip

    Hi Philip,
    Here you need to follow two steps
    First go to SAP Server Configuration tab and open it.
    SAP Server Configuration to assign aliases to default SAP servers for use in the SAP ERP Interface action blocks in the xMII Logic Editor.
    Assign login credentials and system name, IP details properly.
    Once you define your sap system here than you can see it in drop down list under SAP JCo Interface action block.
    Open BLs and go to SAP ERP Interface tab
    Click on SAP JCo Interface Action block and choose aliase created by you in Server Configuration.
    Give your RFC/BAPI name or put wildcard.
    Right click on action block and choose link editor,here you can assign input to BAPI
    This way you can take BAPI in xMII.
    Best Regards
    Ramshanker

  • Creating PDF using BAPI

    Hi,
    I am trying to create PDF using BAPI. I got one BAPI(Z_MM_EPSP_BAPI_GET_PO_PDF). That bapi returns bytecodes. How can I generate PDF file using this BAPI output in BLS. Give some example
    Thanks & Regards
    Art

    Art,
    Are you familiar with xMII at all? I would like to answer your question but it seems more like a tutoring lesson rather than a technical problem.
    Please post a problem and not how somone can help you do your work. Unless of course you are willing to paypal some money over. :-D

  • BAPI Error 462

    We are working with  MII 12.1 and attempting to backflush an order with bapi_repmanconf1_create_mto using a JCo interface in a BLS. The error seems focused on the posting date which is populated using the "datenow" xpath statement. I am getting an error 462 "Posting date and/or document date was/were not transferred".
    I have tried to do a datefromxmlformat to another date time format but the JCo will not execute at all citing a date format string conversion error "Cannot convert a value of '03-01-2010' from type java.lang.String to DATE at field POSTDATE"
    What could be the problem with the date format? Or is this a case where SAP has generated a totally anti-intuitive message and really wants something else entirely?
    Thanks for your help.

    Sparks,
    I have found with other confirmation bapi's that if you put in a posting date, you also need to provide the document date.  If you leave the posting date and document date empty, they will self populate with the current date and time.
    Regards,
    Mike

  • Creating a Work Order List with a BLS Transaction

    I'm trying to create a list of work orders at a specific plant with a BLS transaction.  I'm running 4.6c.  I'm having trouble finding a BAPI that I can use for this.  The BAPI list in BAPI Explorer seems rather abbreviated when it comes to plant maintenance functions.  Any ideas?

    I did find one BAPI that looked promising 'BBP_PMORDER_GET_LIST' but unlike other BAPI's that had an INPUT section and an OUTPUT section, this one just had a TABLES section (and I couldn't find any documentation with it)
    What is involved in creating a custom BAPI?
    (We'll be on ERP2005 next spring so these 4.6c issues are temporary.)
    I appreciate your help with this.

Maybe you are looking for

  • Open new Tab error

    When i open a new TAB in mozilla firefox I always have this error: Erro na análise do XML: entidade indefinida Localização: about:newtab Número da linha 116, Coluna 47: <button class="launchButton" id="settings">&abouthome.settingsButton.label;</butt

  • How could it happen that there was a wrong FIRMWARE on the HP side?

    Hey, I've bought a HP LaserJet Pro 200 color MFP M276nw. I checked for a new firmware 1. downloaded the latest one: M270_colorMFP_Series_FW_Update-20140718.exe 2. I started the exe file while working in a WiFi NETWORK    2.1 - chose the printer    2.

  • Apple Extreme AC 6th Gen - Wifi slow download speed

    My Apple Extreme AC seems to be behaving strangely and wanted to find if anyone else having the same problem, or if anyone know how to fix this. The router is set to bridge mode and get it's connection from: FTTH Modem (300Mbps connection) > DLink 86

  • Image batch converter program

    hi. i have a lot of images to upload for online gallery. total space and probably and more later, 1.1GB, which of them each photo is around 1, something MB. i use archlinux. is there any batch converter program which gives me the option to convert ma

  • Reacreate the SE16 Data Browser

    Hi everyone, I was trying to implement the SE16 Data Browser at my localhost with the NW04s SneakPreviw. But unfortunately, I found out an error that I am not able to solve. Can anyone help me? I'm stucked. Here follows: Web Dynpro Comp. / Intf. Z_SE