Urgent related to message type structure and proxy

Hello,
My outbound interface related message type structure is like this....
message type name : MSg1
Msg1
x
y
Z
(under z)
a
b
c
ok,Now in generating the proxy how to populate this structure.
For example ...
if Msg type is emp_profile_msg
Emp_name
Empno
Department_name
we use this code
REPORT zblog_abap_proxy.
DATA prxy TYPE REF TO zblogco_proxy_interface_ob.
CREATE OBJECT prxy.
DATA it TYPE zblogemp_profile_msg.
TRY.
it-emp_profile_msg-emp_name = 'Sravya'.
it-emp_profile_msg-empno = '80101'.
it-emp_profile_msg-DEPARTMENT_NAME = 'NetWeaver'.
CALL METHOD prxy->execute_asynchronous
EXPORTING
output = it.
commit work
CATCH cx_ai_system_fault .
DATA fault TYPE REF TO cx_ai_system_fault .
CREATE OBJECT fault.
WRITE :/ fault->errortext.
ENDTRY.
if message type consists structure inside strucutre ..then how to populate those sructure

Hi Sunil,
Please don't mind, but I think I already have posted the answer for this query and have provided some links
Please see the below mail.
urgent related to Mesage types and proxy
Please let me know if you need anything else than the given info.
I have one sample program where we have deal with these kind of sub-sturctures
Thanks
Swarup

Similar Messages

  • Urgent related to Mesage types and proxy

    Hello,
    My outbound interface related message type structure is like this....
    message type name :  MSg1
       Msg1
         x
         y     
         Z
          (under z)
           a
           b
           c               
    ok,Now in generating the proxy how to populate this structure.
    For example ...
    if Msg type is emp_profile_msg
                    Emp_name
                    Empno
                    Department_name
    we use this code
    REPORT  zblog_abap_proxy.
    DATA prxy TYPE REF TO zblogco_proxy_interface_ob.
    CREATE OBJECT prxy.
    DATA it TYPE  zblogemp_profile_msg.
    TRY.
        it-emp_profile_msg-emp_name = 'Sravya'.
        it-emp_profile_msg-empno = '80101'.
        it-emp_profile_msg-DEPARTMENT_NAME = 'NetWeaver'.
        CALL METHOD prxy->execute_asynchronous
          EXPORTING
            output = it.
         commit work
      CATCH cx_ai_system_fault .
        DATA fault TYPE REF TO cx_ai_system_fault .
        CREATE OBJECT fault.
        WRITE :/ fault->errortext.
    ENDTRY.
    if message type consists structure inside strucutre ..then how to populate those sructure

    hI,
    Similarly you have to give it as extending it
    it-emp_profile_msg-DEPARTMENT_NAME -Field Name
    Refer below link for programming tips with ABAP proxy with the structure
    http://help.sap.com/saphelp_nw04/helpdata/en/3e/a35c3cff8ca92be10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/14/555f3c482a7331e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c9/74246d8ad2447799063d39013e9a11/content.htm
    Thanks
    swarup

  • My sender and the receiver message types structures are same.do I need to m

    Hi all,
    My sender and the receiver message types structures are same.do I need to mapping in this case.
    If it is not required .Let me know in detail,How to proceed.
    Thanks,
    Srinivasa

    Hi,
    If is just to pass the message (as the sender source is the same as the receiver source),
    first you should have the Message Interface of you message
    then you should configure the Receiver determination, as the sender interface use your message interface and in the interface determination you can use the same message interface (same name). You dont have to add any mapping, just let empty and save. Just use one message interface for sender a receive.
    Any questins let me know.
    Regards,
    Lpbuff

  • Any  having the Experiance with message type UTILMD and REQDOC in ALE Idoc

    Hi experts ,
    I am working with SAP ISU ,in ALE Idoc message types UTILMD and REQDOC,
    ver 3.0 and 4.0 ,I got the  almost all necessary details of UTILMD MESSAGE TYPE..but REQDOC is pending.If any one having the format of REQDOC segments and objectypes in SAP ISU please send it to me it will be very helpful to me .
    Regards
    Sarath

    Thak you for the responce,
    Hai Naveen,But i dont have message type or structure for REQDOC ver 3 or 4 .in SAP .do you have that structure for  REQDOC in the  transaction we30 .if so please send me its mainly used for SAP ISU .
    regards
    sarath

  • Why are not  pop up  message window when message type I and W

    Hi All,
    I am working in BADI ( me_purchdoc_posted~posted) for t-code ME21N. Actually i want show material number, material description  and ABC indicator of material at saving point of PO if material is significant.
    code is properly working  but does not showing  error message window when I am using message type I  (information) or W (worming message) .
    if i am using message type E ( error message )then showing message window just link  Information message.
    So i can no understand why are not message window pop up  when i take message type I and W.
    my code is that
    method IF_EX_ME_PURCHDOC_POSTED~POSTED
    IF SY-TCODE EQ 'ME21N' OR SY-TCODE EQ'ME21'.
      DATA : wa LIKE LINE OF IM_EKPO.
      DATA : VAR_MAKTX TYPE MAKT-MAKTX.
      DATA : VAR_MAABC TYPE MARC-MAABC.
      DATA : P TYPE STRING.
      DATA : P1 TYPE STRING.
      LOOP AT IM_EKPO INTO wa.
        SELECT SINGLE MAABC FROM MARC INTO VAR_MAABC WHERE matnr EQ wa-matnr AND werks EQ wa-werks.
        SELECT SINGLE MAKTX FROM MAKT INTO VAR_MAKTX WHERE matnr EQ wa-matnr. " AND werks EQ wa-werks.
          IF VAR_MAABC EQ 'A'.
            P = 'is significant material'.
            CONCATENATE  WA-MATNR '(' VAR_MAKTX ')'  P INTO P1.
            MESSAGE P1 TYPE 'E'.
            EXIT.
            ENDIF.
      ENDLOOP.
    ENDIF.
    endmethod.
    guide me...............

    Hi vinod,
    thanks for reply......
    yes,  my  requirement is to show the popup window with  material number, material description and ABC indicator of material at saving point of PO if material is significant.
    I find Badi to transaction me21n at saving PO.  Badi ME_PROCESS_PO_CUST does not exist.
    so i am using Badi me_purchdoc_posted~posted.
    This Badi  ( me_purchdoc_posted~posted ) is properly working But showing message  "system error ( error in method po_post ) "
    when I am click on OK then automatic leave from transaction.
    guide me..........

  • Deleting Message Type name and namespace tag from XML payload

    Hi Gurus,
    Need help. My payload looks like this
    <?xml version="1.0" encoding="utf-8" ?>
    - <ns1:MT_O_sss xmlns:ns1="http://sap.com/xi/tm">
    - <Job>
       <Field name="xxxx" value="" />
      <Field name="xxx" value="" />
      <Field name="xxx" value="" />
       </Job>
      </ns1:MT_O_sss>
    But The soap webservice is expecting it in
    <?xml version="1.0" encoding="utf-8" ?>
    - <Job>
       <Field name="xxxx" value="" />
      <Field name="xxx" value="" />
      <Field name="xxx" value="" />
       </Job>
    I have to remove the message type name and namespace tag.
    So how can I achieve this. I am sending this payload using a Receiver Soap Adapter. Please help. I am kind of stuck.

    hi,
    you have to simply add one module in your communication channel
    that is XMLAnonymizerBean
    you can refer below for help:
    Remove namespace prefix or change XML encoding with the XMLAnonymizerBean
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/frameset.htm
    hope it helps.
    regards,
    ujjwal kumar

  • Posting goods issue using Message type SHPCON and idoc type DELVRY03

    Hi SAP Gurus,
    I am using message type SHPCON and idoc type DELVRY01 with processing code DELV to post goods issue for a delivery note.
    I tried to simulate the inbound entry via WE19. The scenario should be posting goods issue based on the delivery order.
    In some cases, quantity issued is less than the quantity in the DO. For this, I need to change the delv quantity in the DO via VL02N before I select Post goods issue button. This will change at the same time post the goods issue.
    What I have filled up are the fields:
    E1EDL20-VBELN = DO num
    E1EDL20-VSTEL = Plant
    E1EDL18-QUALF = "PGI"
    E1EDTH13-QUALF = "006"
    E1EDTH13-NTANF = date today
    E1EDL24-POSNR = 000010
    E1EDL24-MATNR = material num
    E1EDL24-WERKS = delv plant
    E1EDL24-LGORT = sloc
    E1EDL24-LFIMG = updated quantity
    But everytime I simulate using WE19, the entire quantity in the DO is not changed at all. The goods issue quantity posted is still the original DO quantity.
    May I know how to do this? Thanks.

    Put value in E1EDL24-LGMNG for qty to pgi.

  • LSMW with IDOC Message type COND_A and Basic type COND_A01

    Hi Sap All.
    in my project we using the LSMW with IDOC Message type COND_A and Basic type COND_A01 and now the requirement is to know the list of the tables which will be updated when i do the LSMW Migration with this IDOC Basic type.
    i have tried to know the list of the tables updated by entering into the transaction we30 and looking at the segments E1KOMG,E1KONH, E1KONP,E1KONM,E1KONW  and i found that the following below are the list of tables which gets updated when i populate the data into IDOC Message type COND_A and Basic type COND_A01.
    KOMG,KONH,KONP,KONM,KONW.
    please correct me if iam wrong.
    regards.
    Varma

    Hi Varma,
    The tables mentioned by you definitely get updated, i guess you can add KONV to the list too, but to be a 100% sure, enable SQL trace and process an IDOC. Then you can look for Insert/Modify/Update statements to get a list of the tables that get updated.
    Regards,
    Chen

  • Relation between message type and output type in ALE

    Hi
    I have a meeage type with me. I want to find the processing routine for the idoc. Procesing routine is acessed from  NACE - application -output type ( as far as i know ). Now how do i know the output type for the message type. Are the output type and message type related ?
    thanks
    sankar

    Hi,
    U can see the output type for message type here WE20 ->outbound parameters -> message control
    For invoice if mesage type is INVOIC and its output type is RD00 or ESYM or MAIL.
    output type is four character code which describes characteristics of output itself
    Regards

  • URGENT!  Idoc Message Type FIDCC2 Not Posting CO Documents

    Hi Everyone,
    Our company is just about to begin using message type FIDCC2 to post entries through FB60/FB65 and FB50.  When you manually enter an entry through any of these transactions, an FI, CCA and PCA document are all created simultaneously.  However, when posting an identical entry through message type FIDCC2, only an FI document is created.  Why are the other documents not being created and is there something that I am missing from configuration or some sort of trigger that is supposed to create the other entries?  Please assist as this is extremely urgent.
    Thanks to all that can assist,
    Pete

    Hi Peter,
    Is your company uses any of the profitability segment fields as well? If so how are you updating this information on to the FIDCC2 idoc and how are you generating any COPA document simultaneously. I am in the same situation and my FIDCC2 idoc updates the FI, CO, PCA components but not the COPA. I am not sure where to populae the Profitability segments on the FIDCC2 type. Please share if you have same issues in your company.
    Regards
    Elphick

  • Problem to transform Flat file to Data Type Structurated and map to IDOC

    Hi all,
    I have a file to idoc scenario.
    The information is like this:
    1#!445#!AI12#!1#!20070214#!DVXXXXR#!201#!31GINHG876#!#!
    2#!#!ETC
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    4#!dades45#!b#!c#!d#!e#!f#!g
    5#!pos5
    where 1, 2, ... = key segments for the file adapter and #! are the field separator.
    this must go to a Data Type with substructures like this:
    (xml)
    .1
    ......2
    .3
    ......4
    ......5
    where 2 is inside 1 and 4-5 inside 3.
    The reason of this is we can get unbounded replays of 3/4/5 for one header.
    But XI reads the information like if all segments are headers.
    .1
    .2
    .3
    .4
    .5
    So the IDOC is bad created.
    Where is the issue?  At Message Mapping all substructures are mapped with his default and at TEST option it works fine.
    Thanks in advance for your help.
    best regards
    Message was edited by:
            Federico Martin
    Message was edited by:
            Federico Martin

    Dear people,
    according to license problems at client, it's impossible to get the convert agent.
    so now we come back to try to solve with normal mapping.
    the next step is try to convert it using 2 message mappings: dt (flat xml) to dt (structurated) and this one to the idoc.
    i suppose it can be done adding program at interface mapping.
    I created the no hiereachical Data Type for load the information and it's fine. But i am unable to get the first mapping OK, because XI has problems with unbounded segments.
    If you agreed and has time, i copy here the information and his structure.
    I receive (#! defines separation and key segment fields are 1,2,3,4,5):
    1#!445#!AH02#!1#!20070214#!DVPOSTER#!201#!31GINHGIN0#!#!
    2#!#!ETC
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    4#!dades45#!b#!c#!d#!e#!f#!g
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    4#!dades45#!b#!c#!d#!e#!f#!g
    5#!pos5
    5#!pos5
    5#!pos5
    The destination must be:
    CHASE A
    1 (1..1)
    ....2 (1..1)
    3 (1..unbounded)
    ....4 (0..1)
    3 (1..unbounded)
    3 (1..unbounded)
    ....4 (0..1)
    5 (1..unbounded)
    5 (1..unbounded)
    5 (1..unbounded)
    CHASE B
    Or, in another case with 5 as child of 3 (like example in last mail)
    1#!445#!AH02#!1#!20070214#!DVPOSTER#!201#!31GINHGIN0#!#!
    2#!#!ETC
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    4#!dades45#!b#!c#!d#!e#!f#!g
    5#!pos5
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    5#!pos5
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    4#!dades45#!b#!c#!d#!e#!f#!g
    5#!pos5
    1 (1..1)
    ....2 (1..1)
    3 (1..unbounded)
    ....4 (0..1)
    ....5 (1..unbounded)
    3 (1..unbounded)
    ....5 (1..unbounded)
    3 (1..unbounded)
    ....4 (0..1)
    ....5 (1..unbounded)
    3 (1..unbounded)
    ....4 (0..1)
    ....5 (1..unbounded)
    Questions:
    How i do for map Data Type (no hierachical) -to-> Data Type (hierachical) and  Data Type (hierachical) -to-> IDOC? Is any loop or context object required?
    Thank you in advance for your help and sorry the long thread.

  • Regarding Message Type Structures

    Dear XIers,
    Is it mandatory to have exact message structures for  both outbound and inbound message types in Interface Mapping (only JAVA/XSLT mapping).
    Thanks,
    jangili

    Hi,
    Is it mandatory to have exact message structures for both outbound and inbound message types in Interface Mapping (only JAVA/XSLT mapping).
    No.
    Firslty during the mapping of message types we specify how the data is to be transformed from the source structure to the target structure.This takes care of the structure of message types.
    While in interface mapping we just speicfy which mapping program is to be used by the interfaces.
    <b>Cheers,
    *RAJ*</b>

  • Not showing  pop up message window when message type I and W

    Hi,
    My requirement is to show the popup message window with material number, material description and ABC indicator of material at Every line item of PO in Transaction ME21N , if material is significant.
    I find Badi to transaction me21n ME_PROCESS_PO_CUST~PROCESS_ITEM
    actually i want show only information about material.
    This Badi ( ME_PROCESS_PO_CUST~PROCESS_ITEM ) is properly working But does not showing Popup Message window
    when i am using Message Type  'I' or "W" .
    <Coding>
    method IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM.
    BREAK-POINT.
    BREAK-POINT.
        IF  SY-TCODE EQ 'ME21N' OR SY-TCODE EQ'ME21' . " ) AND MEPO1211-werks IS NOT INITIAL. " AND IM_LGOBE IS INITIAL.
       BREAK-POINT .
      DATA : VAR_MAKTX TYPE MAKT-MAKTX.
      DATA : VAR_MAABC TYPE MARC-MAABC.
      DATA : P TYPE STRING.
      DATA : P1 TYPE STRING.
    DATA: ls_mepoitem1 TYPE mepoitem,
          ls_header_obj TYPE REF TO if_purchase_order_mm,
          ls_header   TYPE mepoheader,
          lc_werks(1) TYPE c,
          lv_fabkl    TYPE t001w-fabkl,
          lv_plifz    TYPE ekpo-plifz.
       *Get header data
      ls_header_obj = im_item->get_header( ).
      ls_header     = ls_header_obj->get_data( ).
    *Get Item Data
    ls_mepoitem1 = im_item->get_data( ).
        SELECT SINGLE MAABC FROM MARC INTO VAR_MAABC WHERE matnr EQ ls_mepoitem1-matnr AND werks EQ    ls_mepoitem1-WERKS.
        SELECT SINGLE MAKTX FROM MAKT INTO VAR_MAKTX WHERE matnr EQ ls_mepoitem1-matnr.
          IF   VAR_MAABC EQ 'A'.   "LS_MEPOITEM1-SPINF EQ 'A'.
            P = 'is significant material'.
            CONCATENATE  LS_MEPOITEM1-MATNR '' '(' VAR_MAKTX ')'  '' P INTO P1.
           MESSAGE p1 type 'I' .   
            EXIT.
            ENDIF.
            ENDIF.
    endmethod.
    guide me.....

    Hi
    Please, see SAP Note 310154 - ME21N/ME51N: Customer-specific check, generating error log
    I hope this helps you
    Regards
    Eduardo

  • Multiple customers for same message type "invoic" and idoc type "invoic02"

    Dear Experts,
    I have SAP ALE process configured for single customer u2018Au2019 where I send invoic02 idoc (message type invoic) to the customer via PI server. Now I need to add one more customer u2018Bu2019 which require recepient determination. I am not sure whether this resolution of customer address at PI level or config is required at R3 itself.
    I tried to maintain partner profile type as KU but it generates the error "No partner profile is maintained". For existing customer u2018Au2019 I am keeping the partner profile type LS.
    I want to know the following:
    a.Whether the recipient determination at R3 (config of partner profile we20)- if so what are the essential steps. Do I really need to shift partner profile type as KU?
    b.Whether config is required at PI level itself- if so is there any pre-requisite config in R3 to support that in PI.
    I hope my question is clear since this is my maiden attempt to seek solution from expert group.
    Regards & Thanks

    Hi ,
    if you want to trigger the idoc  two times for basic type& Extension..
    1 ) you need to maintain  WE20 Partner Profiles (This is good already you did)
              --> But the Output type for Bsic type & extension type is same so output type is triggered Once so idoc is created One.
    2) try to create another Output type in T-code NACE for extension then two Idocs is created one for Basic and another for Extension.
    Regards,
    Prabhudas

  • Message type DOCMAS and CLFMAS

    Hello ,
    We are transferring the DMS data from one client to another client using ALE technic . Message types used in it are DOCMAS and CLFMAS . While transferring Idoc we face a problem . There is a delay in posting the document from Message type DOCMAS , as the document is not posted CLFMAS Idoc is failed while processing . So kindly suggest me how I can process the Idoc CLFMAS only when the Document from DOCMAS message type is posted .
    Is there any custimizing needs to be done ? ?
    <b>Regards
    Durai</b>

    Check out the parner profiles .
    in that for message type DOCMAS check whelter the radiobutton Transferred Immediately is selected or not .
    If not select that .
    Please reward if useful.

Maybe you are looking for

  • Moving TM backup folder

    I need to move the TM backup folder to another partition of the same external HD, but I've 2 problems: 1) does TM recognize the folder after moving and setting in preferences, or it'll create a new one ignoring it? 2) when I try to create the new par

  • IPad mini wifi issues

    hey guys. hopefully someone can help me out here. I have an iPad mini that I've had for a year now. Up until about 3 months ago everything was working fine,  now for some reason my iPad intermittently disconnects from wifi while streaming. a little a

  • Mighty mouse makes buzzing sound?

    Just gone through the procedures of manually fixing the common problem of the mighty mouse tracking ball having stopped working due to finger junk/maintenance neglect. As the Apple official recommendation of reversing mouse and working out any blocka

  • How to watch home movies on Apple TV?

    I have home movies in IPhoto taken with my Canon Elph. Can I watch these on Apple TV? If so where do I find them?

  • No databases available on CRMM_SEARCH

    Hi, We have Knowledge Search running correctly in the IC Web Client (CRM 5.0).  When you go to the Knowledge Search screen in IC Web, the Database drop-down list contains 3 items (as desired):  Interaction Records, Business Leads, and Service Tickets