Problems with TRANSPORT_FROM_MODEL in BADI ME_GUI_PO_CUST

Hello,
I tried implementing the BADI ME_GUI_PO_CUST along with all it's methods and subsequently I also got the custom screen visible in PO header. But problem is whenever I click on this subscreen, the code for the method TRANSPORT_FROM_MODEL doesn't trigger. Instead, it triggers TRANSPORT_TO_DYNP and understandably the methods does nothing because it couldn't fetch any data. Kindly help understanding why TRANSPORT_FROM_MODEL doesn't trigger when I click on the custom tab at PO header and how can I correct the same?
Thanks,
Manuel Chiarelli

Hi Abhishek
but how did You solve this problem. I have the same ...
Kindly,
Wolf-Peter

Similar Messages

  • Problem with content: 7 - Bad sound Data

    When I do the following...
    Voice = new Sound();
    Voice.loadSound("test.mp3", true)
    I get the error...
    Problem with content: 7 - Bad sound Data
    AND
    Problem with content: 7 - The sound data format is not
    recognized.
    I am using the test.mp3 files that comes with Flash8.
    Thanks!
    Bob

    OK. This combo works!
    version flash Player 8
    action script 2.0
    Audio Stream: MP3, 128 kbps, Stereo best
    Audio event: MP3, 128 kbps, Stereo best
    Override sound settings (unchecked)
    But this combo does not!!
    version flash lite 2.0
    action script 2.0
    Audio Stream: MP3, 128 kbps, Stereo best
    Audio event: MP3, 128 kbps, Stereo best
    Override sound settings (unchecked)
    Still get the error on all Nokias except Nokia 90 which gets
    no error but just does not play the file

  • Problem with BBP_PD_PO_UPDATE and BADI BBP_DOC_CHANGE_BADI

    Hello,
    I've found out the following issue in SRM 7.0: during the run-time of the FM BBP_PD_PO_UPDATE in the program or BAdI something strange happens instead of the standard change of the DB:
    - the updated data appear as a result after the running of the FM BBP_PD_PO_GETDETAIL in the program
    - the old, pre-updated data appear as a result after the running of the FM BBP_PD_PO_GETDETAIL in the TA SE37.
    It looks like an issue in the SAP code, but I've found no OSS-Note.
    Could you please give me an advice regarding the difference in the program's behaviour depending the way of running (in background or dialog mode).

    Hi DAV,
    Please, let me know which program you are running. Is it a custom program? If so are you trying to update the PO and then calling the getdetail?
    One thing is, during the execution of a program, the getdetail FM will get the PO details from the buffer data available because in this case the PO data would have been already once during the update FM call.
    For e.g., if I call the update FM to update the PO value to from say 200 USD to 300 USD, this 300USD will be updated to PO in the buffer data. It is not yet saved in the DB. Now, after the update FM, if in the program the getdetail FM is called it will read the buffer and give you the value as 300 USD. Getdetail will always check the buffer for data first. If it finds the data there, then DB call will not be done.
    If I run getdetail FM in SE37, there is no buffer data here. It will read from the DB directly. If the SAVE Fm has been called in the program then the DB should also have 300 USD and SE37 run will give you 300 USD.
    I hope I am not confusing you.
    Regards
    Saravanan.

  • Problem with /dev/modem (bad address)

    I recently updated a bunch of packages on my system, one being kernel26-2.6.10.  After doing so, when I try to connect to the Internet using wvdial, I get the following messages:
    Cannot open /dev/modem: Bad address
    Cannot open /dev/modem: Bad address
    Cannot open /dev/modem: Bad address
    I have an Intel 536ep modem, and have the latest driver package installed.  I think this might be kernel related, but I'm not sure.  This happens whether or not I run udev, and I tried disabling hotplug also. 
    Does anyone have ideas about what might be causing this?
    Thanks!

    Why don't you reconfigure wvdial device in /etc/wvdial.conf?
    http://open.nit.ca/wiki/index.php?page=WvDialReadMe
    Perhaps you've overwritten your previous config during last upgrade? (ls /etc/*.pac*)
    It's also easy to create /dev/modem rule for udev but it's safer to just use /dev/ttySx in /etc/wvdial.conf (in case you have several modems - theoretically :-) - you should rather create /dev/modems/modem1 etc. or something like this).

  • Any problem with AMD Radeon or FirePro graphic cards?

    Hi.
    I know that Adobe recommend Nvidia cards for SpeedGrade, but I ask to owners of AMD cards if they have found any problems with AMD cards: bad performance, not realtime with relatively few layers, etc, etc
    Which is your experience?
    Thanks.

    FWIW: I'm using a AMD Radeon HD 6750M (1GB RAM) on my Mac Book Pro. So far it performs fine, in some cases it even feels faster than the Quadro 4000 in my Mac Pro, but I think that has more to do with the type of projects. Mostly doing DSLR on the MBP and R3D on the Mac Pro.

  • SOLUTION: tab not showing in ME21N/ME22N with badi ME_GUI_PO_CUST

    Hi,
    I implemented BADI's ME_GUI_PO_CUST and ME_PROCESS_PO_CUST to show a custom tab in the header section of ME21N, ME22N and ME23N.
    But after implementing the BADI's, the tab showed up in ME23N, but not in ME21N and ME22N.
    So I started looking for a solution in the SDN forum, and I saw that there were a LOT of people with the same problem, but nobody ever posted a solution.
    So here is the solution:
    So, I added the fields I wanted to show in the structure CI_EKKODB, implemented the BADI ME_GUI_PO_CUST (the methods SUBSCRIBE and MAP_DYNPRO_FIELDS), and the BADI ME_PROCESS_PO_CUST.
    After that the tab showed up in ME23N, not in ME21N or ME22N.
    So I found an SAP note saying the following:
    Question:
    I implemented the 'ME_GUI_PO_CUST' Business Add-In to display customer-
    specific tab titles in the EnjoySAP purchase order. They are only shown in display mode (ME23N) however, not in create or change. Why?
    Solution:
    You may have forgotten to assign a field status to the user-defined fields on these tabs. As a result, the system automatically interprets the field status as 'hidden' in create and change modes. However if a tab contains only hidden fields, then the entire tab is set to hidden. In display mode, fields without a field status are automatically set to display. That is why the tab is displayed in this case.
    To assign a field status to the user-defined fields, use the methods provided for this purpose in the Business Add-In 'ME_PROCESS_PO_CUST' (compare sample source code in the FIELDSELECTION_ITEM method).
    So in my case, I had to add some code to the  FIELDSELECTION_HEADER method of the BADI ME_PROCESS_PO_CUST.
    This is the code:
    method IF_EX_ME_PROCESS_PO_CUST~FIELDSELECTION_HEADER.
      DATA: l_persistent TYPE mmpur_bool.
      FIELD-SYMBOLS: <fs> LIKE LINE OF ch_fieldselection.
    * if the item is already on the database, we disallow to change field badi_bsgru
      l_persistent = im_header->is_persistent( ).
    *   IF l_persistent EQ mmpur_yes.
        READ TABLE ch_fieldselection ASSIGNING <fs> WITH TABLE KEY metafield = mmmfd_cust_01.
        IF sy-subrc IS INITIAL.
          <fs>-fieldstatus = '*'. " Input
        ENDIF.
    *   ENDIF.
    endmethod.
    But then, I realized that this BADI was never triggered. When I entered one of the transaction codes ME21N, ME22N or ME23N, the code in the fieldselection_header method was never executed.
    So I went to transaction SE18, and entered ME_PROCESS_PO_CUST in 'Enhancement Spot' and pushed the button display.
    And there in the tab 'Enhancement Implementations', I saw an implementation that was not mine, and that did not show up in the overview of the SE18 'BADI NAME' tab for the same BADI... which to me seems strange.
    So as you may know, there can never be more than one active implementation of the BADI ME_PROCESS_PO_CUST.
    So I disactivated my implementation and put my code in the existing implementation.
    And after that it worked!

    implement first badi :ZME_GUI_PO_CUST:
    METHOD if_ex_me_gui_po_cust~subscribe.
    DATA: ls_subscriber LIKE LINE OF re_subscribers.
    * we want to add a customer subscreen on the item detail tab
       CHECK im_application = 'PO'.
       CHECK im_element     = 'HEADER'.
    * each line in re_subscribers generates a subscreen. We add one subscreen in this example
       CLEAR re_subscribers[].
    * the name is a unique identifier for the subscreen and defined in this class definition
       ls_subscriber-name = subscreen1.
    * the dynpro number to use
       ls_subscriber-dynpro = '0001'.
    * the program where the dynpro can be found
       ls_subscriber-program = 'SAPLMEPOBADIEX'.
    * each subscreen needs his own DDIC-Structure
       ls_subscriber-struct_name = 'MEPO_BADI_STRUCT'.
    * a label can be defined
       ls_subscriber-label = text-001.
    * the position within the tabstrib can be defined
       ls_subscriber-position = 4.
    * the height of the screen can be defined here. Currently we suport two screen sizes:
    * value <= 7 a sevel line subscreen
    * value > 7  a 16 line subscreen
       ls_subscriber-height = 7.
       APPEND ls_subscriber TO re_subscribers.
    ENDMETHOD.
    implement 2nd badi : ZME_PROCESS_PO_CUST:
    method IF_EX_ME_PROCESS_PO_CUST~FIELDSELECTION_HEADER.
       DATA: l_persistent TYPE mmpur_bool.
       FIELD-SYMBOLS: <fs> LIKE LINE OF ch_fieldselection.
    * if the item is already on the database, we disallow to change field badi_bsgru
       l_persistent = im_header->is_persistent( ).
    *   IF l_persistent EQ mmpur_yes.
         READ TABLE ch_fieldselection ASSIGNING <fs> WITH TABLE KEY metafield = mmmfd_cust_01.
         IF sy-subrc IS INITIAL.
           <fs>-fieldstatus = '*'. " Input
         ENDIF.
    *   ENDIF.
    endmethod.

  • Problem on Implementing badi ME_GUI_PO_CUST

    Hi Expert,
    I have implement BADI ME_GUI_PO_CUST, to add the new tab.
    I have managed to View the tab in Both ME21N, and ME22N with implement SUBSCRIBE and MAP_DYNPRO_FIELDS.
    method IF_EX_ME_GUI_PO_CUST~SUBSCRIBE
      DATA: ls_subscriber LIKE LINE OF re_subscribers.
      CHECK im_application = 'PO'.
      CHECK im_element = 'ITEM'.
      CLEAR re_subscribers[].
      ls_subscriber-name = subscreen1.
      ls_subscriber-dynpro = '0002'.
      ls_subscriber-program = 'ZRPP_ME_GUI_PO_CUST_SCREEN'.
      ls_subscriber-struct_name = 'CI_EKPODB'.
      ls_subscriber-label = text-001.
      ls_subscriber-position = 7.
      ls_subscriber-height = 7.
      APPEND ls_subscriber TO re_subscribers.
    METHOD : IF_EX_ME_GUI_PO_CUST~MAP_DYNPRO_FIELDS
      FIELD-SYMBOLS: <mapping> LIKE LINE OF ch_mapping.
      LOOP AT ch_mapping ASSIGNING <mapping>.
        CASE <mapping>-fieldname.
          WHEN 'ZCNUM'.      <mapping>-metafield = mmmfd_cust_01.
        ENDCASE.
      ENDLOOP.
    Method IF_EX_ME_GUI_PO_CUST~MAP_DYNPRO_FIELDS
      DATA: lw_fieldselection LIKE LINE OF ch_fieldselection.
      LOOP AT ch_fieldselection INTO lw_fieldselection.
        lw_fieldselection-fieldstatus = '+'.
        MODIFY ch_fieldselection FROM lw_fieldselection.
      ENDLOOP.
    I need to store the value, and some of thread said it required methods:
    TRANSPORT_FROM_MODEL
    TRANSPORT_TO_DYNP
    TRANSPORT_FROM_DYNP
    TRANSPORT_TO_MODEL
    I have click on the subcreen, or enter at the field, but it will not able to trigger the Above Methods.
    How do I do for the to trigger above Methods? Or Should I added some additional code at screen program? I want SAVE the data actually into EKPO.
    Thanks in advance.

    Hi Sim,
    Recently we have the same reqirement.
    You can have a look at the below code..
    First method: SUBSCRIBE  
    DATA: ls_subscriber LIKE LINE OF re_subscribers.* we want to add a customer subscreen on the Header tab
        CHECK im_application = 'PO'.
        CHECK im_element     = 'HEADER'.* each line in re_subscribers generates a subscreen. We add one subscreen in this example
        CLEAR re_subscribers[].
    * the name is a unique identifier for the subscreen and defined in this class definition
        ls_subscriber-name = subscreen1.
    * the dynpro number to use
        ls_subscriber-dynpro = '0001'.
    * the program where the dynpro can be found
        ls_subscriber-program = 'SAPLZKMMM_KAU86037'.
    * each subscreen needs his own DDIC-Structure
        ls_subscriber-struct_name = 'CI_EKKODB'.
    * a label can be defined
        ls_subscriber-label = text-001.
    * the position within the tabstrib can be defined
        ls_subscriber-position = 13.
    * the height of the screen can be defined here. Currently we suport two screen sizes:
    * value <= 7 a sevel line subscreen
    * value > 7  a 16 line subscreen
        ls_subscriber-height = 7.    APPEND ls_subscriber TO re_subscribers.Here, parameter u2018im_elementu2019 is defined as u2018HEADERu2019 as we are adding new tab in header section of PO.  
    Define a function group and take the main program and define it in ls_subscriber-program.
    Also define a sub screen with the required fields and assign it to the parameter ls_subscriber-dynpro.  
    Then method MAP_DYNPRO_FIELDS  
    FIELD-SYMBOLS: <mapping> LIKE LINE OF ch_mapping.
        LOOP AT ch_mapping ASSIGNING <mapping>.    CASE <mapping>-fieldname.      WHEN 'ZZPAYMENT_AGRE'.      <mapping>-metafield = mmmfd_cust_03.
          WHEN 'ZZPROJECT'.                     <mapping>-metafield = mmmfd_cust_04.
        ENDCASE.  ENDLOOP.  TRANSPORT_FROM_MODEL:
    DATA:     l_header       TYPE REF TO if_purchase_order_mm,
                  ls_mepoheader  TYPE mepoheader,
                  ls_customer    TYPE CI_EKKODB.*--------------------------------------------------------------------*
    * system asks to transport data from the business logic into the view
    *--------------------------------------------------------------------*    CASE im_name.      WHEN subscreen1.* is it an Header? im_model can be header or item.
            mmpur_dynamic_cast l_header im_model.
            CHECK NOT l_header IS INITIAL.* transport standard fields
            ls_mepoheader = l_header->get_data( ).* store info for later use
            MOVE-CORRESPONDING ls_mepoheader TO dynp_data_pbo.
          WHEN OTHERS.
        ENDCASE.    TRANSPORT_TO_DYNP:
    Define a FM 'ZK_KAU86037_PUSH' to push the values.CASE im_name.      WHEN subscreen1.        CALL FUNCTION 'ZK_KAU86037_PUSH'
              EXPORTING
                im_dynp_data = dynp_data_pbo.      WHEN OTHERS.
        ENDCASE.    TRANSPORT_FROM_DYNP:
      Define another FM 'ZK_KAU86037_POP'.CASE im_name.      WHEN subscreen1.        CALL FUNCTION 'ZK_KAU86037_POP'
              IMPORTING
                ex_dynp_data = dynp_data_pai.        IF dynp_data_pai NE dynp_data_pbo.
    * something has changed therefore we have to notify the framework
    * to transport data to the model
              re_changed = mmpur_yes.
            ENDIF.      WHEN OTHERS.
        ENDCASE.  TRANSPORT_TO_MODEL:     
            DATA: l_header             TYPE REF TO if_purchase_order_mm,
              ls_mepoheader        TYPE mepoheader,
              ls_customer          TYPE CI_EKKODB,
              l_po_header_handle   TYPE REF TO cl_po_header_handle_mm.*--------------------------------------------------------------------*
    * data have to be transported to business logic
    *--------------------------------------------------------------------*    CASE im_name.      WHEN subscreen1.* is it an item? im_model can be header or item.
            mmpur_dynamic_cast l_header im_model.
            CHECK NOT l_header IS INITIAL.        ls_mepoheader = l_header->get_data( ).* standard fields changed?
            IF dynp_data_pbo-zzpayment_agre   NE dynp_data_pai-zzpayment_agre
            OR dynp_data_pbo-zzproject        NE dynp_data_pai-zzproject.* update standard fields
              ls_mepoheader-zzpayment_agre   = dynp_data_pai-zzpayment_agre.
              ls_mepoheader-zzproject  = dynp_data_pai-zzproject.
              CALL METHOD l_header->set_data
                EXPORTING
                  im_data = ls_mepoheader.
            ENDIF.
          WHEN OTHERS.    ENDCASE. 
    Then we have to implement one more BADI to display the tab and update the values.
    Implement the BADI ME_PROCESS_PO_CUST. This cannot be used multiple times.  
    In this, we have methods (PROCESS_HEADER,PROCESS_ITEM).if we need to any validations for the fields we can write the logic here in this methods. In my case I need to check for the document type which I implemented in the method (PROCESS_HEADER).  
    Hope it helps you.
    Thanks
    Arbind

  • Problems with iPhone Result of Bad Music???

    In the last few weeks I've been experiencing problems with my iPhone. I did a lot of research online, and figured that it is NOT this "dead strip" that others have been having problems with; however, 75% of the time, the slide bar will not respond for the first 7-8 times I try and answer a call or turn off an alarm.
    As time went on, the problem got more frequent and more involved. The phone might work fine all day, but as soon as someone tried to call, it starting going nuts, even after the call was over. None of the applications would respond to my touch and in the rare case that they opened, they would run incredibly slow and crash. The phone would freeze and need to be restarted. In the more recent days, during the restart, in which the only buttons I'm holding are the sleep/wake and home, my music would spontaneously start playing, starting alphabetically with the first artist on my list with no controls for me to stop it.
    Most of the time, after a restart, the phone would continue to work fine, until a call comes in and starts the process all over...
    After failing an attempt to fix the problems by deleting many songs and videos to clear up some room on the hard drive, I decided to restore my iPhone, as I have done once before, but this time not syncing with previously backed up data. I allowed iTunes to erase all the contents of my phone and then manually put most things back on. Since then, the phone has been working flawlessly. However, there is one problem remaining...I have not put any of my music back on the phone.
    And now I am afraid to!! Even though all that same music has been on my phone for 3 months, and only now have I begun to experience problems, is it possible that the iPhone operating system is more fragile and more vulnerable to bad files that might otherwise work fine on my computer? I have no viruses on my computer, and I have never installed any of these problematic third party applications on my phone. And if it's not the music, what else could be causing these problems???

    This is exactly what apple care is for. Why delay and torture yourself when you can take it in and either have it fixed or have it replaced?
    Take it in to Apple

  • Why is Apple so bad at providing customers with information on what the problem with email is and what they are doing to fix it?

    Why is apple not providing information on what the problem withe email is and what they are doing to fix, along with a time frame for fixing the problem.

    It was because the problem was major.  If you do not know tech, you should know that a two day outage usually indicates some type of virus, hack, or a bad software load that they had to unravel.  The common way to solve that is to rebuild servers and put back into service.  That takes time.
    Apple did not want to admit this problem.  My guess at this stange was that they loaded new software that might be associated with the new IOS and it crashed.  To reveal this would be to cast into doubt their future revenue.
    Either way.  Run do not walk away from Icloud products and services.  Apple has demonstrated they can not be a business partner.

  • Problem with BADI BADI_HU_DIALOG.

    I want to  display some customer fields in the screen 'Addit. Data' in  the Handling Units (transaction vl02n/vl03n).
    Therefore I use the BADI 'BADI_HU_DIALOG', method DEFINITION_SUBSCREEN.
    I need the subscreen in the details, so I use the flag 'IF_DETAIL'. Next I wait  the tcode 'DETZUS' (Additional data).
    if if_detail = 'X' and is_v51g-tabstrip_fcode = 'DETZUS'.
      cf_program = '/SIE/SAPLTS_SD02_VLOG'.
      cf_screen = '9000'.
    endif.
    Now I have the subscreen on the correct Dynpro and only there, but I miss the fields of the standard subscreen. The SAP originial replaces the number of their subscreen  with mine. But what can I do if I also want to use the standard fields?
    First problem:
    is there any possibility to add my subscreen to the standard?
    Second problem:
    I can't transfer the data of CS_VEKP to my subscreen to display or change them.
    What can I do?
    Thanks
    Uwe

    Hi Uwe,
    i have the same problem.
    Do you solve the problem with the missed standard fields?
    I hope you can help me.
    Thanks
    Markus

  • Add new screen in ME23N with BADI ME_GUI_PO_CUST

    Hi folks, I have used the BADI ME_GUI_PO_CUST to add a custom tab in transaction ME23N.
    So good, sor far, I know how to used BADI and it works very well. I had to subscribe my own subscreen in the method subscribe of the interface, but something is boring me and I don't know if it's possible.
    Let's say I want to display my new tab according to the purchasing document type. Right now, my custom tab is always display. There is no method to unsubscribe a screen in the interface. What I could do is to used the get parameter id 'BES' in the subscribe method to get the current purchasing document display, then from there I could decide if I subscribe or not my own screen. The thing with the subscribe method is that it's only called once, when you enter in the transaction, if you stay in the transaction and select another purchasing document, this method will not be called.
    thanks
    Alex

    Hi Alexandre,
    First get the current Purchase Order Number using parameter ID 'BES' in the PBO of the custom subscreen.
    Then based on validation checks set SCREEN-INVISIBLE = 1 and SCREEN-ACTIVE = 0 and MODIFY SCREEN for all the screen fields.
    This will hide all the fields and eventually the tab may also disappear. This works for Screen Exits (i.e., if all the fields of a tab are made to disppear then the tab also disapears if is the tab is defined using Screen Exit). But I have never tried it out in a BADI.
    Try this, it might work.
    Hope it helps.
    Regards,
    Abhisek.

  • Problem with this new version is when i open firefox something change my home page to mozila defalut page and in the new tab open mozila firefox first run page.Sorry for my bad English

    Problem with this new version is when i open firefox something change my home page to mozila defalut page and in the new tab open mozila firefox first run page.Sorry for my bad English

    Sounds like this issue:
    * http://kb.mozillazine.org/Preferences_not_saved
    * [[Preferences are not saved]]

  • Problem with decimal fields using BADI For PD Infotypes

    Hi,
    I'm implementing BADI  HRBAS00INFTY.
    For reading the fields of infotype , I'm using the substring
    of the field NEW_INNNN-VDATA .
    I have a problem with fields of type DEC.
    In field NEW_INNNN-VDATA it looks like this :  '####'
    I believe that the possible reason for this is conversion from DEC to CHAR
    But I don't know how to fix it.
    Thank you .
    Message was edited by: Alon Lozinsky

    Hi Alon,
    We had same issue. Use following code.
    data: hri1011_str type hri1011.
    move new_innnn-vdata to hri1011_str.
    HRI1011_STR fields will have decimal values.
    Let me know if you still have any issues. If solution works, kindly do Point Recognition.
    -Bharat

  • For the last 2 days whenever I try to upload photos from my iPhoto page to facebook I get an error message: Bad Image There was a problem with the image file.  I haven't knowingly changed any settings on iPhoto or facebook. Can anyone help, please ?

    I need help with uploading photos from iPhoto to facebook. I could do it till 2 days ago. Now any new photo I try to upload gives me an error message:
    Bad Image
    There was a problem with the image file. 
    Please help.

    Can you drag it to the Desktop?

  • BAPI_PR_CREATE, Problem to send a message with mmpur_message_forced in BAdI

    Hi all,
    I have a problem with PR creation by BAPI_PR_CREATE. We use ECC 6.0. We have one non-character field in CI_EBANDB. I know, it isn't correct, but we have this field. And there is a BAdI to solve this problem: IF_EX_ME_BAPI_PR_CREATE_02~MAP2I_EXTENSIONIN. I have used this BAdI, and after
    implementation of notes 1148689, 1176786, 1156334 and 1173224 it works, but not quite correct.
    The problem: It could be the field in EXTENSIONIN brings an conversion error. In this case I want to send a message from BAdI to BAPI and the BAPI has to terminate the creation of the PR.
    In many steps with the aid of SAP I have "developed" the following code:
    method if_ex_me_bapi_pr_create_02~map2i_extensionin.
    *--  define local data
      data: l_done         type        mmpur_bool.  "conversion done
      data: wa_ebanci_char type        zmi_mm_ci_ebandb_char.
      data: l_obj          type ref to if_message_obj_mm.       "#EC NEEDED
      data: my_mereq_ref   type ref to if_accounting_model_mm.
      check im_name = 'CI_EBANDB'.
      check im_error eq cl_mmpur_constants=>yes.
      include mm_messages_mac.
      mmpur_dynamic_cast1 l_obj me->my_mereq_ref.
      mmpur_business_obj l_obj.
      call method cl_abap_container_utilities=>read_container_c
        exporting
          im_container           = im_container+5
        importing
          ex_value               = wa_ebanci_char
        exceptions
          illegal_parameter_type = 1
          others                 = 2.
      if not sy-subrc is initial.
    * Errorhandling needed
        return.
      endif.
      try.
          move-corresponding wa_ebanci_char to ch_struc.
    *-- Errorhandling
        catch cx_sy_conversion_no_number
              cx_sy_conversion_overflow
              cx_sy_move_cast_error.
          mmpur_message_forced 'E' 'ZMIZZD' '809' space space space space.
      endtry.
      l_done = cl_mmpur_constants=>yes.
      move im_container(5)              to ch_struc(5).
      check l_done eq cl_mmpur_constants=>yes.
      raise exception type cx_mmpur_root.
    endmethod. "if_ex_me_bapi_pr_create_02~map2i_extensionin
    My Problem is the accurate using of the mmpur macros. I have the message 809 in case of a conversion errror in the RETURN-Table in BAPI. But the fields PARAMETER, ROW and FIELDS of the RETURN-Table are not or not well filled. I have seen I have to make something with mmpur_business_obj_id and mmpur_metafield, but I can't find how to do this exactly in this BAdI.
    Has anyone a idea?
    Thanks in advance.
    Michael

    Hi Michael,
    (1) in the BAdI IF_EX_ME_BAPI_PR_CREATE_02~MAP2I_EXTENSIONIN, if you use Method "Read_Container_C" in class CL_abap_container_utilities
    as following:
        CALL METHOD cl_abap_container_utilities=>read_container_c
        EXPORTING
          im_container           = im_container
        IMPORTING
          ex_value               = ch_struc
        EXCEPTIONS
          illegal_parameter_type = 1
          others                 = 2
    AND (2) in your BAPI-call, for the part exteinionIN, you use another method "Fill_Container_C" of the same class CL_abap_container_utilities
    something like these:
        DATA: lw_bapi_te_mereqitem  TYPE bapi_te_mereqitem,
            lw_bapi_te_mereqitemx TYPE bapi_te_mereqitemx.
    *-- Feldsymbole Ausgangsparameter
      FIELD-SYMBOLS: <lw_extensionin> TYPE bapiparex.
      APPEND INITIAL LINE TO pt_extensionin
             ASSIGNING <lw_extensionin>.
      CLEAR lw_bapi_te_mereqitem.
      lw_bapi_te_mereqitem-preq_item      = pw_output-bnfpo.
      lw_bapi_te_mereqitem-zz_qty = pw_output-meng.
      lw_bapi_te_mereqitem-zzdatum_grund  = sy-datum.
      lw_bapi_te_mereqitem-zzuzeit_grund  = sy-uzeit.
      <lw_extensionin>-structure     = 'BAPI_TE_MEREQITEM'.
    * fill extension i-tab which mit ZZ-Felder EBAN
      CALL METHOD cl_abap_container_utilities=>fill_container_c
            EXPORTING
              im_value               = lw_bapi_te_mereqitem
            IMPORTING
              ex_container           = <lw_extensionin>+30(930)
            EXCEPTIONS
              illegal_parameter_type = 1
              others                 = 2
      IF sy-subrc <> 0.
        CASE sy-subrc.
          WHEN 1.
    *          RAISE illegal_parameter_type.
          WHEN OTHERS.
    *          RAISE unknown_error.
        ENDCASE..
      ENDIF.
      APPEND INITIAL LINE TO pt_extensionin
             ASSIGNING <lw_extensionin>.
      CLEAR lw_bapi_te_mereqitemx.
      lw_bapi_te_mereqitemx-preq_item  = pw_output-bnfpo.
      lw_bapi_te_mereqitemx-zz_qty = true.
      lw_bapi_te_mereqitemx-zzdatum_grund  = true.
      lw_bapi_te_mereqitemx-zzuzeit_grund  = true.
      <lw_extensionin>-structure     = 'BAPI_TE_MEREQITEMX'.
    * fill extension i-tabx
      CALL METHOD cl_abap_container_utilities=>fill_container_c
            EXPORTING
              im_value               = lw_bapi_te_mereqitemx
            IMPORTING
              ex_container           = <lw_extensionin>+30(930)
            EXCEPTIONS
              illegal_parameter_type = 1
              others                 = 2
      IF sy-subrc <> 0.
        CASE sy-subrc.
          WHEN 1.
    *          RAISE illegal_parameter_type.
          WHEN OTHERS.
    *          RAISE unknown_error.
        ENDCASE..
      ENDIF.
    It works for BAPI_PR_CHANFGE! It should work for BAPI_PR_CREATE.
    (3)One condition is note 1176786, which correced errors in L2014I01 and L2105I01, where the code
       CHECK: <comp>-type_kind EQ lr_abap->typekind_packed  ,
    must be
       CHECK: <comp>-type_kind EQ lr_abap->typekind_packed OR "1176786
    =>  comma "," is wrong, logic operator "OR" is correct.
    Viele Grüße
    Shuhui

Maybe you are looking for

  • How to transfer XML-Data into a WebDynPro-Application?

    An external partner has a calling interface that sends a HTTP-Redirect to a specific application-url and transfers all the data in one POST-Parameter. The value of this POST-Paramater (CALLINTERFACE) consists the XML-Data. <form id='InterfaceData3' m

  • Help recovering stolen ipod

    I had my 60GB Ipod 5th gen stolen last week, I still have the store reciet and all original packaging. I have gone to Apple Support page which only listed my IPhone, I then tried adding my Ipods serial # with the Register and add products. It tells m

  • Help! InDesign CC won't start on this darn PC!

    I work cross-platform - an iMac at work and a PC at home. Have never had any problems with all the CC programs until I updated my InDesign CC on the PC to the (2014) version. All of a sudden it will not get past the splash screen - just hangs and cra

  • No internet with Windows?

    Well I don't know if I should post here or on a Windows forum, but I rather ask people who might know more about this. I installed Vista with Bootcamp Assistant and when I tried to connect to the internet no connections came up. I have a wireless rou

  • HRP1001 extractor

    Hi Friends, we have a requirement of fetching HR Business partner and Disciplinary manager using an employee id or personnel number. we found these information is residing in HRP1001. Is there a standard extractor based on this table to get this info