Regarding the BAPI calls without input

Hi all,
We are developing on webdynpro component. I came across a scenario where we call the BAPI through Adaptive BAPI model. This bapi doesnt take any input parameters but returns 7 tables with data.
So, My problem here is i am not getting output in the 7 tables. i am sending a dummy input and executing on the input elements modelobject.
Could anyone ddid this scenario.. ie., calling/executing teh BAPI call which doesnt have any input s but expects output.
Here is what i have
<i><b>Z_Sales_Order_Header_Input bapiSalesOrderHeader=new Z_Sales_Order_Header_Input();
int ilSalesOrderTypeSize=0;
Thanks & Regards,
Raghavendra Pothula

Hi Raghavendra,
If I read you correctly, you are printing the size of the root output node (Z_Sales_Order_Header_Output) and not that of the output node inside your 'Z_Sales_Order_Header_Input' node. When you execute the RFC, the output node inside the 'Z_Sales_Order_Header_Input' node gets populated. so try printing the size of the  'Salesordertype' node  inside the 'Z_Sales_Order_Header_Input' node.
---output (this is the default name)
Infact there is no need to create the 'Z_Sales_Order_Header_Output' node itself in the controller or view.
Hope this helps,
Best Regards,

Similar Messages

  • What is AT&T doing for its customers regarding the so-called Android Hack?

    What is AT&T doing for its customers regarding the so-called Android Hack? I understand this hack was discovered back in April and we're just getting news reports about it now. Wow, so much for protecting your customers, right? When will a fix/resolution be deployed?

    Bump!  Would like to know Too!

  • Regarding the bapi BAPI_OUTB_DELIVERY_CHANGE

    Hi all,
    Iam using the bapi 'BAPI_OUTB_DELIVERY_CHANGE' to change the deliveries..However i need to update three header fields which are not avaialble in the i have added those three fields to the extension structure ..Now i have to update them to the database table....I found one badi 'SMOD_V50B0001' but this is not triggered which we use the unable to upload the data..can anyone suggest how to update the above three header fields.

      Try to use the FM 'WS_DELIVERY_UPDATE'.

  • Suppress the Information message during BAPI Call

    Hi, I am getting the information message pop up during the BAPI Call "BAPI_BUS2054_CREATE_MULTI". Is there any possiblity to suppress the message?

    use call function with destination. Here is a short example:
    REPORT  zhabitest.
      et_return LIKE bapiret2 OCCURS 0.
          et_return = et_return.
      ele_return LIKE bapiret2,
      rc LIKE sy-subrc.
    CLEAR rc.
    LOOP AT et_return INTO ele_return.
      IF ( ele_return-type = 'E' )     "error
         OR ( ele_return-type = 'A' ). "abort
        rc = 8.
      WRITE: / 'Call OK'.
      WRITE: / 'Call error'.
    And the function is here:
    FUNCTION ztest.
    *"*"Lokale Schnittstelle:
    *"  TABLES
      MESSAGE i208(00) WITH 'Separate I/O and processing!'.
      GET TIME.
        ele_return TYPE bapiret2.
    * return error randomly
      IF sy-uzeit+5(1) CA '13579'.
        ele_return-type = 'E'.
        APPEND ele_return TO et_return.
    Pay attention to the documentation of call with destination (db commit).
    Walter Habich

  • Bapi call in abap proxy reaching dialog timeout in async scenario

    Hi all,
    We have an XI interface to create sales orders. Legacy app sends a soap message async to XI with a group of orders. XI sends this group of orders to an Abap proxy async on ECC side. Into this Abap proxy we have a loop to process each order received in the group with BAPI_SALESORDER_CREATEFROMDAT2. Ending the loop, abap proxy start another async process to send the response to XI with an outbound abap proxy, and the response is redirected by XI to Legacy app.
    The problem is, this group of orders can have two or two thousand orders... so, the async process guarantee that no timeout limit will be reached. This is working for the whole process. But when this BAPI is creating an order, the time out of BAPIs execution seems to be the same as the timeout of dialog processes (now set to 10 minutes). This is our problem. Some orders spend more than 10 minutes to process (orders with five hundreds items, for example)... when this occurs, BAPI throws a time out reached error and the async process stops on the inbound queue with status sysfail.
    We are now trying to understand why this timeout is been triggered by the BAPI. As it is running into an Async process, it should execute without any kind of timeout limits...
    If anybody has any idea, please, help us.
    Thank you.

    May be I was not so clear... the total spent time in the process can be many many hours, days, etc... no timeout is reached. I can post 10.000 orders, no timeout is reached. The problem is that if the processing of only one order with BAPI_SALESORDER_CREATEFROMDAT2 takes longer than 10 minutes, then the timeout is reached. This is the strange part. The processing of the bapi seems to get the same timeout of dialog processes, we already tested increasing the dialog process timeout and the timeout of bapi execution was the same...
    We already monitor on SE66 to see if it opens a dialog process to execute the bapi call function, but it does not.
    If anyone has any tip, please, provide us.

  • Not getting a reply back from a BAPI call

    Hi all;
    I am trying to call a BAPI from xMII which has its input parameter as  from and to dates.I passed in the dates in format DDMMYYYY but am unable to get a reply back from BAPI.
    Same thing is working when i execute the BAPI with the same parameter in R/3 system.
    Please help.

    Did u hv defined Transaction Input parameter with Data Type DateTime which is used to be passed to BAPI request item.
    Pls do check the LastErrorMessage using Tracer (see the tracer logs after hitting F5/F6)
    IlluminatorDocument(With one string param defined)
    SAPJCOInterface(With BAPI call and input param passed in date format)
    <b>Tracer (LastErrorMessage mapped to the mesage) </b>
    IlluminatorRow(Reply from bapi mapped to output param)
    One thing more, y r u not using Repeater action which is used to loop the response from BAPI call and within the loop, use Row action to append the response item the XML Document defined in the first sequence. (Hope, u remember my that guided doc in some prvious thread posted to u where full guide with steps are provided)

  • The inbound calls to our call center is drop after putting it on hold or transfer

    Dear All;    
    Good day  
    The inbound calls to our call center is drop after putting it on hold or transfer the call to another agent. The MOH file is playing till 21 sec only then call drop . the agent cant resume the call again. The MOH file is running from Gateway (multicast).
    No problem in outbound calls.
    I urgent need you help
    Should you require any more information , please do not hesitate to contact me.
    Thanks & Best Regards,
    Muhammad Fathy,
    IT Network Manager
    A subsidiary of Intesa Sanpaolo Group
    Head office: B210-F1, Smart Village , KM 28 Cairo-Alex Desert Road, Egypt.
    Cell:      +201017288844.
    Office:  +202-35311300   Ext: 8090.
    eMail:   [email protected]
    i To maintain a paperless environment, please don't print this e-mail unless you really need to.

    Typically you have a codec or media resource issue to track down.  IE, MTP, region, location, gateway trunk to trunk to call or something in that area.   Bypass UCCX and do the same call without this app... does it happen with a normal call?


    We have a sales order workflow for exceptional demand.
    In one of the steps of the workflow,the corresponding task executes in background.
    Sales Order Change BAPI is called within this task.
    Now the problem is that in case the sales order is locked for execution by some other user, the BAPI call returns a message of type 'E'.
    Currently we send a mail to the concerned people to indicate that the sales order change has failed. However the users are concerned, since there is no immediate feeback on the errors.
    Is there any way that the user's can be informed instantly that an error has occured and also a retry option so that the BAPI call can be reexecuted at a later time.

    You can do this in two ways
    1. Put the BAPI call after a WHILE loop, that always checks for SY-SUBRC and within it you call the FM to lock the order
    2. Do this in workflow by using the return message type E to start the same task with some delay, say 30 mins or so...
    Good Luck

  • Problem facing during BAPI call for an inbound interface.

    I have requirement where in i need to make a BAPI call from SRM system using RFC adapter.
    After importing the BAPI(Z_INV_REF_PO) in the Integration Repository the structure looks to be a follws,
    2.Response and
    3.Exception (fault) Message types.
        In my BPM i did a transformation for my source structure with BAPI request. But while doing a BAPI call it throws me Application error as follows,
    RFC adapter is working fine.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
    - <SAP:Error xmlns:SAP="" xmlns:SOAP="" SOAP:mustUnderstand="1">
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="urn:sap-com:document:sap:rfc:functions">Z_INV_REF_PO.Exception</SAP:ApplicationFaultMessage>
      <SAP:Stack />
    Please help me out on this. Itz very urgent

    As the error is Applcation_error, the data reached the target system but the BAPI call fails. So you mignt not be providing all the mandatory fields to the BAPI.
    Perform a standalone testing of your BAPI, with the data being passed from XI See if the BAPI call is successful..
    Hope this helps you.
    Siva Maranani.

  • Problem regarding the creation of sales order using bapi.

    Hai all,
    I am creating sales order using bapi but i am, get following error messages :
    E       VP   112       Please enter sold-to party or ship-to party
    E       V4   219       Sales document  was not changed
    I have entered all the parameters.
    my program is as follows :
    *& Report  ZSD_SALES_ORDER
    *table definitions
    TABLES:vbak,      "Sales Document: Header Data
            knvv,     "Customer Master Sales Data
            mara,     "General Material Data
            t001l,    "Plants/Branches
            mvke,     "Sales Data for Material
            vbap,     "Sales Document: Item Data
            konv.     "Conditions (Transaction Data)
    *type for upload data
    TYPES :BEGIN OF ty_upload,
           matnr(20) TYPE c,                  " Old material number
           quantity(20) TYPE c,               " Cumulative order quantity in sales units
          value(20) TYPE c,                  " Condition value
                 value TYPE konv-kwert,                  " Condition value
    END OF ty_upload.
    *type for final output table
    TYPES :BEGIN OF ty_main,
               bismt  TYPE mara-bismt,    "Old material number
               matnr  TYPE vbap-matnr,    "Material Number
               kunnr  TYPE vbak-kunnr,    "customer number
               auart  TYPE vbak-auart,    "Sales Document Type
               vkorg  TYPE vbak-vkorg,    "Sales Organization
               vtweg  TYPE vbak-vtweg,    "Distribution Channel
               spart  TYPE vbak-spart,    "Division
               vbeln  TYPE vbak-vbeln,    "Sales document
               werks  TYPE marc-werks,    " Plant
               lgort  TYPE mard-lgort,    "Storage Location
               posnr  TYPE vbap-posnr,    "Sales Document Item
               parvw  TYPE vbpa-parvw,    "Partner function
               kwmeng TYPE vbap-kwmeng,   "Cumulative order quantity in sales units
               kschl  TYPE konv-kschl,    "Condition type
              kwert  TYPE konv-kwert,    "Condition value
              kwert(20)  TYPE c,    "Condition value
               waers  TYPE konv-waers,    "Currency
         END OF ty_main.
    *type for old material number
    TYPES: BEGIN OF ty_matnr,
           matnr TYPE mara-matnr,
           bismt TYPE mara-bismt,
           END OF ty_matnr.
    *type for order number
    TYPES :BEGIN OF ty_output,
           vbeln  TYPE vbak-vbeln,       "Sales Document
         END OF ty_output.
        Constants                Begin with C_                           *
    c_zpmu(4) TYPE c VALUE 'ZPMU',
    c_zpmm(4) TYPE c VALUE 'ZPMM'.
    DATA: c_ch(1) TYPE c VALUE 'X'.
        Data                     Begin with W_                           *
    *global data for validations
    DATA: w_count TYPE i,
          w_vkorg TYPE vbak-vkorg,
          w_vtweg TYPE vbak-vtweg,
          w_spart TYPE vbak-spart,
          w_werks TYPE t001l-werks,
          w_check TYPE c,
          w_itemno TYPE posnr_va,
         W_COND TYPE C.
          w_cond(3) TYPE c.
        Internal tables          Begin with IT_                          *
    *internal table definitions
    DATA : it_upload TYPE STANDARD TABLE OF ty_upload ,
           wa_upload TYPE ty_upload.
    DATA : it_main TYPE STANDARD TABLE OF ty_main,
           wa_main TYPE ty_main.
    DATA: it_matnr TYPE STANDARD TABLE OF ty_matnr,
          wa_matnr TYPE ty_matnr.
    DATA : it_output TYPE STANDARD TABLE OF ty_output.
    Internal table for BAPI.
    DATA: it_bapisdhd1  TYPE STANDARD TABLE OF bapisdhd1,        "Sales and Distribution Document Header
          wa_bapisdhd1 TYPE bapisdhd1.
    DATA: it_bapisditm  TYPE STANDARD TABLE OF bapisditm ,       "Sales and Distribution Document Item
          wa_bapisditm TYPE bapisditm.
    DATA: it_bapiparnr  TYPE STANDARD TABLE OF bapiparnr,        "SD Document Partner: WWW
          wa_bapiparnr TYPE bapiparnr.
    DATA: it_bapischdl  TYPE STANDARD TABLE OF bapischdl,       "Schedule Lines
          wa_bapischdl TYPE bapischdl.
    DATA: it_bapicond TYPE STANDARD TABLE OF bapicond,       "Communication Fields for Maintaining Conditions in the Order
          wa_bapicond TYPE bapicond.
    DATA: it_bapiret2 TYPE STANDARD TABLE OF bapiret2,        "Return Parameter
          wa_bapiret2 TYPE bapiret2.
          Parameters              Begin with PR_                        *
    *selection screen definition
    PARAMETERS: pr_vkorg TYPE vbak-vkorg OBLIGATORY,
                pr_vtweg TYPE vbak-vtweg  OBLIGATORY,
                pr_spart TYPE vbak-spart  OBLIGATORY,
                pr_kunnr TYPE kna1-kunnr  OBLIGATORY,
                pr_werks TYPE marc-werks  OBLIGATORY,
                pr_lgort TYPE mard-lgort  OBLIGATORY.
    PARAMETERS: pr_auart TYPE vbak-auart OBLIGATORY,
                            pr_augru TYPE vbak-augru.
    PARAMETERS : pr_file TYPE ibipparms-path OBLIGATORY.
          At selection-screen                                           *
      PERFORM f006_validate_vkorg.
      PERFORM f007_validate_vtweg.
      PERFORM f008_validate_spart.
      PERFORM f009_validate_kunnr.
      PERFORM f010_validate_werks.
      PERFORM f011_validate_lgort.
    *for f4 help----
      PERFORM f003_f4_help.
          S T A R T   O F   S E L E C T I O N                           *
    *for material ,quantity and value upload
      PERFORM f001_upload_file.
    *get data
      PERFORM  f003_get_data.
    *for check the data
      PERFORM f002_check_data .
      PERFORM f004_process.
    *for posting
      PERFORM f005_posting.
          E N D       O F   S E L E C T I O N                           *
    *&      Form  f001_upload_file
          upload file
    FORM f001_upload_file .
      DATA : lw_fname TYPE string.
      CLEAR lw_fname.
      lw_fname = pr_file.
      REFRESH it_upload.
          filename                = lw_fname
          filetype                = 'ASC'
          has_field_separator     = c_ch
          data_tab                = it_upload
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          OTHERS                  = 17.
      IF sy-subrc <> 0.
      LOOP AT it_upload INTO wa_upload.
       wa_upload-value = ( wa_upload-value ) / 10.
       MODIFY it_upload FROM wa_upload.
    ENDFORM.                    "F001_UPLOAD_FILE
    *&      Form  f003_f4_help
          f4 help
    FORM f003_f4_help .
          program_name  = syst-cprog
          dynpro_number = syst-dynnr
          field_name    = ' '
          file_name     = pr_file.
    ENDFORM.                    " f003_f4_help
    *&      Form  check_data
    FORM f002_check_data .
      DATA: lw_lines TYPE i.
      DESCRIBE TABLE it_main LINES lw_lines.
      IF lw_lines LE 0.
      SELECT a~matnr
             a~bismt FROM mara AS a INNER JOIN mvke AS b
                   ON amatnr = bmatnr
                   INTO CORRESPONDING FIELDS OF TABLE it_matnr
                   FOR ALL ENTRIES IN it_main
                   WHERE a~bismt = it_main-bismt.
      IF sy-subrc = 0.
        LOOP AT it_main INTO wa_main.
          CLEAR : wa_matnr.
          READ TABLE it_matnr INTO wa_matnr WITH KEY bismt = wa_main-bismt.
          IF sy-subrc = 0.
            MOVE: wa_matnr-matnr TO wa_main-matnr.
          MODIFY it_main FROM wa_main TRANSPORTING matnr WHERE bismt = wa_main-bismt.
       MESSAGE e000(zmsd) WITH  text-001.
    ENDFORM.                    "CHECK_DATA
    *&      Form  F009_validate_vkorg
    FORM f006_validate_vkorg .
      CLEAR w_vkorg.
      SELECT SINGLE vkorg
          INTO w_vkorg FROM tvko
          WHERE vkorg EQ pr_vkorg.
      IF sy-subrc <> 0.
        MESSAGE e000(zmsd) WITH text-012 pr_vkorg.
    ENDFORM.                    " F009_validate_vkorg
    *&      Form  f007_validate_vtweg
    FORM f007_validate_vtweg .
      SELECT SINGLE vtweg
           INTO w_vtweg FROM tvtw
           WHERE vtweg EQ pr_vtweg.
      IF sy-subrc <> 0.
        MESSAGE e089(zmsd).
    ENDFORM.                    " f007_validate_vtweg
    *&      Form  f008_validate_spart
    FORM f008_validate_spart .
      SELECT SINGLE spart
            INTO w_spart FROM tspa
            WHERE spart EQ pr_spart.
      IF sy-subrc <> 0.
        MESSAGE e087(zmsd).
    ENDFORM.                    " f008_validate_spart
    *&      Form  F010_validate_kunnr
    FORM f009_validate_kunnr .
      DATA: l_kunnr TYPE kunnr.
      CLEAR: w_vkorg, w_vtweg,w_spart.
      SELECT  SINGLE  kunnr FROM  knvv
             INTO l_kunnr
             WHERE  kunnr  = pr_kunnr
             AND    vkorg  = pr_vkorg
             AND    vtweg  = pr_vtweg
             AND    spart  = pr_spart.
      IF sy-subrc <> 0.
       MESSAGE e000(zmsd) WITH text-010 pr_kunnr text-011 pr_vkorg  .
    ENDFORM.                    " F010_validate_kunnr
    *&      Form  f010_validate_werks
    FORM f010_validate_werks .
      SELECT SINGLE werks
            INTO w_werks FROM t001w
            WHERE werks EQ pr_werks.
      IF sy-subrc <> 0.
        MESSAGE e088(zmsd).
    ENDFORM.                    " f010_validate_werks
    *&      Form  F011_validate_lgort
    FORM f011_validate_lgort .
      CLEAR:w_werks .
      SELECT   SINGLE werks  FROM  t001l
             INTO w_werks
             WHERE  werks  = pr_werks
             AND    lgort  = pr_lgort.
      IF sy-subrc <> 0.
        MESSAGE e000(zmsd) WITH text-007 pr_lgort text-008 pr_werks .
    ENDFORM.                    " F011_validate_lgort
    *&      Form  f003_get_data
    FORM f003_get_data .
      CLEAR wa_main.
      REFRESH it_main.
      LOOP AT it_upload INTO wa_upload.
        CLEAR : wa_main.
        MOVE: wa_upload-matnr     TO  wa_main-bismt,
              wa_upload-quantity  TO  wa_main-kwmeng,
              wa_upload-value     TO  wa_main-kwert,
              pr_vkorg            TO  wa_main-vkorg,
              pr_vtweg            TO  wa_main-vtweg,
              pr_spart            TO  wa_main-spart,
              pr_kunnr            TO  wa_main-kunnr,
              pr_werks            TO  wa_main-werks,
              pr_lgort            TO  wa_main-lgort.
        APPEND wa_main TO it_main.
    ENDFORM.                    " f003_get_data
    *&      Form  f004_process
    FORM f004_process .
    CLEAR w_check.
    LOOP AT it_main INTO wa_main.
       IF wa_main-matnr = ''.
         WRITE:/ text-006,
         w_check = 1.
       IF wa_main-kwmeng = 0.
         WRITE:/ text-005,
         w_check = 1.
       IF    pr_auart <> 'ZM01'.
         IF wa_main-kwert IS INITIAL.
           WRITE:/ text-004,
           w_check = 1.
    ENDFORM.                    " f004_process
    *&      Form  f005_posting
    FORM f005_posting .
      CLEAR: w_itemno,
      w_itemno = 10.
      w_cond = 1.
    IF w_check = '' OR w_check = 1.
      wa_bapisdhd1-doc_type = pr_auart.
      wa_bapisdhd1-ord_reason = pr_augru.
      LOOP AT it_main INTO wa_main.
        IF w_cond = 1.
          CLEAR: it_bapiret2,
          MOVE: wa_main-vkorg TO wa_bapisdhd1-sales_org,
                wa_main-vtweg TO wa_bapisdhd1-distr_chan,
                wa_main-spart TO wa_bapisdhd1-division.
          wa_bapisdhd1-wbs_eleM = 'Y561.1'.
              INPUT         = pr_kunnr
             OUTPUT        = pr_kunnr.
          wa_bapisdhd1-PURCH_NO_S = pr_kunnr.
          wa_bapisdhd1-PURCH_NO_C = pr_kunnr.
        MOVE: w_itemno TO wa_bapisditm-itm_number,
               wa_main-matnr TO wa_bapisditm-material,
              wa_main-BISMT TO wa_bapisditm-material,
              wa_main-werks TO wa_bapisditm-plant,
              wa_main-lgort TO wa_bapisditm-store_loc.
                           wa_bapisditm-target_qty = '10'.
        wa_bapisditm-PURCH_NO_S = pr_kunnr.
        wa_bapisditm-PURCH_NO_C = pr_kunnr.
        APPEND wa_bapisditm TO it_bapisditm.
        IF w_cond = 1.
          wa_bapiparnr-partn_numb = pr_kunnr.
          wa_bapiparnr-itm_number = 10.
            wa_bapiparnr-partn_role = 'SP'.
          APPEND wa_bapiparnr TO it_bapiparnr.
          wa_bapiparnr-partn_role = 'AG'.
          APPEND wa_bapiparnr TO it_bapiparnr.
          CLEAR wa_bapiparnr-partn_role.
                   wa_bapiparnr-partn_numb = pr_kunnr.
          wa_bapiparnr-partn_role = 'RE'.
          APPEND wa_bapiparnr TO it_bapiparnr.
          CLEAR wa_bapiparnr-partn_role.
                   wa_bapiparnr-partn_numb = pr_kunnr.
          wa_bapiparnr-partn_role = 'RG'.
          APPEND wa_bapiparnr TO it_bapiparnr.
          CLEAR wa_bapiparnr-partn_role.
                   wa_bapiparnr-partn_numb = pr_kunnr.
          wa_bapiparnr-partn_role = 'WE'.
          APPEND wa_bapiparnr TO it_bapiparnr.
        wa_bapischdl-itm_number = w_itemno.
        wa_bapischdl-req_qty    = wa_main-kwmeng.
         wa_bapischdl-PURCH_NO_S = pr_kunnr.
        APPEND wa_bapischdl TO it_bapischdl.
        wa_bapicond-itm_number = w_itemno.
        wa_bapicond-cond_type  = 'ZECL'.
         IF    ( wa_bapisdhd1-doc_type = 'ZPMU' ) OR ( wa_bapisdhd1-doc_type = 'ZPMM' ).
           wa_bapicond-cond_type  = 'ZVAL'.
           wa_bapicond-cond_type  = 'ZMRP'.       "+PK12122006
        wa_bapicond-cond_value = wa_main-kwert.
        APPEND wa_bapicond TO it_bapicond.
        w_itemno = w_itemno + 10.
        w_cond   = w_cond + 1.
          order_header_in     = wa_bapisdhd1
          salesdocument       = SALESDOCUMENTIN
          return              = it_bapiret2
          order_items_in      = it_bapisditm
          order_partners      = it_bapiparnr
          order_schedules_in  = it_bapischdl
          order_conditions_in = it_bapicond.
          wait = c_ch.
      LOOP AT it_bapiret2 INTO wa_bapiret2.
        DATA : w_err(100) TYPE c,
        w_matnr TYPE matnr.
        IF wa_bapiret2-type = 'E' AND wa_bapiret2-id = 'V1' AND wa_bapiret2-number = 392.
          UNPACK wa_bapiret2-message_v1 TO w_matnr.
          READ TABLE it_matnr INTO wa_matnr WITH KEY matnr = w_matnr.
          IF sy-subrc EQ 0.
            CONCATENATE text-013 wa_matnr-bismt INTO w_err SEPARATED BY space.
            MESSAGE w_err TYPE 'S'.
        IF WA_BAPIRET2-TYPE = 'S'.  " Comment
          WRITE: 40 TEXT-009, WA_BAPIRET2-MESSAGE_V2+0(10).
    ENDFORM.                    " f005_posting
    I have given all the necessary parameters. it is telling that error is in parameter
    I have checked it.
    i have assigned purch_no_s and purch_no_c of the structure BAPISDHD1(ORDER_HEADER_IN)
    in the bapi with customer number.
    and also i have assigned the partnumber of the structure BAPIPARNR ORDER_PARTNERS
    in the bapi with customer number.
    but still , it is diplaying the error message, please enter the sold to or ship to party number.
    how to resolve this error.
    this is urgent requirement.
    points will be awarded.
    thanking u in advance,

    Did u have a look at the standard programs which make use of BAPI_SALESORDER_CREATEFROMDAT1
    Heres a list...
    <b>Please mark helpful answers</b>

  • How to do a taskflow call without pushing an entry on the page flow stack

    I have a use case where I have to do a task flow call with parameters as the final state of my task flow. That is, I don't want he called task flow to ever return a value so I don't need the called task flow to be stacked over the calling one, just replace it and close the calling task flow.
    Normally, I think the good way to do that is to use an URL view activity, but in my specific case, some of the taskflow's input parameters have to be passed by reference so encoding them in a stateless way within an URL is not very exciting as it would imply pushing an id of the object that would need to be stored in the request or another shared area.
    Is there any good practice or some other method I'm not aware of to achieve this?
    ~ Simon

    Hi Simon!
    If I understand you in a right way, the way to achieve this is to wrap both taskflows (calling and called as you refer them) in one external taskflow. This way, the your "calling" taskflow should return to wrapper all params you need to pass to "called" (and then you call "called" from wrapper by passing these params you got on return from "caller"). That way, the "called" is not stacked over the "calling".
    Of course, you still have both "calling" and "caller" stacked over wrapper, but that is a cost of current subroutine-style taskflow invocation mechanism provided. Basically, there is no "Go To" in taskflows (beside Url calls but without params passing – well, that is a true "Go To").
    On second thought, I'm not 100% sure but you may investigate datacontrols sharing options. If both "calling" and "called" share datacontrols with wrapper, then the stacking overhead of wrapping is negligible and you almost have your use-case.

  • Consuming an RFC Call Using the BAPI eWay

    Greetings all,
    We are trying to set up a scenario in which we have a custom RFC function that we are calling synchronously using the BAPI eWay. Here, an ABAP program calls an RFC which is like a proxy on the JCAPS server. On the JCAPS side, we are wanting to map the RFC onto a Web Service call and pass the results back as the exporting parameters of the RFC. While the examples demonstrate the use of an asynchronous function module such as IDOC_INBOUND_ASYNCHRONOUS, it is not clear to me how to work with synchronous calls. Any information would be greatly appreciated. Thanks.
    Best Regards,
    James Wood
    Bowdark Consulting, Inc.
    [email protected]

    I have a similar (if not identical) problem. Chris, your reply to James is talking about the process originating within JCaps. In my scenario (and it sounds like James' too), the process is originating from SAP. What I'm trying to do is this:
    SAP calls to my JCD - this is the part that I'm having trouble with
    My JCD does something with the data sent to it from SAP (call a database or whatever)
    The JCD responds back to SAP so that the request/reply cycle can complete and the SAP program has what it needs
    When I create an OTD object in JCaps using my RFC, there doesn't seem to be a way to make the JCD that I want to create use that OTD as a source for the input message.
    James, if I'm way off base here, let me know and I'll go get my own thread. :)
    Any help or direction would be appreciated. I've Googled this to death and have come up short.

  • Passing input parameters to the method call in ADF task flow.

    I have the following use case:
    There is a task flow with 2 jspx pages. In the first page I have 2 input search parameters and search button. the search button calls the webservice data control execute (GET_ACCOUNTOperation) method .
    Displaying the search results in the same page is not a problem , but my requirement is that the search results are to be displayed in the second page in tabular form.
    To achieve this, I dragged the execute method as the method call in the task flow and specified the input parameters for the method call (right click and add parameters) . I am getting the following exception :
    javax.el.MethodNotFoundException: Method not found: GET_ACCOUNTOperation.execute(java.lang.String, java.lang.String)
         at com.sun.el.util.ReflectionUtil.getMethod(Unknown Source)
         at com.sun.el.parser.AstValue.getMethodInfo(Unknown Source)
         at com.sun.el.MethodExpressionImpl.getMethodInfo(Unknown Source)
         at oracle.adf.controller.internal.util.ELInterfaceImpl.getReturnType(
         at oracle.adfinternal.controller.activity.MethodCallActivityLogic.execute(
         at oracle.adfinternal.controller.engine.ControlFlowEngine.executeActivity(
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(
         at oracle.adfinternal.controller.engine.ControlFlowEngine.routeFromActivity(
         at oracle.adfinternal.controller.engine.ControlFlowEngine.performControlFlow(
         at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleAdfcNavigation(
         at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleNavigation(
         at org.apache.myfaces.trinidadinternal.application.NavigationHandlerImpl.handleNavigation(
         at com.sun.faces.application.ActionListenerImpl.processAction(
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(
         at javax.faces.component.UIViewRoot.broadcastEvents(
         at javax.faces.component.UIViewRoot.processApplication(
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(
         at javax.faces.webapp.FacesServlet.service(
         at weblogic.servlet.internal.StubSecurityHelper$
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(
         at weblogic.servlet.internal.ServletStubImpl.execute(
         at weblogic.servlet.internal.TailFilter.doFilter(
         at weblogic.servlet.internal.FilterChainImpl.doFilter(
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(
         at weblogic.servlet.internal.FilterChainImpl.doFilter(
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(
         at weblogic.servlet.internal.FilterChainImpl.doFilter(
         at Method)
    even though the execute method is there and the service is up and running. I am not sure whether its the correct way of doing it. Please shed some light on how to solve this use case
    Some additional info:
    Under the data controls pallete, the GET_ACCOUNTOperation method has a parameters section , which has "part" (java.lang.Object) as
    the input parameter.

    thanks for the quick turn-around. Jdev version that i am using is Studio Edition Version And i am using SOAP. Isnt there a way without using a backing bean? I am planning to use it as a portlet. Would'nt creating a backing bean cause a problem in that case?? Also i am confused here . The method that i am dragging is GET_ACCOUNTOperation(Object). I tried passing the hashmap . It gave the following exception :
    javax.el.MethodNotFoundException: Method not found: GET_ACCOUNTOperation.execute(java.util.HashMap)

  • Designing the scenario of multiple BAPI call in a loop in BPM

    I need some help in designing this scenario. I do not have the luxury to write a custom BAPI. Here is my scenario. A typical async>sync>async with little modification
    1. Async call to BPM with input payload
    2. BPM calla BAPI_SALESORDER_GETLIST with customer number and sales organization from input payload and returns a list sales order items (Sync)
    3. I need to call the BAPI_SALESORDER_GETSTATUS for each sales order number that I got from the first call (Sync?). Not sure how this has to be designed
    4. Transfer the  data through HTTP adapter (Async)
    I am able to perform step 1, 2 and 4 (of course only line item data). I need some pointer help on how to incorporate it in step 3 of BPM.

    3. I need to call the BAPI_SALESORDER_GETSTATUS for each sales order number that I got from the first call (Sync?). Not sure how this has to be designed
    for this the BPM should have a block after the Sync the block have your send step....the mode of the block will be ForEach....
    Check this blog for more info: /people/milan.thaker/blog/2008/08/05/modes-in-block-step-of-bpm
    Check this similar example from help:
    Edited by: abhishek salvi on Jul 1, 2009 10:57 AM

  • Problem with mutiple BAPI calls during the commit

    Hi all,
    I am trying to create accounts for a given partner i the transaction F9K1 using the BAPI BAPI_BKK_ACCNT_CREATE. After calling the BAPI I am committing it too.
    The problem is if I try to create multiple accounts like RCA, ACA, MCA, IOE and so on, the first time the BAPI is called to create RCA account it is successful an it is even committing. When I call the BAPI to create the the ACA account the return table from the BAPI shows success message but the commit fails. If I restart the program and try creation of accounts now the RCA will throw a error msg saying account already exist, ACA account will be created and then the MCA account creation fails in the same manner explained above.
    I see the issue is with multiple BAPI calls and I tried using all sort of methods like clearing buffers, start new task in local and wait command and all.  But none of them seems to be working for me.
    Can anyone please guide me on how I can overcome this problem.

    BAPI :
    Use this method to create an account in Bank Customer Accounts. This method returns the following values:
    Identification details for the newly created account such as the internal and the external account number, and the bank area details
    A table containing error messages
    To create an account by using this method, you must specify values for the import parameters Bank Area (BANKAREA) and Product (PRODUCTNAME).
    Note: You must also specify a value in the External Account Number (EXTERNALACCOUNTNR) parameter if you have defined an external number range for the bank .

Maybe you are looking for

  • Commandtoolbarbutton enabling/disabling based on tree node selection

    i am using the tree tag to generate a set of nodes and every node is a command link.... i have a set of commandtoolbarbuttons on top of the tree... the functionality i am trying to obtain is on press of the tree node( i.e, command link ) the commanto

  • Missing connection of Material in Plant to Material Ledger

    Hi, We encountered an error when doing GR for PO without Account assignment. Error: Missing connection of Material in plant to the material ledger. Issue: Not able to post goods receipt for materials for particular Plant D059 with HIBE material type

  • Unable to connect on Mac using latest version.

    Skype just stopped working today.  I signed out.  Now it won't connect.  Cell phone works fine. I'm running OSX 10.10.3 and all software is up-to-date.  I updated Skype and followed the instructions here.  No luck. Rebooting did not help.  Nothing in

  • UDF for all inputs (fix microsoft smart quotes)

    Does anyone know how to add a UDF for all inputs and outputs to a query? I am trying to use the function to remove all smart quotes from being displayed and don't want to change all the pages on the site. The UDF I'm using is the following: <CFSCRIPT

  • Explain the IT

    hi experts, i am working in manufacturing sector what kind of difference we can face if the company is IT sector can u explain the q-tickets and the difference between the company's like IT  and Manufacturing sap mm role and q tickets thanks ganesh