Modify control record and send out to external (TAMA) system

Hi All,
I have a scenario to send idoc from ECC 5.0 to 3.1R/3 and then to TAMA system (external system-through TRFC)
In the inbound process code of 3.1R/3, I have to write a custom FM to modify the control record and point to TAMA system and then send it out to TAMA system.
Has anybody got idea about this and what function module need to use for modifying the control record and send it out. Any help is really appreciated
Thanks
Ricky

Hi Ricky,
To access IDoc data and modify it in your custom FM, you could investigate the following FM's:
EDI_DOCUMENT_OPEN_FOR_PROCESS
EDI_SEGMENTS_GET_ALL
They should allow you to access the EDIDD, EDIDC tables.
The IDoc related functions are contained in the function group EDI1, it may be helpful to start from there.

Similar Messages

  • Modify control record and send out to external (TAMA) system using ALE

    Hi All,
    I have a scenario to send idoc from ECC 5.0 to 3.1R/3 and then to TAMA system (external system-through TRFC)
    In the inbound process code of 3.1R/3, I have to write a custom FM to modify the control record and point to TAMA system and then send it out to TAMA system.
    Has anybody got idea about this and what function module need to use for modifying the control record and send it out. Any help is really appreciated
    Thanks
    Ricky

    Hi Ricky,
    To access IDoc data and modify it in your custom FM, you could investigate the following FM's:
    EDI_DOCUMENT_OPEN_FOR_PROCESS
    EDI_SEGMENTS_GET_ALL
    They should allow you to access the EDIDD, EDIDC tables.
    The IDoc related functions are contained in the function group EDI1, it may be helpful to start from there.

  • IDoc Control Record and Status Record Code,  where is it!!!

    Hi,
      Where can i see the code for generation of control record and status record of IDoc.
       Thanks in advance for your answers

    hi ,
    1.first create an segment with the fields u want tcode we31 relase it .
    2. create an idoc and assign segment to it tcode we30.
    3.crate a message type  tcode we81
    4.assign that message to idoc  tcode we 82.
    do the ale configarations .
    now u can write the code in our sender system
    *1.     Create parameters/select-options for input data. i.e., message type, logical system.
    parameters : p_mestyp like edmsg-msgtyp default 'ZKKUMSG',
                 p_logsys like tbdlst-logsys obligatory.
    *2.     Create Data objects for control record, data record and database table.
    data : c_segment like edidd-segnam value 'ZKKUSEG',        "Data record (IDoc)-Segment type
           c_idoctp like edidc-idoctp value 'ZKKUIDOC'.            "Control record (IDoc)-Basic type
    data : begin of i_tab occurs 0,
              ZKSNO   like ZKSTD-ZKSNO,
              ZKSNAME like ZKSTD-ZKSNAME,
           end of i_tab.
    data : w_itab like i_tab.
    data : s_segment like ZKKUSEG.
    data : i_edidd like edidd occurs 0 with header line.
    data : i_control_record like edidc.
    data : i_comm_idoc like edidc occurs 0 with header line.
    *3.     Select the data from responding tables into internal table for a defined condition.
    here you have take ur internal table
    *select single zsno zsname from zkiran into corresponding fields of itab where zsno = p_sno.
    *4.     create control record into internal table.
    i_control_record-mestyp = p_mestyp.         "Message Type
    i_control_record-idoctp = c_idoctp.         "Basic type
    i_control_record-rcvprt = 'LS'.             "Partner Type of Receiver
    i_control_record-rcvprn = p_logsys.         "Partner Number of Recipient
    *5.     create data record into internal table.
    *i_edidd-segnam =   c_segment.
    loop at i_tab into w_itab.
    s_segment-zksno    = w_itab-ZKSNO.                     "Application Data
    s_segment-zksname  = w_itab-ZKSNAME.
    i_edidd-sdata     = s_segment.
    i_edidd-segnam    = c_segment.
    clear w_itab.
    append i_edidd.
    endloop.
    *6.     Process ALE Service Layer using the function module  MASTER_IDOC_DISTRIBUTE.  It returns the corresponding IDoc No.s.
    call function 'MASTER_IDOC_DISTRIBUTE'
      exporting
        master_idoc_control            = i_control_record
      tables
        communication_idoc_control     = i_comm_idoc
        master_idoc_data               = i_edidd
      exceptions
        error_in_idoc_control          = 1
        error_writing_idoc_status      = 2
        error_in_idoc_data             = 3
        sending_logical_system_unknown = 4
        others                         = 5.
    if sy-subrc <> 0.
      message id sy-msgid type sy-msgty number sy-msgno
              with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    *7.     Display Communication IDocs.
    loop at i_comm_idoc.
      write : / 'Communication IDoc No. is : ', i_comm_idoc-docnum.
    endloop.
    *8.     Commit Work.
    commit work.
    i hope this sample code help u .
    thanks

  • Photoshop and elements 13  Working in iPhoto Want to edit image using photoshop elements Did the following  IPhoto Preferences Advanced Edit Photos: In drop down menu chose in Photoshop Elements  Also control click and chose edit in external editor  Drop

    Photoshop and elements 13
    Working in iPhoto
    Want to edit image using photoshop elements
    Did the following
    IPhoto>Preferences>Advanced>Edit Photos: In drop down menu chose in Photoshop Elements
    Also control click and chose edit in external editor
    Drop down menu edit photos in external program>photoshop Elements
    Go to to the image I'm working on  --- selected the image, the clicked on edit. When nothing happened I double clicked the image. Still elements didn't open. Then I opened the Elements editor, went back to iphoto and tried the entire process again. the photo still didn't open on Elements 13 for editing.
    I have 3 Elements 13 books as well as looked on line--all my references say the exact same thing ---- iPhoto>Preferences>advanced>edit in external program>photoshop Elements
    I uninstalled and reinstalled both iPhoto as well as Elements.
    I spoke with application technical support.  There appears to be nothing wrong with my copy of iPhoto.  However there is no support from Adobe.  I waited for over 1.5 hours for chat support several days ago, and finally gave up.

    You are probably choosing the obvious file rather than the correct file as the PSE editor. The actual editor is hidden away inside the Support Files folder. The PSE file at the top level of the PSE folder in Applications is just an alias for the welcome screen and what you're describing is exactly what happens when you choose that. You want this one:

  • Link between control record and infotype 0003.

    Hi all,
    Can anybody explain me, what is the link between control record and infotype 0003?
    Thanks & Regards,
    Lucky.

    Hi,
    Control record is a heart of payroll area(pa03)
    Conrtol record alswa based on payroll area where it determines the current payroll period for the exact date
    It defines the payroll past for retro active accounting recongnation.
    It lock the master data and teh time data to prevent changes from being made during the payroll run, this lock is valid for the paryroll past and the payroll present changes with effect the future can still be made.
    It determines the earliset retrocatice a/cing period.
    In simple control record is to control the payroll status of the employee
    Payroll Status:(IT 0003)
    The Payroll Status infotype (0003) contains data for Payroll Accounting and Time Evaluation.
    The system automatically creates this infotype when the employee is hired. In general, the system updates the infotype and writes the changes to the payroll past.
    You can change the payroll status of an individual employee using Payroll/Retroactive Accounting and Time Evaluation.
    Thanks
    Vibin

  • Texts go into MMS and when I text someone it adds the recipient twice and sends out 2 texts.

    I am having a problem after downloading the verizon update 10.1.0.4189   all texts go into MMS and when I text someone it add the recipient twice and sends out 2 texts.    Anybody have this issue and any luck resolving?

    Just found this thread: http://supportforums.blackberry.com/t5/BlackBerry-Q10/Text-messages-being-sent-switched-to-MMS-and-b... If anyone here's that this resolved, I'd love to know. Thanks!

  • How to send sapmails to external mail systems

    Hi,
    how to send sapmails to external mail systems....
    like if we want to mail a purchase order from SAP System to *@yahaoo.com or @.com.
    TY.

    hi manish,
    u can do it.
    chk this .
    chk this code
    DATA: objpack LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
    DATA: objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE.
    DATA: objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE.
    DATA: objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE.
    DATA: reclist LIKE somlreci1 OCCURS 5 WITH HEADER LINE.
    DATA: doc_chng LIKE sodocchgi1.
    *& Form f_send_mail
    text
    --> p1 text
    <-- p2 text
    FORM f_send_mail .
    *store the vendor name, vendor email id , employee name and employee
    *email id in the internal table int_crb
    Creation of the document to be sent
    CLEAR doc_chng.
    REFRESH objpack.
    REFRESH objhead.
    REFRESH reclist.
    REFRESH objtxt.
    File Name
    doc_chng-obj_name = 'SHIPMENT'.
    Mail Subject
    CONCATENATE 'Shipment Document No.' int_crb_mail-shipdocnum
    'Cleared.'
    INTO doc_chng-obj_descr SEPARATED BY ' '.
    Mail Contents
    objtxt-line = 'Hi,'.
    APPEND objtxt.
    objtxt-line = ' '.
    APPEND objtxt.
    CONCATENATE 'Shipment Document Number ' int_crb_mail-shipdocnum
    ' cleared for move.' INTO objtxt-line SEPARATED BY ' '.
    APPEND objtxt.
    objtxt-line = ' '.
    APPEND objtxt.
    CLEAR objtxt.
    objtxt-line = 'Regards '.
    APPEND objtxt.
    objtxt-line = ' '.
    APPEND objtxt.
    objtxt-line = 'SAP '.
    APPEND objtxt.
    CLEAR objtxt.
    APPEND objtxt.
    DESCRIBE TABLE objtxt LINES tab_lines.
    READ TABLE objtxt INDEX tab_lines.
    doc_chng-doc_size = ( tab_lines - 1 ) * 255 + STRLEN(
    objtxt ).
    Creation of the entry for the compressed document
    CLEAR objpack-transf_bin.
    objpack-head_start = 1.
    objpack-head_num = 0.
    objpack-body_start = 1.
    objpack-body_num = tab_lines.
    objpack-doc_type = 'RAW'.
    APPEND objpack.
    Completing the recipient list
    target recipent
    CLEAR reclist.
    reclist-receiver = int_crb_mail-empperid. "employee email ID
    "wf_empperid.
    reclist-express = 'X'.
    reclist-rec_type = 'U'.
    APPEND reclist.
    copy recipents
    CLEAR reclist.
    reclist-receiver = int_crb_mail-smtp_addr."vendor email id
    reclist-express = 'X'.
    reclist-rec_type = 'U'.
    reclist-copy = 'X'.
    APPEND reclist.
    Sending the document
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = doc_chng
    TABLES
    packing_list = objpack
    object_header = objhead
    contents_bin = objbin
    contents_txt = objtxt
    receivers = reclist
    EXCEPTIONS
    too_many_receivers = 1
    document_not_sent = 2
    operation_no_authorization = 4
    OTHERS = 99.
    COMMIT WORK.
    SUBMIT rsconn01
    WITH mode = 'INT'
    WITH output = ' '
    AND RETURN.
    ENDFORM. " f_send_mail
    for any clarifiaction pls mail me.
    pls reward points, if this helped u.
    regards,
    anversha.
    [email protected]

  • Problem in modifying control record

    Hi All,
    My scenario is Purchase order to Sales order. Once PO is created IDOC will be created and that idoc will be taken as source and i will be modifying the idoc in abap mapping as per requirement.
    All the segements are being modified and getting updated in IDOC but when i am trying to change the control record its not getting reflected in the r/3 but when i check in moni before comming to r/3 the xml struture has changed as per my requirement even for control record also but while comming from XI control record is not getting changed.
    I would like to change senderpartner and sender partner type in control records.
    every configurattion steps has been done  correctly.
    Would request your experiences if you would have faced any this type of situation in your projects.
    Thanks in Advance.

    Apply Control Record Values from Payload
    If you set the indicator, the conversion of communication parties to the IDoc partner is only possible for systems that are not logical systems.
    If you do not set the indicator, all combinations of communication parties and services are handled as services without party.
    If the IDoc XML structure contains a control record during outbound processing on the Integration Server, it is rejected and created again by the IDoc adapter. If you want to include additional values in the control record, set the indicator and provide an appropriate mapping for the values.
    http://help.sap.com/saphelp_nw04s/helpdata/en/96/791c42375d5033e10000000a155106/frameset.htm

  • Configure/create condition records to send out copy of PO to vendor

    Hello,
    I am trying to create a condition record / or configure the system with the objective to send out the PO copy automatically, either in pdf or doc format, to the vendor on saving the PO. Please help in the set up of the same with the steps or idea on how to do it.

    hi
    You need to do some configuration for this.
    u2022     Go to NACE.
    u2022     Select EF and click on OUTPUT TYPES.
    u2022     Then select Output Type NEU and click on processing routines .
    u2022     In that you have to add a new entry - medium 5 .
    u2022     Then you need to assign a program, form routine and form.
    u2022     You can use the standard program i.e. SAPFM06P, FORM routine is always ENTRY_NEU and standard MEDRUCK.
    u2022     Then in PARTNER FUNCTION you need to add a new entry : medium - 5 and function - VN .
    u2022     For subject of the mail go to Mail Title and Texts. In title give PO No. &EKKO-EBELN& .
    u2022     Under General data -> Replacement of text symbols give programme as SAPMM06E and Form Routine as TEXT_SYMBOL_REPLACE.
    u2022     Now the subject will be PO No. 1800004202.
    u2022     You need to maintain your email id in tcode SU01 and also the vendor's email id.
    u2022     Now while creating a new purchase order , change the medium to External Send .
    u2022     Then goto Communication Method and select CS01. ALSO make sure that the Cover Page Text has value PO No. &EKKO-EBELN& .
    now in further data select send immidiately
    now save and chck ur output message in transaction SOST
    u2022     Use note no 191470

  • IDOC control record mapping - Sender Partner number defaulted to log. sys.

    My PI scenario is file to IDOC scenario.
    I have ticked "apply values from payload" checkbox, so Sender Partner Number is being defaulted to logical system assigned to my business system.
    Logical system name has to be unique in PI. My understanding is that I can not have more than 1 business system with  the same logical system assigned to it.
    In SAP, I need to have idocs, coming from different businees systems through PI, set to have the same sender partner number,
    which is not possible when "apply values from payload = 'X' and messages are coming from different business systems.
    Calling all PI Gurus, have you got a workaround ?

    Hi,
    Idoc will be processed in SAP ECC based on the sender details (snprn,sndpor,sndpfc...) of idoc control record..
    instead of different partners name sending in the sender details of control record ...pass the value of the PI logical system name in SNDPRN.... (use only one and this is common for all partners...) any how data records of idoc will have the needed partner details...
    In SAP ECC you need to have this logical system ...to process the received idocs..
    thats it... Hope you got
    Regards
    Rajesh

  • 3 GWIA's and sending out mail ...

    Hi,
    Have 2 GWIAs, (InternalGWIA and ExternalGWIA). I have to create another one to send mail out to another system (External2GWIA).
    I can't send out to External2GWIA. My logs for it show nothing. I checked ExternalGWIA and there is a rejection in that log. BUT, if I send the message out by concatinating the GWIA name in from of the email (e.g. ... gwdomain.gwianame:[email protected]), it will push it OK.
    My route.cfg's are defined OK.
    My "Internet Agent for Outbound SMTP/MIME Messages" entry in the Tools > GroupWise System Operations > Internet Addressing is set to ExternalGWIA. If I chance it to External2GWIA I can send out OK ... but then mail going out through ExternalGWIA attempts to go through External2GWIA.
    Hope this makes sense.
    I need 2 External GWIA's cause they need to activate FlatForwarding. I don't know what effect this would have on my original External GWIA.
    Shouldn't this work ?

    We just decided to use that existing GWIA and implement flatforwarding in it.
    d
    >>> Andy Konecny<[email protected]> 3/3/2013 9:24 pm >>>
    In article <[email protected]>, David Schryer wrote:
    > If I send the message out by concatinating the GWIA name in from of
    > the email (e.g. ... gwdomain.gwianame:[email protected]), it will push
    > it OK.
    That is working as designed, and other than that, you haven't specified
    how you are expecting traffic to use that other domain.
    Generally traffic from a PO is all to one GWIA, but there are methods
    to auto concatenate that might be useful such as the method we used
    before the 'Internet addressing' function was built in (I think it had
    enough rules logic to help).
    Andy Konecny
    Knowledge Partner (voluntary SysOp)
    KonecnyConsulting.ca in Toronto
    Andy's Profile: http://forums.novell.com/member.php?userid=75037

  • In PI how do I convert the XML payload (input) to a text file and send out

    I am extracting data from SAP and sending thru XI / PI to a file (non-sap system).
    On the receiving end, I need the file to be a text file, with one row for each "FTZ_Row concatenated_data" tag in the input.  It needs to be just a plain text file with no XML tags.
    Currently the file gets one record which matches exactly to the XML payload below.
    I want it to create a file that looks like this :
               CONCATENATED DATA 1
               CONCATENATED DATA 2
                012345678912345678MAKTX-TEST LB 123123123123 01/02/2009 Z001WCHA9876543210.12
    here is the payload going thru XI
      <?xml version="1.0" encoding="utf-8" ?>
    - <n0:FTZ_Concatenated_Row xmlns:n0="http://intel.com/xi/INTEL_PROCUREMENT/ForeignTradeZone" xmlns:prx="urn:sap.com:proxy:FI0:/1SAI/TAS0C0412CDBC3E782D0219:700:2008/06/25">
      <FTZ_Row concatenated_data="CONCATENATED DATA 1" />
      <FTZ_Row concatenated_data="CONCATENATED DATA 2" />
      <FTZ_Row concatenated_data="012345678912345678MAKTX-TEST LB 123123123123 01/02/2009 Z001WCHA9876543210.12" />
      </n0:FTZ_Concatenated_Row>
    thanks
    jay

    thanks for the input but I am still having issues - I get an empty file when I use the content conversion option.
    My payload coming into XI is :
            <?xml version="1.0" encoding="utf-8" ?>
    - <n0:FTZ_Concatenated_Row xmlns:n0="http://intel.com/xi/INTEL_PROCUREMENT/ForeignTradeZone" xmlns:prx="urn:sap.com:proxy:FI0:/1SAI/TAS0C0412CDBC3E782D0219:700:2008/06/25">
    <FTZ_Row concatenated_data="CONCATENATED DATA 1" />
    <FTZ_Row concatenated_data="CONCATENATED DATA 2" />
    <FTZ_Row concatenated_data="012345678912345678MAKTX-TEST LB 123123123123 01/02/2009 Z001WCHA9876543210.12" />
    </n0:FTZ_Concatenated_Row>
    Here is the layout of my data type - I am using the same for input & output
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://intel.com/xi/INTEL_PROCUREMENT/ForeignTradeZone" targetNamespace="http://intel.com/xi/INTEL_PROCUREMENT/ForeignTradeZone">
       <xsd:complexType name="FTZ_Concatenated_Row">
          <xsd:sequence>
             <xsd:element name="FTZ_Row" maxOccurs="unbounded">
                <xsd:complexType>
                   <xsd:attribute name="concatenated_data" type="xsd:string" />
                </xsd:complexType>
             </xsd:element>
          </xsd:sequence>
       </xsd:complexType>
    </xsd:schema>
    I mapped these items :  FTZ_Concatenated_Row & FTZ_Row & concatenated_data
    I set up my content convesion with :
      recordset structure   FTZ_Row
    FTZ_Row.fieldSeparator     #
    FTZ_Row.endSeparator     'nl'
    I am not sure why the following row looks like this ??
        <FTZ_Row concatenated_data="CONCATENATED DATA 1" />
    I thought FTZ_Row would be one tag and "concatenated_data" would be another one.
    any help would be appreciated.
    I have read many entries/blogs/etc in SDN but and tried many different setups, but nothing is working.
    thanks

  • I recorded a panel presentation on my Ipod and would like to edit the recording on my itunes so I can export the recording and send it to my colleagues over the internet.  I was able to import the recording to my itunes library but need help editing it.

    Hello, thanks in advance for your help.  I recorded a panel presentation on an ipod and would like to edit the audio recording to just one portion of the recording.  I was able to import the audio into my itunes 11.1.3 music library but I have not been able to edit the length of the recording.  I followed an online tutorial and was able to edit when the recording starts and stops on the recording but I haven't been able to edit out the parts of the recording that I dont want.  Also when I try to export it to my Desktop or to Garageband (not sure if that helps or not) I am not able to export it.  It is currently a .WAV file.  I would like to edit the length of the recording and then export the file onto my desktop.  I would like to email the presentations to my colleagues online so I could also use advice on how to make it a smaller file since it is current 945.6 MB.

    iTunes isn't an editor. You need an app that's intended for editing audio files, like Adobe Audition (http://www.adobe.com/products/audition.html) or Audacity (free in the App Store).

  • Apparently "Canadian Health&Care" hacked my computer and send out a message to everyone on my address list. I need to have them blocked.

    Apparently "Canadian Health&Care" hacked my computer and sent out a message to everyone on my address list. I need to have them blocked.

    Email may not be the best way to move pictures.
    There are lots of ways of moving files.
    A simple and popular way to copy files and share files among your devices.
    https://www.dropbox.com/
    "Box lets you store all of your content online, so you can access, manage and share it from anywhere. Integrate Box with Google Apps and Salesforce and access Box on mobile devices" Rated the most secure cloud storage by SkyHigh Networks.
    https://www.box.com/
    Using iTunes to transfer files:
    http://support.apple.com/kb/HT4094?viewlocale=en_US&locale=en_US
    Files Connect -- "Cloud Storage services like Dropbox, MobileMe iDisk, Google Docs/Picasa, Facebook photos, FTP, SFTP, WebDAV ... AFS (Apple File Shares) SMB (Windows shares)  protocols"
    https://itunes.apple.com/us/app/files-connect/id404324302?mt=8
    Windows File server
    http://itunes.apple.com/us/app/filebrowser-access-files-on/id364738545?mt=8
    "The kiteworks mobile file sharing solution provides secure creation, viewing, and sharing of enterprise content on smartphones and tablets while providing IT and security teams the administrative controls to manage user privileges and access rights necessary to ensure enterprise security and compliance."  " Includes choice of private cloud on-premise."
    http://www.accellion.com/solutions/mobile-enablement/mobile-file-sharing
    "Dukto is a simple application that allows you to share files between devices connected to the same (wireless) LAN network."
    http://www.tidal.it/?page_id=309&lang=en
    http://www.msec.it/blog/?page_id=11

  • Want to replicate Payext  IDocs and send them to another logical system

    Hi all
    we are generating payext Idocs to a bank partner profile using rffoedi1 program. Our requirement is to replicate the same payext IDoc and send to another logical system using a different partner profile.
    I have a rough idea of sucking data from EDID4 table....
    Can any one let me know how the code looks like If we have to create same IDocs again with different control record with same kind of data?
    can some one throw their ideas of doing this with less development work?
    Thanks
    Steve

    Try this way:-->
    1.Using fm IDOC_READ_COMPLETELY get complete data of IDoc you want to send, then change the Header record (EDIDC) with new partner profile, port and other values
    2. Pass these values to fm MASTER_IDOC_DISTRIBUTE.
    (pl remember to clear EDIDS values before calling above said fm)
    This will send your IDoc to new destination
    a®s
    Edited by: a®s on Apr 10, 2008 3:41 PM

Maybe you are looking for