Bapi-unbound

Hi Experts,
i m implementing one scenario in which i need to unbound the bapi .
can anuone tell me how to unbound the bounded bapi.
plz try to solve this problem as soon as possible.
Thanks

hi
bapi which i m using is <b>BAPI_SECURITYPRICE_GETDETAIL</b>
The above BAPI is for treasury.
i want to make it unbound so as to do multiple mapping.
how can we make unbound bapi
Thanks

Similar Messages

  • How to avoid Line Items(fields) in BAPI mapping.

    Hi
    Does any body help me for mapping between header and line items in BAPI..
    my scenario is filerfcmail(wokflow)!
    File is CSV based :
    (ex: 001150,,1123,JERM,08122006,,,
         ,,,ANN,,01082006,
    If you look at example csv file , there is some fields mixed with header and line items. But in RFC header can be 1 to 1 and line item should be 0 to Unbound.
    Now my problem is if I sent above example csv file as source :
    The payload coming like this(sxmb_moni) :
    </HEADERDATA>
    - <GLACCOUNTDATA>
    - <item>
      <COSTCENTER />
      <PROFIT_CTR />
      </item>
    - <item>
      <GL_ACCOUNT>738100</GL_ACCOUNT>
      <ITEM_AMOUNT>60000</ITEM_AMOUNT>
      <COMP_CODE>001150</COMP_CODE>
      <ITEM_TEXT>*777-8030-861</ITEM_TEXT>
      <COSTCENTER>7320</COSTCENTER>
      <PROFIT_CTR>7320</PROFIT_CTR>
      <ALLOC_NMBR />
      </item>
    - <item>
      <GL_ACCOUNT>738100</GL_ACCOUNT>
      <ITEM_AMOUNT>40000</ITEM_AMOUNT>
      <COMP_CODE>001151</COMP_CODE>
      <ITEM_TEXT>*777-8030-861</ITEM_TEXT>
      <COSTCENTER>6010</COSTCENTER>
      <PROFIT_CTR>6010</PROFIT_CTR>
      <ALLOC_NMBR />
      </item>
      <item />
      </GLACCOUNTDATA>
    You can find there is one more item coming after headerdata with null values. It means map reading first line and one by one , if any field found in rows which belogs to GLAccount(Line item), then it writing one more item after headerdata with that fields only.
    Remainig GLAccount data coming as per map after the item .
    Can you tell me how to avoid extra line items.
    Thanks,
    Sankar

    Yes, It exist..
    I cross checked ..with out givig fileds and giving some fields...its writing another items in after headerdata tag.
    hope you understand , what my problem..
    See: GLACCOUNTDATA under subnode
          item is 0 to unbound in BAPI side, because of this its reading all rows , and if find any field which belongs to GLAccount , then it writing another item tag after headerr data.
    Thnaks,
    Sankar

  • Generation of reinr req number automatcially by using some bapi

    how do i need to create reinr req number automatically and i need to take input from java web dyno pro and update it to my zbom table and wat sort of logic do i ned to use here
    by using bapi as a function module
    fields are
    reinr
    slno
    mat description
    plant
    and by generating reinr automatically once i execute that bapi and i need to upadte to table width total 4 values in zbom table
    i need logic
    sir
    dnt mind
    regards,
    prabhanjan
    Moderator message: too vague, please do some research before asking, no SMS speak, only one thread per problem.
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    Edited by: Thomas Zloch on Mar 14, 2011 10:56 AM

    Thank you for reply.
    How can I adjust "Maximum Length" of the generated item in the generated FMB file if the source of this item in Designer is an unbound item?
    Usually this length is taken from server model for generated bound items, but unbound items has no reference to server model. I understood that we can adjust domain property for this unbound item to inherit domain properties when generating form, and thus, set the length of the corresponding generated item.
    This what I expected, but it didn't happen.
    If you can help me I will be very appreciating.
    Thanks

  • ABAP inbound proxy 0:unbounded structure

    Hello Folks
    In ABAP proxy, how can I read a structure like this and process it for passing to a BAPI.
    <Material>
      <Material No/>
       <Mat desc/>
       <UOM/>
    </Material>
    Here Material is of type 0:unbounded and generates a table type in Proxy.
    The input structure in proxy has only one material record eventhough I am reading 2 or more material records.Why is this?.Can anyone please send me the code to read 0:unbounded structure in proxy.
    Thanks
    Ricky

    I am not talking about how to read the material records from internal table. Here, I am not getting two records of material in the input->ZMT->Material[ ] table in the proxy eventhough I am sending two records of material in the xml inbound.
    What would be the reason? I put a break-point in proxy and displayed the input structure which is deep and found out that there is only one material record instead of two.
    Thanks

  • File to BAPI scenario

    Hi guys,
    I have the following scenario:
    A file is picked up that has multiple rows and for each row that contains a material, I have to call a BAPI, which it was not possible to wrap inside an Idoc.
    Initially, I had increased the cardinality of the BAPI in message mapping from 1 to 1..unbounded, in order to be able to call it for each record of the file. Since the messages tag was added in XML document, the RFC receiver adapter was not able to execute it.
    I have now set up file sender adapter to create one XI message per file record/line (in order to avoid the messages tag in the target XML from the mapping) and the problem that we face is that the BAPI is not always executed. Actually the BAPI is creating and changing materials' classification and is called BAPI_OBJCL_CHANGE.
    I have set up correctly the RFC receiver adapter, and I do not have checked the "Commit single BAPI Calls" checkbox.
    In log of RFC adapter in RWB, I can see only the successful RFC calls. And if for example I have 5 lines in the file, i.e. 5 materials, then only 3-4 will be created successfully. And in RWB I will get "Success" for correct ones and not for the failed ones.
    Any ideas?
    Evaggelos

    Hi Evaggelos,
    In the message you can remove the messages tag and send the message. Check out my reply in a similar thread:           <<<1:2 Message Mapping WithOut BPM - Split mapping created no messages Error>>> That way the input message can be read by the BAPI and it wont throw error.
    Regards,
    Sanjeev.

  • PI 7.1 Multiple calls of BAPI

    Dear all,
    We have a file to RFC scenario; the file consists of multiple invoices which should be posted with BAPI_ACC_DOCUMENT_POST. As described in the Weblog of Michal Krawczyk (XI: IDoc bundling - the trick with the occurance change) I have exported the BAPI to an XSD and added the maxOccurs = " Unbounded".
    However, when importing this changed XSD file as external definition the error: "Unable to recognize document as valid XSD Check the selected category" is raised. Any ideas?
    Regards,
    John.

    Make sure that while importing you have selected the xsd option and not wsdl which occurs by default.
    Just creating the unbounded occurrence won't work in you case. You need to configure multimapping 1:N. This way there would be no need to export and import the RFC. You may directly change the occurrence from the Message tab in Message Mapping.
    Regards,
    Prateek

  • MULTIMAPPING BAPI

    Hello.
    Problem to multipapping
    Structure SOURCE.
    Resulset
    ROW (0..outbound)
    -ID (Identificador)
    -BUS_ACT
    -USERNAME
    -ITEMNO_ACC1
    -CUSTOMER1
    -GL_ACCOUNT1
    -ITEMNO_ACC2
    -CUSTOMER2
    -GL_ACCOUNT2
    Example
    ID ;BUS_ACT;USERNAME;ITEMNO_ACC1;CUSTOMER1;GL_ACCOUNT1;ITEMNO_ACC2;CUSTOMER2;GL_ACCOUNT2
    ID1;BUS1;CLEON;1;CUS1;
    ID1;BUS1;CLEON;2;CUS2;
    ID2;BUS1;CLEON;1;CUS1;GL01; ; ;
    ID2;BUS1;CLEON;2;CUS2;GL01; ; ;
    ID2;BUS1;CLEON;3;CUS3;GL01; ; ;
    ID2;BUS1;CLEON; ; ; ;1;CUS1;GL01
    ID2;BUS1;CLEON; ; ; ;2;CUS2;GL02
    Structure TARGET.
    BAPI_ACC_DOCUMENT_POST (0..Unbound)
    -DOCUMENTHEADER (1..1)
    - BUS_ACT
    - USERNAME
    -ACCOUNTRECEIVABLE (0..1)
    --ITEMS(1..Outbound)
    - - ITEMNO_ACC1
    - - CUSTOMER1
    - - GL_ACCOUNT1
    CURRENCYAMOUN (1..1)
    --ITEMS(1..Outbound)
    - - ITEMNO_ACC2
    - - CUSTOMER2
    - - GL_ACCOUNT2

    What is the problem you are facing, As i see for each row in your source , the target BAPI will be called.

  • JDBC - BAPI

    Hi,
      I have a scenario where i have to sent a set of lines of data from the SQL server and the receiver BAPI should recieve this data in an internal table.Is this possible?If yes,what all steps shud i do?
    Thanks and Regards
    Jishi

    Usually 0:unbounded data (in case of JDBC <b>row</b>) is mapped to the BAPI structure table 0:unbounded.
    That is BAPI structures made by <b>Table Types</b>, they exactly represent the way you create the data types in XI.
    regards
    Shravan

  • BAPI Info required

    Hi freinds,
    I need help regarding how to identify the return types of bapi like tables parameters etc .Also whether BAPI can handle cardinality of unbounded in a single call .I am using Se37 tcode for the same but not able to identify much as i am still naive to the world of SAP
    please suggest some soluion
    Regards,

    Hi,
    >>>>So does this mean that there is no return type from the BAPI.
    no it doesn't - BAPIs return bapiret table (open tables tab and you will see it)
    all BAPIs return something
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Open Purchase Order UPload Using the BAPI 's

    i need to upload the open Purchase Order using the BAPI function BAPI_PO_CREATE1., below is the given fileds blod are for Header, header will Repeat for the line items,can any one help me out  using the BAIP's for upload the PO, i need sample code for this ........
    Thanks & Regards
    Raghu
    <u>Field Name     Field Description                              Type     Length</u>
    <b>EBELN             Purchasing Document Number                         CHAR     010          X
    BUKRS             Company Code                                                     CHAR    004     MN10     C
    EKORG             Purchasing Organization                              CHAR     004     MN00     C
    EKGRP             Purchasing group                              CHAR     003          X
    BSART             Order type (Purchasing)                              CHAR     004          X
    LIFNR             Account Number of Vendor or Creditor                    CHAR     010          X
    BEDAT             Purchase Order Date                              DATS     010          X
    ZTERM             Terms of payment key                              CHAR     004          X
    WAERS             Currency Key                                   CUKY     005          X
    INCO1             Incoterms (part 1)                              CHAR     003          X
    INCO2             Incoterms (part 2)                              CHAR     028          X</b>
    EBELP             Item Number of Purchasing Document                    NUMC     005          X
    EMATN             Material number                                   CHAR     018          X
    WERKS             Plant                                        CHAR     004          X
    LGORT             Storage location                              CHAR     004          X
    EPSTP             Item category in purchasing document                    CHAR     001          X
    KNTTP             Account assignment category                         CHAR     001          X
    EINDT             Item delivery date                              DATS     010          X
    MENGE            "Purchase order quantity (direct input, transfer of POs)"     CHAR     013          X
    MEINS            Order unit                                   UNIT     003          X
    NETPR            "Net price: Document currency (direct input, transfer of"     CHAR     011          X
    PEINH            "Price unit (direct input, transfer of POs)"               CHAR     005          X
    BPRME            Order Price Unit (Purchasing)                         UNIT     003          X
    BPUMZ            Numerator: Conversion OPUn into OUn (direct input of POs          CHAR     005          X
    BPUMN            Denominator: Conversion OPUn into OUn (direct input of P          CHAR     005          X
    SAKTO            Cost element                                   CHAR     010          X
    KOSTL              Cost Center                                   CHAR     010          X
    VBELN          Sales and Distribution Document Number                    CHAR     010          X
    VBELP          Sales document item                              NUMC     006          X
    WEMPF          Goods recipient                                   CHAR     012          X
    WEBTH          "Amount in local currency (direct input, transfer of POs)"     CHAR     013          X
    WEBTF          "Amount in document currency (direct input, transfer of P"     CHAR     013          X
    WEREF          Flag for treatment of GR/IR (direct input of POs)          CHAR     001          X
    SPINF          Indicator: Update info record                         CHAR     001          X
    WEPOS          Goods Receipt Indicator                              CHAR     001          X
    REPOS          Invoice receipt indicator                         CHAR     001          X

    i need to upload the open Purchase Order using the BAPI function BAPI_PO_CREATE1., below is the given fileds blod are for Header, header will Repeat for the line items,can any one help me out  using the BAIP's for upload the PO, i need sample code for this ........
    Thanks & Regards
    Raghu
    <u>Field Name     Field Description                              Type     Length</u>
    <b>EBELN             Purchasing Document Number                         CHAR     010          X
    BUKRS             Company Code                                                     CHAR    004     MN10     C
    EKORG             Purchasing Organization                              CHAR     004     MN00     C
    EKGRP             Purchasing group                              CHAR     003          X
    BSART             Order type (Purchasing)                              CHAR     004          X
    LIFNR             Account Number of Vendor or Creditor                    CHAR     010          X
    BEDAT             Purchase Order Date                              DATS     010          X
    ZTERM             Terms of payment key                              CHAR     004          X
    WAERS             Currency Key                                   CUKY     005          X
    INCO1             Incoterms (part 1)                              CHAR     003          X
    INCO2             Incoterms (part 2)                              CHAR     028          X</b>
    EBELP             Item Number of Purchasing Document                    NUMC     005          X
    EMATN             Material number                                   CHAR     018          X
    WERKS             Plant                                        CHAR     004          X
    LGORT             Storage location                              CHAR     004          X
    EPSTP             Item category in purchasing document                    CHAR     001          X
    KNTTP             Account assignment category                         CHAR     001          X
    EINDT             Item delivery date                              DATS     010          X
    MENGE            "Purchase order quantity (direct input, transfer of POs)"     CHAR     013          X
    MEINS            Order unit                                   UNIT     003          X
    NETPR            "Net price: Document currency (direct input, transfer of"     CHAR     011          X
    PEINH            "Price unit (direct input, transfer of POs)"               CHAR     005          X
    BPRME            Order Price Unit (Purchasing)                         UNIT     003          X
    BPUMZ            Numerator: Conversion OPUn into OUn (direct input of POs          CHAR     005          X
    BPUMN            Denominator: Conversion OPUn into OUn (direct input of P          CHAR     005          X
    SAKTO            Cost element                                   CHAR     010          X
    KOSTL              Cost Center                                   CHAR     010          X
    VBELN          Sales and Distribution Document Number                    CHAR     010          X
    VBELP          Sales document item                              NUMC     006          X
    WEMPF          Goods recipient                                   CHAR     012          X
    WEBTH          "Amount in local currency (direct input, transfer of POs)"     CHAR     013          X
    WEBTF          "Amount in document currency (direct input, transfer of P"     CHAR     013          X
    WEREF          Flag for treatment of GR/IR (direct input of POs)          CHAR     001          X
    SPINF          Indicator: Update info record                         CHAR     001          X
    WEPOS          Goods Receipt Indicator                              CHAR     001          X
    REPOS          Invoice receipt indicator                         CHAR     001          X

  • URGENT: Function modules or BAPIs

    Hi Experts,
    I need function modules or BAPI to get the open items and cleared items G/L Account wise.
    Useful replies will be surely awarded.

    Hi Chakradhar,
    Check tcode : BAPI
    u will get all bapis there.
    Regards,
    Hemant

  • Questions on BPS BAPI calls and PDF forms

    I will need to create a button on a BPS form and that button is supposed to call a BAPI.  One of the buttons will create a PDF of the form (using the contents of the form) and print said form to a 'default' printer.  The issue is that not all cFolder users will have an ECC logon name.  What am I to do in this instance?  Will I need to pass some type of credentials to the ECC backend in order to run this BAPI?
    Also, how can I get the contents of the form(s) to the BAPI?  I assume that I will need to create the PDF in the code of the BAPI.  Please be patient with me as this is my first time to work with cFolders and/or BPS.
    Regards,
    Davis

    Hi Davis,
    Well, if you are able to log on the BPS application (thus, a Web Interface if I'm not mistaken) then it means that some user is logged on the ABAP-side. It is either a "personal" user or a technical (common) user, that is used for anonymous access.
    You will certainly be able to track down this user with the SM04 transaction.
    You should be able to add a button to the BPS page. One idea would be to call an URL with an ICF service behind that will be able to process the parameters contained in this URL.
    It will be this very ICF service that will call the BAPI.
    Try these links
    http://help.sap.com/saphelp_nw04s/helpdata/en/55/33a83e370cc414e10000000a114084/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ea8db790-0201-0010-af98-de15b6c1ee1a
    Hope this helps.
    Best regards,
    Guillaume

  • Deletion of Scheduling Agreement and Delivery Schedule using BAPI

    Hi SAP MM Gurus,
    Please assist in inquiry below:
    My scenario is that I am trying to delete delivery schedules and scheduling lines using BAPIs. I have no issues when there is no GR made yet for the delivery schedules. The error arises when there are already existing Goods Receipts and Invoices for the schedule line that I wish to delete
    When using the BAPIs (either BAPI_SAG_CHANGE or BAPI_SCHEDULE_MAINTAIN), I set the deletion indicator to "L" and set to X all change relevant fields (i.e. DELETION_INDX). However, whenever I execute it, I get the error message 06088. The funny thing is both the Quantities and the delivered quantities that are normally populated are left blank.
    For example:
    Normal error for 06088:
    Quantity 100.0 smaller than quantity delivered 179.0
    Error using BAPI with deletion indicator:
    Quantity  smaller than quantity delivered
    Is this a bug of the BAPI? or am I just missing some settings?
    Your immediate response is appreciated
    Regards,
    DeLo

    Hi,
    Please find the below link check the setting are correct or not
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a02cb00a-bfb4-2c10-98aa-e33e7f64ba28?quicklink=index&overridelayout=true
    Reagrds,
    Pramod

  • BAPI for training and event management

    Hi all,
    I need a bapi that returns the list of the attendees of a training course.
    I've seen that a FM exists: RH_GET_PARTICIPANTS and i know how it works.
    I would like a standard BAPI to be called by an external system.
    If it doesn't exit I will create a remote FM that calls the RH_GET_PARTICIPANTS.
    thanks
    enzo

    Hi Enzo,
    I don't think there is a BAPI.. but you can create one using the Method 'Display Attendance' for the 'Attendance' Business Object (PDRELA_025) in Tcode BAPI. But I think creating an RFC that in turn calls RH_GET_PARTICIPANTS is the easy way out.
    Regards,
    Suresh Datti

  • Scheduling BAPi

    Hi guys,
    While scheduling a BAPI(ZBAPI_WS_REPORT ),am gettin an error msg says Program ZBAPI_WS_REPORT is invalid or does not exist,even though it exists in the target client.What could be the problem?Please help me out in this regard asap.Its very urgent.
    Surely points vl b rewarded.
    Warm Regards,
    Mohandoss P.

    You need to call that BAPI into your report and then you have schedule that report.
    I hope it helps.
    Let me know if any doubts.
    Thanks,
    Vibha
    Please mark all the useful answers

Maybe you are looking for

  • My apple id is not working in my app store

    Plz my apple id is not working plz verify my id and start now plz

  • Problem with Nokia 5250

    Welcome everybody! I have just bought Nokia 5250. It is a good phone, but I have got two problems: 1. I cannot connect it to the computer, using Nokia PC Suite (ever. 7.1.60.0). When I plug in the USB cable, nothing happen... Even if I set "PC Suite"

  • PCA for balance sheet AR / AP

    Dear All, Please give a possible solution urgently. In 3KEH balance sheet accounts are assigned to default PC's i.e. in case for revenue and cost allocation at the time of invoice posting if any B/S accounts are assigned as account determination but

  • View Scope in JSF with template

    Hello, I have one view template with scope view in jsf, When I navigate to other page the jsf don't close the session, because it's view template and the pages are fragments. Do you know this problem? Thank you!

  • WS12300111 :Is that necessary to schedule  report RPTARQPOST in background

    Hi, I am working on Leave request workflow WS12300111 . I am able to apply the leave from portal and my manager also able to approve the leave. But after approval it hold on at WAIT FOR STATUS CHANGE step in workflow. If I run the report RPTARQPOST m