Help- Problem witth BAPI Confirmation

Hi gurus,
Please , i need some help with some problems i am having with BAPIs for confirmations.
I have found this one : BAPI_PRODORDCONF_GET_TT_PROP, to get the propose data, but i i can't figured out how to fill the goodmovements table. I need to do this, because i want to know the proposal of goodmovements, just exactly that sap's does when i enter to the tx CO11N, enter the YIELD quantity and then press "goods movements" button.
Please, is there some trick or something to make this work? ( i have already put "X" in the import "PROPOSE - GOODMOVEMENTS" , but still is not working).
If get this, i could put this values in BAPI_PRODORDCONF_CREATE_TT and that's it... i suppose.
Please help me
Thanks a lot!

Hi ,
Before going into BAPI's , Auto goods movement happens in two ways.
1. check whether Auto goods receipt is checked in T.code OPKP.
2. The other way is to assign a Control Key to the operation which has a Auto GR checked.
Please check these two and then trigger confirmation using your BAPI.
Hope this helps.
Best Regards.

Similar Messages

  • Help - Problem with BAPI confirmation (co11n)

    Hi gurus,
    Please , i need some help with some problems i am having with BAPIs for confirmations.
    I have found this one : BAPI_PRODORDCONF_GET_TT_PROP, to get the propose data, but i i can't figured out how to fill the goodmovements table. I need to do this, because i want to know the proposal of goodmovements, just exactly that sap's does when i enter to the tx CO11N, enter the YIELD quantity and then press "goods movements" button.
    Please, is there some trick or something to make this work? ( i have already put "X" in the import "PROPOSE - GOODMOVEMENTS" , but still is not working).
    If get this, i could put this values in BAPI_PRODORDCONF_CREATE_TT and that's it... i suppose.
    Please help me
    Thanks a lot!

    Hi ,
    Before going into BAPI's , Auto goods movement happens in two ways.
    1. check whether Auto goods receipt is checked in T.code OPKP.
    2. The other way is to assign a Control Key to the operation which has a Auto GR checked.
    Please check these two and then trigger confirmation using your BAPI.
    Hope this helps.
    Best Regards.

  • Problem with BAPI BAPI_REQUISITION_CREATE

    Hello,
    I have problems with BAPI BAPI_REQUISITION_CREATE. I need to create Purchase requisition for services. If I use BAPI BAPI_REQUISITION_CREATE, Purchasing requisition is created, but field NETWR in table EBNK is 0. If I create purchasing requisition manualy using transaction ME51N, field NETWR in table EBNK is filled with correct price.
    Can you pls. help me, what do I wrong in calling BAPI_REQUISITION_CREATE?
    Thanks&regards,
    Jirka

    Not sure if you got your answer or went to OSS for a resolution. But, as I was searching OSS for my issue, I came across the following note:
    Note 1498435 - BAPI_REQUISITION_CREATE: EBKN-NETWR is not updated

  • IDOC problem during goods confirmation in SRM

    Hi guys,
    I am facing some problem during goods confirmation in SRM.I am getting an error relate to IDOCs.i have setup the desired message and partner ID for goods confirmation in SRm but the IDOC gets stuck with the code 30 and the idicator is yellow.But when i manually reproces trhe IDOC after that it works fine.I dont want to process it manually.Can anyone help me out with the possible source of problem.
    Regards,
    Pawan.

    Hi
    Which SRM version are you using ?
    <b>Please see related links -></b>
    Note 549846 - FAQ: Goods receipt confirmation EBP
    Note 847250 - IDoc error remains in alert monitor although IDoc is ok
    <u>Othere related OSS Notes -></u>
    Note 1049536 Incorrect reference doc year when deleting goods receipt
    Note 683848 Problems with delivery note number with upper/lower case
    Note 747422 Replace internal units with ISO codes - modification
    Note 545657 Error in ERS procedure in back end: Delivery note missing
    Note 338985 BBPCF & IV: incorrect IDocs in backend system
    Note 561881 Posting of returns for partial confirmation not possible
    Note 550884 Check of return delivery and reversal against back end
    Note 514669 Goods receipt cannot be posted
    Note 502869 Return delivery possible despite posted return delivery
    Note 430153 Classic scenario: Goods receipt/issue slip, bill of lading
    Note 360833 "Purchase order & is being processed", IDoc error
    Note 388601 Follow-up processing for GR/SE confirmation is not possible
    <u>Do let me know.</u>
    Regards
    - Atul

  • Problem in BAPI

    Hi Friends,
    I am having a problem in BAPI when i am executing the program i am getting a error message like this,
    <b>Error message:</b>
    144The field MARA-MEINS/BAPI_MARA-BASE_UOM(_ISO) is defined as a required field; it does not contain an entry   .
    any solutions to the above problem.
    I am sending the code along with this mail.
    <b>coding:</b>
    REPORT ZYC_BAPI_MATERIAL_CREATE .
    STRUCTURE DECLARATIONS *
    TABLES: BAPIMATHEAD, "Headerdata
    BAPI_MARA, "Clientdata
    BAPI_MAKT, "Material description
    BAPIRET2. "Return messages
    data : bapi_mara1 LIKE bapi_mara. "Client Data
    DATA:V_FILE TYPE STRING.
    DATA:
    BEGIN OF LSMW_MATERIAL_MASTER,
    MATNR(018) TYPE C, "Material number
    MBRSH(001) TYPE C, "Industry sector
    MTART(004) TYPE C, "Material type
    MAKTX(040) TYPE C, "Material description
    MEINS(003) TYPE C, "Base unit of measure
    END OF LSMW_MATERIAL_MASTER.
    INTERNAL TABLE DECLARATIONS *
    *to store the input data
    DATA: BEGIN OF it_matmaster OCCURS 0.
    INCLUDE STRUCTURE LSMW_MATERIAL_MASTER.
    DATA: END OF it_matmaster.
    *for material description
    DATA:BEGIN OF IT_MATERIALDESC OCCURS 0.
    INCLUDE STRUCTURE BAPI_MAKT .
    DATA:END OF IT_MATERIALDESC.
    *to return messages
    DATA:BEGIN OF IT_RETURN OCCURS 0.
    INCLUDE STRUCTURE BAPIRET2.
    DATA:END OF IT_RETURN.
    SELECTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-002.
    PARAMETERS:P_FILE LIKE RLGRAP-FILENAME OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK B1 .
    AT SELECTION SCREEN
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
    PROGRAM_NAME = SYST-CPROG
    DYNPRO_NUMBER = SYST-DYNNR
    FIELD_NAME = 'P_FILE'
    IMPORTING
    FILE_NAME = P_FILE.
    TO UPLOAD THE DATA *
    START-OF-SELECTION.
    V_FILE = P_FILE.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = V_FILE
    FILETYPE = 'ASC'
    HAS_FIELD_SEPARATOR = 'X'
    HEADER_LENGTH = 0
    READ_BY_LINE = 'X'
    DAT_MODE = ' '
    IMPORTING
    FILELENGTH =
    HEADER =
    tables
    data_tab = IT_MATMASTER
    EXCEPTIONS
    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.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    DATA POPULATIONS *
    LOOP AT IT_MATMASTER.
    BAPIMATHEAD-MATERIAL = IT_MATMASTER-MATNR.
    BAPIMATHEAD-IND_SECTOR = IT_MATMASTER-Mbrsh.
    BAPIMATHEAD-MATL_TYPE = IT_MATMASTER-MTART.
    BAPIMATHEAD-BASIC_VIEW = 'X'.
    refresh it_materialdesc.
    IT_MATERIALDESC-matl_desc = IT_MATMASTER-maktx.
    append IT_materialdesc.
    bapi_mara1-base_uom = 'TO'. "it_matmaster-meins.
    CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
    EXPORTING
    headdata = BAPIMATHEAD
    CLIENTDATA = BAPI_MARA
    CLIENTDATAX = BAPI_MARAx
    IMPORTING
    RETURN = IT_RETURN
    TABLES
    MATERIALDESCRIPTION = IT_MATERIALDESC.
    WRITE:/ IT_RETURN-TYPE,
    2 IT_RETURN-ID,
    22 IT_RETURN-NUMBER,
    25 IT_RETURN-MESSAGE.
    ENDLOOP.
    Regards,
    Dinesh

    Hi
    Basic Unit of Measure is required field in the material master
    You are not populating it in the Bapi
    populate it in the CLIENTDATA
    IT WILL SOLVE THE ISSUE.
    CLIENTDATA-BASE_UOM = it_matmaster-meins
    Reward points if useful
    Regards
    Anji

  • Premiere Pro CS5: please help problem with importing a file error output "there was an error decompressing audio or video"

    please help problem with importing a file error output "there was an error decompressing audio or video"

    this is related to what adobe program/version?

  • Problem in BAPI  'BAPI_SALESORDER_CHANGE'.

    Hi All,
    I am facing a problem in BAPI  'BAPI_SALESORDER_CHANGE'. My requirement is as below.
    For a particular type of Sales Order i have to update all the ship-to PO.Basically in all these PO's we have to suffix
    'old'.
    I am pasting the code which I used. I am actually displaying the return message in a table.
    The message says 'Schedule Order is saved'.
    When i go and check the SO the ship-to PO is not updated.
    Also i have one more querry.
    Is thsi BAPI to be run for each item or can i collect all items in t_item_in and then call the BAPI.
    Please guide me on this.
    Thanks in Advance,
    Saket.
    LOOP AT t_vbkd INTO wa_vbkd.
    CONCATENATE wa_vbkd-bstkd_e '-' v_po INTO v_po_ref.
    t_item_in-purch_no_c    = v_po_ref.
    t_item_inx-purch_no_c   = v_po_ref.
    t_item_inx-updateflag  = 'X'.
      APPEND t_item_in.
      APPEND t_item_inx.
    *LOOP AT t_vbak INTO wa_vbak.
    v_vbeln = wa_vbkd-vbeln.
    w_headerx-updateflag = 'U'.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
      EXPORTING
        SALESDOCUMENT               = v_vbeln
        ORDER_HEADER_INX            = w_headerx
      TABLES
        RETURN                      = t_return
        ORDER_ITEM_IN               = t_item_in
        ORDER_ITEM_INX              = t_item_inx.
    READ TABLE t_return WITH KEY type = 'E'.
      IF sy-subrc = 0.
        t_output-rmks = t_return-message.
      ELSE.
        t_output-rmks = t_return-message.
      ENDIF.
      READ TABLE t_vbak INTO wa_vbak
       WITH KEY vbeln = v_vbeln.
      t_output-vbeln = v_vbeln.
      t_output-auart = wa_vbak-auart.
      t_output-vkorg = wa_vbak-vkorg.
      t_output-bstkd_e_old = wa_vbkd-bstkd_e.
      t_output-bstkd_e_new = t_item_in-purch_no_c.
      APPEND t_output.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
       WAIT          = 'X'
    IMPORTING
      RETURN        =
    ENDLOOP.

    REPORT  ZSALESORDER_CHANGE MESSAGE-ID 38.
    PARAMETERS: p_vbeln TYPE vbap-vbeln OBLIGATORY, "Order Number
    p_posnr TYPE vbap-posnr OBLIGATORY, "Order Item
    p_etenr TYPE vbep-etenr OBLIGATORY, "Schedule Line
    p_reqqty TYPE bapischdl-req_qty OBLIGATORY. " Order Qty
    DATA: i_hdr TYPE bapisdh1,
    i_hdrx TYPE bapisdh1x,
    i_ret TYPE bapiret2 OCCURS 0 WITH HEADER LINE,
    wa_ret TYPE bapiret2.
    DATA: BEGIN OF i_sched OCCURS 10.
    INCLUDE STRUCTURE bapischdl.
    DATA: END OF i_sched.
    DATA: BEGIN OF i_schedx OCCURS 10.
    INCLUDE STRUCTURE bapischdlx.
    DATA: END OF i_schedx.
    START-OF-SELECTION.
    REFRESH: i_sched, i_schedx, i_ret.
    CLEAR: i_sched, i_schedx, i_ret.
    i_hdrx-updateflag = 'U'.
    i_sched-itm_number = p_posnr.
    i_sched-sched_line = p_etenr.
    i_sched-req_qty = p_reqqty.
    i_schedx-updateflag = 'U'.
    i_schedx-itm_number = p_posnr.
    i_schedx-sched_line = p_etenr.
    i_schedx-req_qty = 'X'.
    APPEND i_sched.
    APPEND i_schedx.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
    salesdocument = p_vbeln
    order_header_in = i_hdr
    order_header_inx = i_hdrx
    TABLES
    return = i_ret
    schedule_lines = i_sched
    schedule_linesx = i_schedx.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    LOOP AT i_ret.
    WRITE / i_ret-message.
    ENDLOOP.
    http://abap.wikiprog.com/wiki/BAPI_SALESORDER_CHANGE
    Edited by: krupa jani on Jul 30, 2009 9:22 AM

  • Post Moved BT Broadband Desktop help problem

    Post Moved to Other BB Queries http://community.bt.com/t5/Other-BB-Queries/BT-Broadband-Desktop-Help-problem/td-p/46973
    If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’

    Hi FrankC
    I am sorry this still a problem.
    If you could drop me an email please with your BT account and telephone number along with a link back to this thread I'll get this sorted out for you.
    Just send to the address in my profile. 
    With regards to the thread being marked as solved as the original poster you can unmark the thread as solved.  Just select 'Options' at the top right of the post.  KerryG has posted up a pretty useful guide on this here. 
    Cheers
    Craig
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)”
    td-p/30">Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Help me doing bapi related to catsdb only  pls urgent step by step

    Help me doing bapi related to catsdb only  pls urgent step by step
    thank you,
    points will be rewarded,
    Regards,
    Jagrut BharatKumar Shukla

    Help me doing bapi related to catsdb only  pls urgent step by step
    thank you,
    points will be rewarded,
    Regards,
    Jagrut BharatKumar Shukla

  • Problem using BAPI to create Service Confirmation in CRM

    Good afternoon all.
    I have raised this is CRM forum too, just thought it best to ask the broader ABAP community the question too.
    We are encountering a problem using a BAPI to create a transaction in CRM, specifically:
    I am trying to create a Service Confirmation (BUS2000117) in a CRM system using the BAPI BAPI_BUSPROCESSND_CREATEMULTI.
    The BAPI succeeds in creating the header of the transaction, but I cannot make the BAPI create any other data in the transaction such as partners or items.
    Just want to be sure that I am not being foolish...has anyone succeeded in using this BAPI to create an error-free Service Confirmation?
    Regards
    Nick

    I am going to pop this thread into General ABAP forum too.
    Nick

  • Problem with javascript confirm() in a JSP

    I'm trying to use a confirm() box in a jsp. I've looked at tons of examples and I still have the same problem. If I just add this to my page the prompt will pop up as expected: (of course it doesn't really do anything.)<SCRIPT LANGUAGE="JavaScript">
    confirm( "Are you sure you want to delete?" )
    </SCRIPT>As soon as I add an if clause around it it doesn't even pop up anymore, such as:if (confirm("Are you sure you want to delete?")){
    <%
         Do some jsp stuff
    %>
    else {
    <%
         Do some jsp stuff
    %>
    }I can include more of the code if needed. This code is for deleting some files, so I want to add an "are you sure prompt?". If they hit ok it will delete, otherwise cancel the operation.
    I assume that the "if confirm( "Are you sure you want to delete?" ) " should wait for a reponse before continuing. Any help is appreciated.
    Thanks,
    James

    You can use Javascript to confirm a delete, and delete an object in the following manner.
    //link to delete an object..
    <a href="thisPage.jsp?delete=<%= itemID %>"
       onClick="return confirm('Are you sure you wish to delete this item?');">delete</a>Then, at the top of the JSP pageif(request.getParameter("delete") != null)
       //do whatever to delete, then load the page as normal
    }Now, your item will be deleted, and the page will be refreshed to show the changes.

  • Help Problem Automatic TO Creation for GR PO (Mvt. 101)

    Hi Experts,
    I have a problem creating TO automatically when material is received from PO using movement type 101. The requirement is to receive material from PO with status QI, create and confirm TO automatically into default storage bin. But when material received with status QI, it only creates TR and stuck in interim storage bin (902) then i have to create TO manually.
    All customizing for Automatic TO already done, if im using same material and receive it without QI status, TO will automatically created and placement to default storage bin will automatically confirmed. But when i'm trying to receive that material with QI status first, TO couldn't be created automatically.
    Does anyone know where i have to customize automatic TO for QI status with movement type 101?
    Rgds,
    Aleluya.

    I have not tried this scenario with material received in QI status after GR. I believe you need to create TO manually only because system will  not able to decide on his own to clear stock from QI status to unrestricted stock.
    I  know system create TO automatically when you receive goods without QI. In this case system understand to accept whole qty.
    You can create TO automatically in case of when you have QM active , you have usage decision.
    Hope this helps.
    Regards,
    Prashant

  • Firewire 400 and 800 problem ? Need confirmation

    OK, I have been running 2 external Lacie HD's over a USB hub into my MacBook Pro. A couple of weeks ago I decided that I needed more storage so purchased 2 Western Digital MyBook Pro's at 500GB.
    I got these two specifically because I knew they supported Firewire 800 and wanted to take advantage of the high speed connection.
    All is going well until yesterday.... Let me explain my set up. Firstly I am a DJ and use a Firewire Audiophile soundcard from M-Audio, this connects to the 400 port on my MacBook Pro, and the HD's connect to the 800... When I play music I get audio drop outs... I have looked through the forums and I am under the impression that both the 400 and 800 ports on my MacBook Pro run on the same connect, so is this the cause of the audio drop outs ?
    I connect the 2 HD's via USB and have no problems, am I right in thinking that I have wasted good money on getting 2 HD's that I'm not going to be able to use the 800 port with ? When I run the audio through the internal soundcard I get no drop outs !
    Also.... Just to annoy me even more I have a 20" cinema display so if I have use USB I decided to connect the two HD's to this and then to the MacBook Pro, now the problem here is when my MacBook Pro goes to sleep one of the HD's wakes up the MacBook Pro as it has been removed incorrectly ??? Do I now have a problem with one of my USB ports on the cinema screen also ????? I have put my iPod in the port and no problems ?
    Does anyone know how I can solve these problems without having to spend even more money ?
    And can someone confirm if the 400 and 800 ports are on the same connection, if so, whats the point ???
    Thanks
    - Neil

    neil,
    I wouldn't do that right away.. USB audio interfaces are usually at the more consumer end of the market, I don't think it's the best way to go just to solve your problem.
    did you read the part in my post about PCexpress cards that give you a totally new and independent FW800 bus? seriously, I think this is your best bet. these cards first came out when the original series of MBP didn't have FW800 on them (only 400) much to the consternation of video pros.. so 3rd party vendors made a card solution. as I said, they aren't expensive, I would have thought around or under $100 US. connect one of those to your MBP's express slot and your problem is solved. you'll have a powerful, dedicated FW channel just for those FW800 drives you bought. then, your m-audio interface will be fine. and even if you still want to get rid of it and get a better interface, you won't be forced to go to USB which generally means opting for a lower end of the market interface.
    also one other thing.. I don't know what your actual audio i/o needs are. but if you only ever work with stereo out and stereo in, ie, you never need more than 2 physical outputs and 2 physical inputs, then you have other options. the MBP (and in fact all macs) have optical digital audio built in. you can buy a 2in 2out digital to analog/analog to digital converter and connect it to the opticals. then, you'll never need to worry about FW or USB bandwidth ever again, nor will you ever need to think about drivers or compatibility or updates either.
    on my MBP I use logic pro. and on this system, I only ever need a stereo out to hear what I'm working on with good quality.. and when I record actual audio tracks, it's only ever one source at a time, like a mic input or an instrument. so I do not need an interface at all, I use the opticals and I love it. I bought a mindprint trio, not the USB one, but the one that uses optical i/o. it just connects to the same connectors on the MBP that you would connect headphones or a mic, but obviously uses the digital optical signal not analog audio. it sounds really very good. the trio itself is a very handy little box that conveniently lets you do a lot of things to work comfortable when recording. and I just use built-in sound, no drivers needed ever, which is very much a rare relief in the audio world, believe me.
    anyway, hope this helps. and seriously check out a card for FW800, in my opinion it's the best solution to your problem no matter which way you go.

  • Plz help me out bapi message (urgent)

    hi
    i need help. i m passing values in bapi n taking message from table in bapi to print in out put.
    requirment is..
    a)     Pass the following parameters:
    NUMBER = NETWORK
    Tables: I_COMPONENTS_CHANGE
         COMPONENT = IT_COMP-COMPONENT
         BATCH = P_CHARG
    Tables: I_COMPONENTS_CHANGE_UPDATE
         COMPONENT = IT_COMP-COMPONENT
         BATCH = “X”
    b)     The components that failed update are provided in table, E_MESSAGE_TABLE. If MESSAGE_TYPE = “E”, get EXTERNAL_OBJECT_ID and MESSAGE_TEXT. Remove spaces from EXTERNAL_OBJECT_ID and then match against IT_COMP-COMPONENT to get MATERIAL, PLANT and NETWORK and write MATERIAL, PLANT and NETWORK and MESSAGE_TEXT to the job log.
    so for that i m doing coding like (this is part of my program)
    LOOP AT i_temp_comp.
        CLEAR : i_comp_change,i_comp_upd,i_e_msg.
        REFRESH : i_comp_change,i_comp_upd,i_e_msg.
        LOOP AT i_comp WHERE network = i_temp_comp-network.
          l_number = i_comp-network.
          i_comp_change-component = i_comp-component.
          i_comp_change-batch = p_charg.
          APPEND i_comp_change.
          i_comp_upd-component = i_comp-component.
          i_comp_upd-batch = c_x.
          APPEND i_comp_upd.
        ENDLOOP.
        CALL FUNCTION 'BAPI_NETWORK_COMP_CHANGE'
          EXPORTING
            number                     = l_number
          TABLES
            i_components_change        = i_comp_change
            i_components_change_update = i_comp_upd
            e_message_table            = i_e_msg.
        IF NOT i_e_msg[] IS INITIAL.
          LOOP AT i_e_msg.
            IF i_e_msg-message_type = c_e.
              READ TABLE i_comp WITH KEY network = l_number
         component = i_e_msg-external_object_id.       "#EC *
                IF sy-subrc IS INITIAL.
                  i_output-material = i_comp-material.
                  i_output-plant = i_comp-plant.
                  i_output-network = i_comp-network.
                  i_output-message = i_e_msg-message_text.
                  APPEND i_output.
                ENDIF.
              ENDIF.
            ENDIF.
          ENDLOOP.
        ELSE.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
        ENDIF.
      ENDLOOP.
    problem is it is not showing message in i_output.
    so no data is printing.
    plz help me out

    There are several IFs in your code here.
    IF NOT i_e_msg[] IS INITIAL.
      LOOP AT i_e_msg.
        IF i_e_msg-message_type = c_e.
          READ TABLE i_comp WITH KEY network = l_number
              component = i_e_msg-external_object_id. "#EC *
          IF sy-subrc IS INITIAL.
            i_output-material = i_comp-material.
            i_output-plant = i_comp-plant.
            i_output-network = i_comp-network.
            i_output-message = i_e_msg-message_text.
            APPEND i_output.
          ENDIF.
        ENDIF.
      ENDLOOP.
    ELSE.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    ENDIF.
    It can be any IF failure. Check in debugging and see how this "i_e_msg" internal table is filled. May be the return table is giving the component number in external format and you have it in internal format or vice-versa in the READ statement "component = i_e_msg-external_object_id".

  • A problem about bapi dd check

    Hi, all.
        I tried to use arfc2 to call a bapi to get PO data from R/3 in 7.1.1. So I did model binding for my component controller`s context. Then I tried to get the result from these parameters programly. But I always got dd check error.
    For example. If an attribute "A" `s data type is int. But the attribute "A" is empty in R/3, so it always returns " " to the attribue "A". Then it will raise an dd check error. The bapi which I used is BAPI_PO_GET_LIST. There are many attributes with this bapi. How can I solve this problem?
    Thanks.

    Hi,
    please check if the below link can help in your case.
    [https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_db/~form/handler]
    Regards
    Narendra
    Edited by: Narendra Singh on Apr 3, 2009 11:54 AM

Maybe you are looking for