Sending sap-messages

hi,
I would like to send sap-messages (popup) to sap-users (not in business workplace). I can do this with transaction SM02. Now I would send a message to specific sap-users -> not to all sap-users. How is it possible? Is it possible?
thanks
mike

Hi,
   this is how you detect connected users:
DATA: BEGIN OF usr_tabl OCCURS 0.
        INCLUDE STRUCTURE uinfo.
DATA: END OF usr_tabl.
CALL 'ThUsrInfo' ID 'OPCODE' FIELD l_opcode
                 ID 'TAB' FIELD usr_tabl-sys.
SORT usr_tabl.
DELETE ADJACENT DUPLICATES FROM usr_tabl COMPARING bname.
     This is how you send a message
FORM popup_msg.
  DATA: l_msg LIKE sm04dic-popupmsg,
        l_ret TYPE c.
  PERFORM get_message CHANGING l_msg l_ret.
  IF l_ret = 'A'.            "User cancelled the message
    EXIT.
  ENDIF.
  Get the message text
  LOOP AT mytable WHERE selection = 'X'.
    CALL FUNCTION 'TH_POPUP'
         EXPORTING
              client         = mytable-mandt
              user           = mytable-bname
              MESSAGE        = l_msg
         EXCEPTIONS
              user_not_found = 1
              OTHERS         = 2.
    IF sy-subrc <> 0.
      WRITE: 'User ', mytable-bname, 'not found.'.
    ENDIF.
  ENDLOOP.
  IF sy-subrc <> 0.
    MESSAGE ID 'AT' TYPE 'E' NUMBER '315' WITH
          'No user selected!'.
    EXIT.
  ENDIF.
ENDFORM.
    Message
FORM get_message CHANGING p_l_msg LIKE sm04dic-popupmsg
                          p_returncode TYPE c.
  DATA: BEGIN OF fields OCCURS 1.
          INCLUDE STRUCTURE sval.
  DATA: END OF fields,
        returncode TYPE c.
  fields-tabname = 'SM04DIC'.
  fields-fieldname = 'POPUPMSG'.
  fields-fieldtext = 'Message :'.
  CONCATENATE ' - Msg from' sy-uname '.' INTO fields-value
        SEPARATED BY space.
  APPEND fields.
  CALL FUNCTION 'POPUP_GET_VALUES'
       EXPORTING
            popup_title = 'Supply the popup message'
       IMPORTING
            returncode  = p_returncode
       TABLES
            fields      = fields.
  IF p_returncode = 'A'.
    EXIT.
  ELSE.
    READ TABLE fields INDEX 1.
    p_l_msg = fields-value.
  ENDIF.
ENDFORM.

Similar Messages

  • Sending 2 messages from SAP but get 1 message in PI

    Hi all,
    This is a bit of a strange one but I have the situation where we send two idocs at the same time from a SAP ECC system to PI. The first idoc is processed but the second one just dissapears. Things I have checked:
    SMQ1/SMQ2 on both systems - nothing there
    Runtime workbench - the successful one is there but no failed messages
    Sending two messages from another ECC system - we do get both messages - but this is a different interface (however the one with the problem is just a copy of the one which works)
    Any ideas what this could be or what else I should be checking?
    Kind regards
    Ben

    Hi Mark,
    Thanks for your quick reply. I have checked idx5 and there is only one message/TID from the sending system.
    The other ECC system is owned by a different department so I will ask them to run SM58 to see if anything is stuck in there as well

  • Send DOC Messages to SAP

    I have a text file which contains lots of records. I have created a schema for that text file.Then I mapped this schema with IDOC (Acc_Document03)schema.Now I want to send this IDOC message to SAP.There is not shown any errors by BizTalk admin console.But
    the message is not reached to SAP.But when I  send this IDOC message to a location through File adapter instead of SAP adapter then it has reached there .Why this is happening ?
    Please also tell me how to send multiple IDOC message to SAP ?

    Let's continue this in one thread:
    http://social.msdn.microsoft.com/Forums/en-US/cde76044-c8cb-4d17-b675-2542824d17a6/send-idoc-messages-to-sap?forum=biztalkgeneral
    Same author, same question..
    Glenn Colpaert - MCTS BizTalk Server - Blog : http://blog.codit.eu

  • Not able to send instant message through CLP

    Hello All,
    I am a beginner in portals.
    I am doing a test assignment on collaboration.
    1.I have enabled the Collaboration Launch Pad.
    2.Now when I click on the link, CLP opens. I have added some contacts to it.
    3.Then I tried to send an instant message and then I get the error:
    Could not open a new instant-messaging session. All invitees are offline. Try again later.
    I know that some configurations need to be done to be able to send the instant message.
    Please let me know the configuration steps for the same or any relevant document.
    Please help me with this.

    Hi Radhika
    Please check the collaboration contacts is portal users.
    Make sure that other portal user also logged in the portal for sending instance message.
    OR you can try to loging with two differnet portal userid and try to use instant-messaging functinality by sending message.
    [Instant Messenger |http://help.sap.com/erp2005_ehp_04/helpdata/EN/d3/9621af15024274afacfe874d5798b8/content.htm]
    Hope it helps
    Regards
    Arun

  • Error while sending SOAP message to PI

    Hi Guyz,
    I have a sync-asyn scneario SOAP to File via PI. When I test the scenario using test tool i.e SOAP UI , scenario runs fine. But when user is trying to send a message they are getting Error message as response . "No SOAP Envelope but 1 {}.
    Any idea what is this error. I tried to test the scenario with the same XML message that they are using.
    Regards,
    Loveena.

    Hi Loveena,
    What kind of application tries to connect with PI?
    Have you tried to mark Use No SOAP Envelope (Point 4. https://help.sap.com/saphelp_nw73/helpdata/en/48/3555240bea31c3e10000000a42189d/frameset.htm)?, in this way you can check that the message at least comes to PI.
    Regards.

  • Sending PI message in case of Payment Cancellation and Check Number Voided

    Hi ..
    I've a requirement to send a message to PI wth the required invoice header fields whenver any payment document number is cancelled or check number is voided. I know we can cancel the payment or check payment through tcode FCH8 and the module program for this is SAPMFCHK.
    I have no idea where would i put my custom code in the check payment cancellation wherein i can put my invoice fields and the proxy code so that I can send a message whenever any check payment or payment is cancelled.
    Please help me if you have come with the similar requirement. I think i need to create an enhancement and put my codes inside that but not sure how do to this.
    Thanks,
    Shamim

    Hi
    I guess You need to create substitution for this purpose. In your case reversal document get created for your original FI document.
    Go through http://wiki.sdn.sap.com/wiki/display/ERPFI/Creatinguserexitsforsubstitutions
    First check GCX2 transaction if there is already any Z Program attached for your application area. If yes check if it is active in SPRO
    Special Purpose LedgerTools-Maintain Validation/Substitution/Rules---Maintain Substitution
    You can create substitution ZTEST under
    Financial Accounting----Document header for field "reversal Indicator" and if you do F4 in field "Exit" you will see the exit created by you as per wiki.
    I think you can create substitution on field "reversal Indicator" but its your choice. Check if your exit gets trigger.
    Try creating a event to trigger proxy or submit program etc...
    Hope this helps.
    Regards
    Vinit
    Edited by: Vinit Joshi on Mar 9, 2012 8:20 PM

  • How To send SAP SCRIPT AS an email.

    Hi,
    Any one knows how to send sap script output to users in the form of an email.
    Is there any other way to send it apart from sending the script output to spool and converting the spool to PDF and send that PDF to user?
    It would it helpful for me if u can let me know any peace of code as an example for the same.
    Message was edited by: Narasimha

    Hi,
    This may be too late but here is a really easy way
    Here is a snippet of code that will help you out.
    You can use the OPEN_FORM of the SAPscript to have a device type of MAIL instead of PRINTER
          Form  OPEN_FORM
          Open SAPscript form to send to user
    FORM OPEN_FORM .
    *--- Set recipient
      GW_COMM_VALUES-ADSMTP-SMTP_ADDR = '[email protected]'.
    *--- Set NAST details as these will not currently be set....
      CLEAR GW_SNAST.
      GW_SNAST-ANZAL = 1.
      GW_TITLE = 'Mail Header Title'.
      MOVE GW_TITLE TO GW_SNAST-TDCOVTITLE.
    *--- Set sender and recipient details
      CALL FUNCTION 'CONVERT_COMM_TYPE_DATA'
        EXPORTING
          PI_COMM_TYPE              = 'INT'
          PI_COMM_VALUES            = GW_COMM_VALUES
          PI_REPID                  = SY-REPID
          PI_SNAST                  = GW_SNAST
          PI_MAIL_SENDER            = SY-UNAME
        IMPORTING
          PE_ITCPO                  = GW_ITCPO
          PE_MAIL_RECIPIENT         = GW_RECIPIENT
          PE_MAIL_SENDER            = GW_SENDER
        EXCEPTIONS
          COMM_TYPE_NOT_SUPPORTED   = 1
          RECIPIENT_CREATION_FAILED = 2
          SENDER_CREATION_FAILED    = 3
          OTHERS                    = 4.
    *--- Open SAPscript in MAIL mode for e-mailing
      CALL FUNCTION 'OPEN_FORM'
        EXPORTING
          DEVICE                      = 'MAIL'
          DIALOG                      = 'X'
          FORM                        = SapScript Form Name
          LANGUAGE                    = SY-LANGU
          OPTIONS                     = GW_ITCPO
          MAIL_SENDER                 = GW_SENDER
          MAIL_RECIPIENT              = GW_RECIPIENT
        EXCEPTIONS
          CANCELED                    = 1
          DEVICE                      = 2
          FORM                        = 3
          OPTIONS                     = 4
          UNCLOSED                    = 5
          MAIL_OPTIONS                = 6
          ARCHIVE_ERROR               = 7
          INVALID_FAX_NUMBER          = 8
          MORE_PARAMS_NEEDED_IN_BATCH = 9
          SPOOL_ERROR                 = 10
          CODEPAGE                    = 11
          OTHERS                      = 12.
    When you have finished your SAPscript and call function CLOSE_FORM make sure you do a COMMI WORK after the call of this function.
    You should then see the mail created in SOST.
    Kind regards
    Colin

  • Sending Process Message from PI Sheets without "Completing" it

    Hi,
    We have long running process orders in our scenarios (typically lasting 3 days).
    We are planning to use PI sheets to manage our goods issue/receipts/confirmations. During the brief evaluation of characteristics based PI sheets, we found that all the GI/GR process messages are created only when the entire PI sheet is "Completed".
    Since ours is a long running process, we need that the GI/GR entered by the operator is posted immediately in the system (without waiting for PI sheet completion). We can not wait till all the data is entered and the process order is completed three days later.
    How do we handle this problem?
    We thought of using custom function modules. However, that will mean that we will loose the benefits of the standard GUI elements of PI sheets and complications of custom development.
    Any response will be highly appreciated.
    Regards,
    Kundan

    Here is something you can try.
    With the browser based sheets, try putting in a signature PI category (SAP provide "SIGN") which tends to create a message and place it in the message monitor.  By scheduling the message send background job to run periodically you can pick up and send the messages.  You can schedule this job to run after the event "NEW MESSAGE" but beware the system performance - every 5 mins or so tends to be almost as good with less strain on system resources!
    I tend to create a table based PI category to contain each reservation plus room to add actual goods issues/receipts.  Once these are entered, a signature category sends all the messages for the particular phase.  Thus good structure of phases is important.
    For goods receipts, you may need to have a phase for each day against which to post a confirmation and/or goods receipt and this together with signature will send the messages.  Alternately, use a PI Category to call the transaction for performing goods receipt - or a bespoke transaction to "front end" the goods receipt - you can pass parameters when you call transactions so you can could pre-populate some information.
    Final point on signature - you can set a simple signature that just accepts whatever the user enters on the screen - typically their initials.
    Regards
    Laurence

  • ABAP Program to send HTTP message

    Hi All,
    I tried executing the program in "[ABAP-Based HTTP Client for Messages to SAP XI|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ae388f45-0901-0010-0f99-a76d785e3ccc]" Article to send HTTP messages to XI system.
    Entered all required parameters and entered XMl Payload with the option "Insert Payload as Text"
    The scenario in XI has Integration Process and the first step is a Sync-Async step.
    The message execution fails in that step with status "Pipeline Timeout"
    I can see only half of the xml payload in sxmb_moni.
    There are no short dumps and the Integration Process is working fine when I send messages using HTTP client.
    Let me know if there are any checks for tracing the problem.
    Thanks,
    Uma

    Hi,
    I have gone thru this blog but I want send SMS to US Mobile no.I checked other webservice but it supports only few cellular networks in US.
    any other alternate for this...
    anyway thanks for your reply
    Regards,
    Nivas

  • Communication error when sending PI message from Integration Engine to AE

    Hi Experts,
    we currently installed and configured PI 7.3 system. Even I run post installation PI configuration several times, we are still facing error when Integration engine sends message to messaging system. ( my scenario: I send test message to IE directly, avoiding AE )...
    It might look easy: but even adding PIISUSER full authorization and system restart, the result is the same. I don't know if it could have connection but I also get HTTP 200 instead of HTTP 500 when testing INTEGRATION_DIRECTORY_HMI destination.
    Thanks for any help.
    <Trace level="1" type="B" name="CL_XMS_PLSRV_IE_ADAPTER-ENTER_PLSRV">
      <Trace level="1" type="B" name="CL_XMS_PLSRV_CALL_XMB-CALL_XMS_HTTP" />
    - <!--  ************************************
      -->
      <Trace level="1" type="T">error reading SAP_XIAdapterFramework from SLD</Trace>
      <Trace level="1" type="T">error reading SAP_XIAdapterFramework from SLD</Trace>
      <Trace level="1" type="T">Get logon data for adapter engine (SAI_AE_DETAILS_GET):</Trace>
      <Trace level="1" type="T">URL = http://xxx:xxxx/MessagingSystem/receive/AFW/XI</Trace>
      <Trace level="1" type="T">User = PIISUSER</Trace>
      <Trace level="1" type="T">Cached =</Trace>
      <Trace level="1" type="T">Security: Basic authentication</Trace>
      <Trace level="1" type="T">Serializing message object...</Trace>
      <Trace level="1" type="T">Tuning - AFW_MAXREQUESTCONTENTLENGTH 2000000000</Trace>
      <Trace level="1" type="T">HTTP Multipart document length: 2948</Trace>
      <Trace level="1" type="T">Timeout: 0</Trace>
      <Trace level="1" type="T">HTTP-client: request sent</Trace>
      <Trace level="1" type="T">HTTP-client: response received</Trace>
      <Trace level="1" type="T">HTTP-client: status code = 401</Trace>
      <Trace level="1" type="System_Error">Authorization error while sending by HTTP (error code: 401 , error text: Unauthorized)</Trace>
      </Trace>

    Hi,
    So this password change in Exchange Profile + su01 transaction + system restart didn't help.
    I increase trace level, and this is even more detailed log in pipeline step Call Adapter.
    We also find out that when message arrive to IE we have in java log three entries:
    LOGIN.FAILED
    User: N/A
    IP Address: xxx
    Authentication Stack: sap.com/com.sap.aii.af.ms.app*MessagingSystem
    Login Module                                                               Flag        Initialize  Login      Commit     Abort      Details
    1. com.sap.security.core.server.jaas.EvaluateAssertionTicketLoginModule    SUFFICIENT  ok          exception             true       Received no SAP Authentication Assertion Ticket.
    2. com.sap.security.core.server.jaas.EvaluateTicketLoginModule             SUFFICIENT  ok          false                 true      
    3. com.sap.engine.services.security.server.jaas.BasicPasswordLoginModule   REQUISITE   ok          exception             true       Authentication did not succeed.
    This log is logged under J2EE_GUEST User.
    LOGIN.OK
    User: SLD_CL_PIQ
    IP Address: xxx
    Authentication Stack: sap.com/com.sap.lcr*sld
    LOGIN.OK
    User: SLD_CL_PIQ
    IP Address: xxx
    Authentication Stack: sap.com/com.sap.lcr*sld
    Last two logs are logged by SLD_CL_PIQ user.
    Thanks for any help!
    <!--  ************************************
      -->
    - <Trace level="1" type="B" name="CL_XMS_PLSRV_IE_ADAPTER-ENTER_PLSRV">
      <Trace level="3" type="T">Channel for adapter engine: File</Trace>
      <Trace level="1" type="B" name="CL_XMS_PLSRV_CALL_XMB-CALL_XMS_HTTP" />
    - <!--  ************************************
      -->
      <Trace level="2" type="T">no values in cache (no lock found) - start reading from SLD</Trace>
      <Trace level="1" type="T">error reading SAP_XIAdapterFramework from SLD</Trace>
      <Trace level="2" type="T">Adapter Framework(s) found</Trace>
      <Trace level="2" type="T">Service Port(s) found - take first one</Trace>
      <Trace level="2" type="T">URL found</Trace>
      <Trace level="2" type="T">no values in cache (lock found) - start reading from SLD</Trace>
      <Trace level="1" type="T">error reading SAP_XIAdapterFramework from SLD</Trace>
      <Trace level="2" type="T">Adapter Framework(s) found</Trace>
      <Trace level="2" type="T">Service Port(s) found - take first one</Trace>
      <Trace level="2" type="T">URL found</Trace>
      <Trace level="1" type="T">Get logon data for adapter engine (SAI_AE_DETAILS_GET):</Trace>
      <Trace level="1" type="T">URL = http://xxx/MessagingSystem/receive/AFW/XI</Trace>
      <Trace level="1" type="T">User = PIISUSERA</Trace>
      <Trace level="1" type="T">Cached =</Trace>
      <Trace level="3" type="T">Creating HTTP-client</Trace>
      <Trace level="3" type="T">HTTP-client: creation finished</Trace>
      <Trace level="1" type="T">Security: Basic authentication</Trace>
      <Trace level="1" type="T">Serializing message object...</Trace>
      <Trace level="1" type="T">Tuning - AFW_MAXREQUESTCONTENTLENGTH 2000000000</Trace>
      <Trace level="1" type="T">HTTP Multipart document length: 2941</Trace>
      <Trace level="3" type="T">HTTP-client: sending http-request...</Trace>
      <Trace level="1" type="T">Timeout: 0</Trace>
      <Trace level="1" type="T">HTTP-client: request sent</Trace>
      <Trace level="3" type="T">HTTP-client: request sent</Trace>
      <Trace level="3" type="T">HTTP-client: Receiving http-response...</Trace>
      <Trace level="1" type="T">HTTP-client: response received</Trace>
      <Trace level="3" type="T">HTTP-client: checking status code...</Trace>
      <Trace level="1" type="T">HTTP-client: status code = 401</Trace>
      <Trace level="3" type="System_Error">Authorization error while sending by HTTP (error code: 401 , error text: Unauthorized)</Trace>
      </Trace>
    </Trace>

  • How to send a message to a users Business Workplace? (which FM)

    Hi guys!
    How can i send a message to a users Business Workplace inbox?
    Can you help me out with a FM or where i find information to this topic.
    thanks!

    See https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/sendingEmailsandSAPMail
    In the receiverlist you can set the type of user (external mail, internal mail by SAP userid is B i believe)
    regards,
    Hans

  • How to send a message to WD from a BPM?

    Hi All,
    I have a ccBPM in which I recieve a binary file .
    On receiving it I want :
    1)To send it to a folder in my pc.
    2)After sending file I need to send a message to WD giving path of file on my system so that it can be UPLOADED to the context.
    Please help !
    Points assured for helpful answers!
    Sumit

    HI,
    See the below links
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit - File to RFC  - File to Mail
    /people/michal.krawczyk2/blog/2005/08/22/xi-maintain-rfc-destinations-centrally - Maintain RFC destination centrally
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    Troubleshooting - RFC and SOAP scenarios-/people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009
    XI: RFC or ABAP Proxy ? ....ABAP Proxies with attachments --/people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments
    RFC -> XI -> WebService - A Complete Walkthrough (Part 2) -/people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2
    RFC to SOAP
    /people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
    /people/piers.harding/blog/2004/07/18/you-dont-need-to-use-soap-to-keep-your-rpc-clean
    /people/david.halitsky/blog/2006/08/25/soa-vs-rfc-it-doesnt-have-to-be-charles-bronson-vs-henry-fonda
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=rfc%20to%20soap%20scenario&cat=sdn_weblog
    Regards
    Chilla
    <i>reward points if it is helpful..</i>

  • How to send the message from front end to XI in sender webservice

    Hi All,
    I am doing webservice to proxy scenario, we want to send the message from front end to XI, front end is java application. can any one please guide me the steps need to done for front end to XI.
    1) we wrote a webservice
    2) i have created data type message type and message interface in IR
    3) i have created sender soap adapter with interface name and namespace.
    4) i have generated webservice in ID
    but how can we send the message from front end to XI sender soap adapter.
    Kind Regards,
    Kiran

    Hi,
    Before going with the SOAP Adapter i suggest you to go through this Disscussion
    Re: about http and soap
    If you are going with the SOAP Adapter means
    >>but how can we send the message from front end to XI sender soap adapter.
    you have to use the XI  Server URL( http://host name:j2ee port/
    Use this as Refference
    http://help.sap.com/saphelp_nw70/helpdata/EN/ae/d03341771b4c0de10000000a1550b0/frameset.htm
    Regards
    Seshagiri

  • 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

  • Trouble send a message to XI via Proxy

    Hi,
    I'm trying to send a message from R/3 System to XI via Proxy, but I just can see the message in the R/3 side (SXMB_MONI), the message has a Green Flag Status. When I activated a queue that the message belongs to it goes to Red Flag Status and I got an 'ErrorHeader' with:
    - <SAP:ErrorHeader xmlns:SAP="http://sap.com/exchange/MessageFormat">
      <SAP:Context />
      <SAP:Code p1="401" p2="Unauthorized" p3="" p4="">HTTP.HTTP_STATUS_CODE_NEQ_OK</SAP:Code>
      <SAP:Text language="EN">HTTP status code 401 : Unauthorized</SAP:Text>
      </SAP:ErrorHeader>
    When I check a Compoment Monitoring:
    <b>domain
       Integration Server
       Integration Engines
          Proxy Runtime <Business System></b>
    I got an error 'Unable to log on to system <Business System> in language en with user XIRWBUSER'.
    Could someone help me?
    Thanks in advance
    Leo

    Hi Leonardo,
    Check these threads...
    >>HTTP.HTTP_STATUS_CODE_NEQ_OK
    ABAP PROXY CONNECTION TO SAP/XI
    >>I got an error 'Unable to log on to system <Business System> in language en with user XIRWBUSER'.
    Demo application: "You cannot log on to system .... with user XIRWBUSER
    Regards
    Anand
    Message was edited by: Anand Torgal

Maybe you are looking for