IDOC reading in ABAP

Hey,
found a lot of threads to this issue. Just want to know if I understood correctly.
I created an own IDOC and the communication from XI to SAP system works.
Until now I've got a dummy implementation as process code, which I want to
implement correctly.
Following steps I would do:
- Use same interface structure as BAPI_IDOC_INPUT1 as process code/function module
- in source code calling function module IDOC_READ_COMPLETELY to read the idoc data in internal tables
- loop on internal tables to deal with IDOC data
- after successful editing the data, set IDOC_status
Is this what I have to do? Is the usage of IDOC_READ_COMPLETELY the way you
would do it?
thanks
chris
Edited by: Christian Riekenberg on Jul 11, 2008 10:32 AM

Can you please post the SAP example. I have a requirement to see what all went across in an IDOC and compare them with the time entries in SAP system. I can see what went across in a particular IDOC in tcode WE05, but I want that all to be seen by a program as to compare with what we have on the SAP system.
Please do post that SAP example that helped you.
Thanks a lot.

Similar Messages

  • How to read an IDoc with an ABAP program?

    Hi experts!
    I am new to SAP and I need to read an IDoc with an ABAP program... how to do it?
    Maybe it is possible to read an IDoc into inner table...?
    Hellpful answers and advices will be rawarded.
    Regards,
    Mindaugas.

    hi
    I understand your issue, to pickup an IDOC flat file & post it to R/3 (with or without mapping).
    There is no straight forward solution but there are some ways (Normal way of Working as of now ?!!!) provided in the "How to"
    check this link
    https://websmp101.sap-ag.de/nw-howtoguides
    and look for this guide
    How To Convert Between IDoc XML and Flat Files in XI.30
    Probably you need to automate this using some programs,
    - Create an ALE port of type File
    using transaction WE21 on your
    Integration Engine.
    - Run report RSEINB00 on your
    Integration Engine. The report will
    upload the file, filter the IDoc header
    data, perform the conversion to IDoc
    XML and put the data into the
    pipeline of the Integration Server.
    Therefore it is crucial, that the IDoc
    control record data is populated
    correctly and corresponds to the
    adapter-specific identifiers of your
    sender service. Once the message
    is put successfully into the pipeline
    of the Integration Server, the file is
    deleted.
    Hope this fixes your issue
    regards
    ravish
    <b>plz dont forget to reward points if helpful</b>

  • IDOC generation from ABAP program

    Hi
    I have to object in which I have to Z program which will generate the idoc and pass it to PI system. Can anyone guide me in how to generate IDOC through ABAP custom program. Just need a little guidance in how to create IDOC from an ABAP report.
    Any help would be greatly acknowledged.
    Thanks!!

    Hi I tried to use the program as suggested by Buddhika and Glen, but found error over the statement below:
    i_data-sdata = header_segment_data.
    Highlighted below in code snap. These two fields are not mutually convertible.
    Any suggestions on this.

  • How to create Inbound Idocs in a ABAP program? Any function Module?

    Hello Experts,
    My requirement is : I have sales order data which I extracted from third party system in my internal tables. In the same box I need to create inbound Idocs and then consequently create sales orders.
    I have used the function module IDOC_INBOUND_WRITE_TO_DB to create inbound Idocs from Sales Orders data in internal tables. I have populated all the data records with correct PSGNUM and HLEVEL values. My plan is to create inbound idocs with this function module and send those to IDOC_INPUT_ORDERS function module which creates Sales Orders.
    If a sales order in the internal table in ABAP program contains only one item, then I am getting correct idocs. But if more than one item exists for a sales order then the line item segments which got repeated in Idoc are having PSGNUM and HLEVEL values as zero when I checked in WE02. As a result the hierarchy from the second item segment is getting disturbed and getting the status 60.
    I populated T_EDIDD with data records from  IDOC_INBOUND_WRITE_TO_DB.
    To the function module IDOC_INPUT_ORDERS,  T_EDIDC and T_EDIDD are the input. I observed that in T_EDIDD also the PSGNUM and HLEVEL values are blank.
    I am getting Status 60 with message 'EDI: Syntax error in IDoc (segment cannot be identified)' for idocs which have more than one item.
    I need to extract sales data from third party and create inbound idocs and create sales orders in one ABAP program only. I need to display corresponding Idoc numbers for the corresponding third party sales order number in a listoutput.
    Can anybody please provide inputs?
    Regards.

    Hi Anjali,
    Thanks for the response.
    I have passed the PSGNUM and HLEVEL values while populating the data records. Then I sent the data records and control record information to the function module IDOC_INBOUND_WRITE_TO_DB. Inside this function module there is code to clear the PSGNUM values and HLEVEL values.
    for compatibility: clear administration data of data records
               perform data_records_wipe
                                      tables
                                          t_data_records.
    FORM DATA_RECORDS_WIPE
                      TABLES
                          T_DATA_RECORDS_IN  STRUCTURE EDIDD.
      LOOP AT  T_DATA_RECORDS_IN.
        CLEAR: T_DATA_RECORDS_IN-MANDT,
               T_DATA_RECORDS_IN-DOCNUM,
               T_DATA_RECORDS_IN-SEGNUM,
               T_DATA_RECORDS_IN-PSGNUM,
               T_DATA_RECORDS_IN-HLEVEL.
        modify t_data_records_in.
      ENDLOOP.
    ENDFORM.                               " DATA_RECORDS_WIPE
    This is the code which is clearing all the PSGNUM and HLEVEL values. After coming out of this function module we are getting the error idocs created with disturbed hierarchy.
    I need to create INBOUND Idocs with the data in ABAP program.
    Please let me know if any inputs? Is there any function module existing to create Inbound Idocs inside an ABAP program?
    Regards

  • Hi friends,  IDOC and RFC are sap related.but idoc is in abap stack rfc is

    1)IDOC and RFC are sap related.but idoc is in abap stack rfc is in java stack.what is difference between two.?

    hi ganga,
    The IDoc adapter is used by SAP systems to connect to a centrally configured Integration Engine using IDocs
    which is properitory to SAP integration
    so it doesn't need the Adapter engine.
    refer:
    http://help.sap.com/saphelp_nw04/helpdata/en/ab/bdb13b00ae793be10000000a11402f/content.htm
    The Adapter engine is working on the J2EE Engine.
    RFC Adapter is provided by the AdapterEngine.
    So RFC needs Java Runtime where IDoc doesn't.
    refer:
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/frameset.htm
    regards,
    nikhilbos

  • How to generate an OUTBOUND INVOICE IDOC from the ABAP Program?

    How to generate an OUTBOUND INVOICE IDOC from the ABAP Program? Any Function Module that can be used for this?

    Hi
    This is more of configuration
    (1) Create a Output type with Medium 6 ( Check with your functional consultant)
    (2) Maintain Partner Profiles using WE20 transaction
           Idoc type - INVOIC02
           Message type - INVOIC
           Process Code - SD09
    Regards
    Madhan D

  • Programmatically read the ABAP Stack

    I need to know if a particular program is in the ABAP stack at a specific point in my code.  The program I am looking for is not the calling program so SYST (CPROG, etc.) will not work.
    Does anyone know a way (method or function module) to read the ABAP stack?
    Thanks,
    Mike

    Hi Mike,
    you can use the  system call ABAP_CALLSTACK like this:
    DATA:  BEGIN OF ls_abap_callstack,
               mainprogram LIKE sy-repid,
               include     LIKE sy-repid,
               line        TYPE i,
               eventtype   TYPE dbglevtype,
               event       TYPE dbglevent,
               flag_system,
           END OF ls_abap_callstack.
    DATA:  lt_abap_callstack LIKE TABLE OF ls_abap_callstack.     
    CALL 'ABAP_CALLSTACK'
        ID 'DEPTH'     FIELD 1
        ID 'CALLSTACK' FIELD lt_abap_callstack.
    Kindly regards,
    Stefan

  • Read IDOC content in abap program

    Hi all
    using IDOC number, i'd like to read informations containted in that IDOC.
    In EDI_* Function moduls i have found EDI_DOCUMENT_OPEN_FOR_EDIT
    The problem is that this FM is used to process IDOC to change its content. i supose that the IDOC is enqued when processed by this FM.
    Do you know any other way to access IDOC data content in READ mode
    Thank you in advance
    Regards

    Hi,
    You can use the following FM.
    IDOC_READ_COMPLETELY (Read IDoc Data)
    IDOC_TYPE_COMPLETE_READ (Read IDoc Structure and Segments)
    or
    read the idoc data from database table edid4 and edids (idoc status))and edidc (idoc control data).
    Regards,
    S.Velsankar

  • Idoc enhancement with ABAP

    Hi all,
    we are currently in a project to implement SAP HR as HR master and distribute HR master data to other legacy systems using SAP XI.
    There will be two different interfaces from SAP HR to XI, one for real-time updates of changes (delta) and one for batch updates of complete records. We use SAP R/3 4.7 ext2 and want to use Idoc type HRMD_A06 which contains all HR data (we will have to add segments for two infotypes, but that is not the problem).
    The problem is that there is some information we need to distribute that not automatically gets included in this Idoc type (such as SAP personell number for manager of the org.unit an employee belongs to). My guess is that this has to be filled using some custom ABAP.
    Does anyone have any experience with adding such information to an Idoc? We can always find a suitable field in the Idoc to store the values if we only can retrieve the correct information. 
    And secondly, how do we make sure this extra information is stored for the correct employee segment in the Idoc?
    Finally, can we implement this function module so that it runs after the general Idoc is created, runs through the entire IDoc and adds the correct information for each employee segment, and then send the finished IDoc to XI? This goes for both real-time interface (implemented using change-pointers) and batch interface (scheduled job to collect master data).
    Any information or experience on this matter will be highly appreciated. Any other suggestions to how this problems can be solved are also welcome.
    Thanks in advance.
    Best regards, Kenneth Eriksen

    Hi Kenneth,
    Sorry for the misleading information abt the user exit at the first place.
    For batch process,
    1. Run PFAL transaction.
    2. Follow the same process to determine the manager in user exit EXIT_SAPLRHAL_003. set the parameter flag as 'X'. Also export the parameter 'Flag' to memory id in the user exit after the process.perform the logic to determine manager pernr only if infotype 0001 is filled.
    3. Second user exit EXIT_SAPLRHA0_001 will follow the previous exit. Import the parameter from memory id. if flag eq X. no process.
    4. Manager pernr will be passed.
    For change-pointer process,
    only 1001 information should be triggered by change-pointers.
    1.)run rbdmidoc to trigger change-pointers for hrmd_a.
    2.)user exit EXIT_SAPLRHAL_003 will be executed internally in the first step. should not perform manager logic as no 0001 infotype filled. It means parameter FLAG is blank.
    3). in the user exit EXIT_SAPLRHA0_001 , perform manager logic for change-pointers only if flag eq space.
    following logic should be followed :
    a.) IDOC_DATA fill contains the 1001 records.
    b.) loop at idoc_data.
        read each record and determine 0001 infotype for all employees with new manager(as described in my first reply). append the 0001 records into idoc_data_temp.
    c.) process each record by record in idoc_data.
    d.) after the endloop. move all the records from idoc_data_temp to idoc_data.
    now idoc_data will contain only 0001 records no 1001 records.
    e.) again loop at idoc_data, perform manager pernr logic.
    The change-pointer process is just overriding the standard process and manipulating custom records.
    this is the one way of achieving the solution.
    The other solution to achieve change-pointers is to perform lot of customization.
    1.) create a custom program to read the change-pointers from bdcpv table to read the unprocessed records for message type hrmd_a.
    2.)create infotype 0001 records from 1001 data.
    3.) also perform manager pernr logic for 0001 records as we are not calling standard transaction(master_idoc_create_smd_hrmd).
    4.) follow the logic in the sample program to create idocs.
    FUNCTION ZSKIT_CREATE_IDOCS.
    ""Local interface:
      DATA:
    *·······control·record·for·the·IDoc
              IDOC_CONTROL LIKE EDIDC,
    *·······data·records·for·the·IDoc
              T_IDOC_DATA LIKE EDIDD OCCURS 0 WITH HEADER LINE,
    *·······table·for·the·IDocs·created·by·MASTER_IDOC_CONTROL
    T_COMM_CONTROL LIKE EDIDC OCCURS 0 WITH HEADER LINE,
    *·······partner·type·for·logical·system
    C_PARTNER LIKE EDIDC-RCVPRT,
    *·······help·variable·for·the·check·if·an·IDoc·has·to·be·created
    H_CREATE_IDOC.
    *·variables·specific·for·this·example
      DATA:
    *·······field·strings·with·IDoc·segment·structure
      E1XITEM LIKE ZSKILL_CAT occurs 0 with header line,
    *·······data·to·be·put·to·the·control·record
      C_MESSAGE_TYPE LIKE EDIDC-MESTYP VALUE 'XAMPLE',
      C_BASE_IDOC_TYPE LIKE EDIDC-IDOCTP VALUE 'XAMPLE01',
    *·······segment·types·to·be·put·to·the·data·record·table
      C_HEADER_SEGTYP LIKE EDIDD-SEGNAM VALUE 'E1XHEAD',
      C_ITEM_SEGTYP LIKE EDIDD-SEGNAM VALUE 'ZSKILL_CAT'.
      E1XITEM-SKILL_ID = '12345678'.
      E1XITEM-SKILL_TYPE = 'SKI'.
      E1XITEM-SHORT_TEXT = 'Test'.
      E1XITEM-LONG_TEXT = 'Test skill'.
      E1XITEM-TENANT_ID = 'check1234'.
      E1XITEM-BEGDA = sy-datum.
      E1XITEM-ENDDA = sy-datum.
      E1XITEM-SKILL_UP = '01234567'.
      E1XITEM-SKILL_DOWN = '3456789'.
      append E1XITEM.
      clear  E1XITEM.
      E1XITEM-SKILL_ID = '12345678'.
      E1XITEM-SKILL_TYPE = 'Test'.
      E1XITEM-SHORT_TEXT = 'Check'.
      E1XITEM-LONG_TEXT = 'check skill'.
      E1XITEM-TENANT_ID = 'test1234'.
      E1XITEM-BEGDA = sy-datum.
      E1XITEM-ENDDA = sy-datum.
      E1XITEM-SKILL_UP = '01234567'.
      E1XITEM-SKILL_DOWN = '3456789'.
      append E1XITEM.
      clear  E1XITEM.
    *···put·the·application·item·record·to·the·IDoc·segment
      loop at e1xitem.
    *···append·record·to·IDoc·data·table
        T_IDOC_DATA-SEGNAM = C_ITEM_SEGTYP.
        T_IDOC_DATA-SDATA = E1XITEM.
        APPEND T_IDOC_DATA.
      ENDLOOP.
      idoc_control-rcvprt = 'LS'.
      IDOC_CONTROL-RCVPRN = 'DI2440'.
      IDOC_CONTROL-MESTYP = 'ZSKIT'.
      IDOC_CONTROL-IDOCTP = 'ZSKIT'.
      CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
    *·in·update·task···"if·application·document·is·posted·in·update·task
      EXPORTING
      MASTER_IDOC_CONTROL = IDOC_CONTROL
      TABLES
      COMMUNICATION_IDOC_CONTROL = T_COMM_CONTROL
      MASTER_IDOC_DATA = T_IDOC_DATA.
    *exceptions
    *···········error_in_idoc_control··········=·1
    *···········error_writing_idoc_status······=·2
    *···········error_in_idoc_data·············=·3
    *···········sending_logical_system_unknown·=·4
    *···········others·························=·5.
    *·A·commit·work·has·to·be·done.·It·could·also·be·done·in·the·calling
    *·application.
      COMMIT WORK.
      READ TABLE T_COMM_CONTROL INDEX 1.
      IF SY-SUBRC <> 0.
    *·no·IDoc·was·created,·you·can·react·here,·if·neccessary
      ENDIF.
    ENDFUNCTION.
    5.) also set the change-pointers records as 'processed' status using standard function module.(search for function module starting like change_pointers_read_mode_set)
    Please decide between 2 solutions .
    Also revert back for any  concerns.
    Regards,
    Senthil

  • Sending IDOC form the ABAP Program

    hi friends,
               can we send IDOC ( of type MATMAS) form ABAP Program. if it possible how can we send, are there any function modules to do so....could any one tell me the procedure to accomplish the task...i have finished the configuration sting in both reciver and sender systems....just need to send material in form of IDOC from abap program.
    ( Note: not form BD10).
    Thanks in advance,
    Santosh.

    Function MG_IDOC_CREATE_FULL_MAT
    ( to send the material in full) or
    MASTERIDOC_CREATE_REQ_MATMAS (based on idoc reduction)
    Just pass
    1 ) receiving system: fields rcvprn /
    rcvprt. If you leave these 2 fields blank, then it will determine the receiving system(s) via the distribution model.
    2 ) marakey = list of material numbers you want to send
    3 ) message type.
    example :
    CALL FUNCTION 'MG_IDOC_CREATE_FULL_MAT'
    EXPORTING
    rcvpfc = ' '
    rcvprn = receiver_prn
    rcvprt = receiver_prt
    sndpfc = ' '
    sndprn = ' '
    sndprt = ' '
    message_type = mestyp
    TABLES
    marakey = t_matkeypack
    EXCEPTIONS
    OTHERS = 0.

  • How can user attach file to interactive form, and be read by abap program?

    Hello,
    I created an abap interactive form, sent to the user, then user fills out the form fields, then it is uploaded back to sap, then my program reads this data and process it.
    It works.
    Now I want users to be able to attach any file they want, and the abap program to extract this file out of the PDF, to put it into SAP (or anywhere).
    I succeeded in attaching a file, I can "see" it via function module get_annotations, but I get the file in compressed form by Adobe (filter="FlateDecode").
    Do you know how to unzip the file, or is there another way to attach files in adobe reader/extract them via abap?
    I use acrobat reader 8.1.2
    Thx a lot!
    sandra
    Below is the xml obtained by GET_ANNOTATIONS. We see that there are other text annotations, and that the attached file has {length="98005"}, though real file (before "attach file" to the PDF, and also after "detach file") has length 111 995 bytes. It's why I deduced that there is a compression (I also tried to extract it as-is and open it with adobe but it doesn't work.
    <?xml version="1.0" encoding="UTF-8"?>
    <xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve">
      <annots>
        <highlight rect="212.347,624.257996,252.979004,636.539978" creationdate="D:20080604100938+02'00'"
    name="2114308b-275d-4eca-8bfc-c8288ef4a77c" color="#FFFF00" flags="print"
    date="D:20080604100938+02'00'" title="mtresori" subject="Texte surligne "
    coords="215.432999,636.179016,249.893005,636.179016,215.432999,624.619019,249.893005,624.619019"
    page="0">
          <popup rect="595.276001,516.179016,775.276001,636.179016" flags="print,nozoom,norotate"
    open="no" page="0"/>
        </highlight>
        <fileattachment rect="15.345001,802.841003,29.345001,822.841003"
    creationdate="D:20080604101011+02'00'" name="f6e12648-c9b0-4cd1-b08b-82876c8300d7"
    color="#4055FF" flags="print,nozoom,norotate" date="D:20080604101019+02'00'" title="mtresori"
    subject="Piece jointe" file="SAP_WIDGETS2.pdf" mimetype="application/pdf"
    creation="D:20080603112937+02'00'" modification="D:20080603112937+02'00'" size="111995"
    checksum="9F846412B510089F7C6DBCC6527C6339" page="0">
          <contents-richtext>
            <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
    xfa:APIVersion="Acrobat:8.0.0" xfa:spec="2.0.2">
              <p>SAP_WIDGETS2.pdf</p>
            </body>
          </contents-richtext>
          <data MODE="raw" encoding="hex" length="98005" filter="FlateDecode">
    4889CC570B5414D719F651A38EC468D5C6A2980104E528BBF3B8F3B2626405242920020A0AA4AEBB
    C3B2BAECEAEEA2A018030A628C8FFA4A0F568F58426A1EF5118FB5266A8D9AA2B16A55044541C5
    A62656EBA315935AE8BDB3BBEC2C0BD9D5B39EB3671966FEFBFCE6BF
    ETC. (all hexa code is the attached file, but with compression by adobe)
          </data>
        </fileattachment>
        <text rect="96.187408,680.099976,116.186996,698.099976" creationdate="D:20080613144537+02'00'"
    name="73360fcf-f5e5-4d5b-9315-fe4c42924300" color="#FFFF00" flags="print,nozoom,norotate"
    date="D:20080613144617+02'00'" icon="Comment" title="srossi" subject="Note" page="0">
          <contents-richtext>
            <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
    xfa:APIVersion="Acrobat:8.0.0" xfa:spec="2.0.2">
              <p dir="ltr">
                <span dir="ltr" style="font-size:10.0pt;text-align:left;color:#000000;
    font-weight:normal;font-style:normal">
    ffffffffffffffffffffff
                </span>
              </p>
            </body>
          </contents-richtext>
          <popup rect="595.276001,578.099976,775.276001,698.099976" flags="print,nozoom,norotate"
    open="yes" page="0"/>
        </text>
        <text rect="100,82,120,100" creationdate="D:20080613144627+02'00'" state="Marked"
    name="d524b7d5-1a85-4b62-80b3-5875dd152c51"
    color="#FFFF00" flags="hidden,print,nozoom,norotate" date="D:20080613144627+02'00'"
    icon="Comment" title="srossi" subject="Note"
    inreplyto="73360fcf-f5e5-4d5b-9315-fe4c42924300" statemodel="Marked" page="0">
          <contents-richtext>
            <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
    xfa:APIVersion="Acrobat:8.0.0" xfa:spec="2.0.2">
              <p>Marked definie par srossi</p>
            </body>
          </contents-richtext>
          <popuprect="595.276001,-20,775.276001,100" flags="print,nozoom,norotate" open="no" page="0"/>
        </text>
        <text rect="100,82,120,100" creationdate="D:20080613144633+02'00'" state="Accepted"
    name="88af2cb6-7516-4f21-81e6-97edc7a85184"
    color="#FFFF00" flags="hidden,print,nozoom,norotate" date="D:20080613144633+02'00'" icon="Comment"
    title="srossi" subject="Note" inreplyto="d524b7d5-1a85-4b62-80b3-5875dd152c51" statemodel="Review"
    page="0">
          <contents-richtext>
            <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
    xfa:APIVersion="Acrobat:8.0.0" xfa:spec="2.0.2">
              <p>Accepted definie par srossi</p>
            </body>
          </contents-richtext>
          <popup rect="595.276001,-20,775.276001,100" flags="print,nozoom,norotate" open="no" page="0"/>
        </text>
        <text rect="100,82,120,100" creationdate="D:20080613144642+02'00'" state="Marked"
    name="a8c6b485-c3f9-44e2-ad53-c61b2766d9d5" color="#FFFF00" flags="hidden,print,nozoom,norotate"
    date="D:20080613144642+02'00'" icon="Comment" title="srossi" subject="Note"
    inreplyto="f6e12648-c9b0-4cd1-b08b-82876c8300d7" statemodel="Marked" page="0">
          <contents-richtext>
            <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
    xfa:APIVersion="Acrobat:8.0.0" xfa:spec="2.0.2">
              <p>Marked definie par srossi</p>
            </body>
          </contents-richtext>
          <popup rect="595.276001,-20,775.276001,100" flags="print,nozoom,norotate" open="no" page="0"/>
        </text>
        <text rect="100,82,120,100" creationdate="D:20080613144647+02'00'" state="Accepted"
    name="0136b689-575c-46b8-a21a-86e3c8d73904" color="#FFFF00" flags="hidden,print,nozoom,norotate"
    date="D:20080613144647+02'00'" icon="Comment" title="srossi" subject="Note"
    inreplyto="a8c6b485-c3f9-44e2-ad53-c61b2766d9d5" statemodel="Review" page="0">
          <contents-richtext>
            <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
    xfa:APIVersion="Acrobat:8.0.0" xfa:spec="2.0.2">
              <p>Accepted definie par srossi</p>
            </body>
          </contents-richtext>
          <popup rect="595.276001,-20,775.276001,100" flags="print,nozoom,norotate" open="no" page="0"/>
        </text>
        <text rect="100,82,120,100" creationdate="D:20080613144657+02'00'" state="Accepted"
    name="a21fc3c5-cf6a-4c6f-bc1f-328a91050b4e" color="#FFFF00" flags="hidden,print,nozoom,norotate"
    date="D:20080613144657+02'00'" icon="Comment" title="srossi" subject="Note"
    inreplyto="2114308b-275d-4eca-8bfc-c8288ef4a77c" statemodel="Review" page="0">
          <contents-richtext>
            <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
    xfa:APIVersion="Acrobat:8.0.0" xfa:spec="2.0.2">
              <p>Accepted definie par srossi</p>
            </body>
          </contents-richtext>
          <popup rect="595.276001,-20,775.276001,100" flags="print,nozoom,norotate" open="no" page="0"/>
        </text>
      </annots>
      <f href="acTempF-00000028453-00000000089"/>
      <ids original="03473EFED11DB2110A00000000000000" modified="959796E85292D54DB7FA558CAAD4A346"/>
    </xfdf>

    Hello everybody,
    I am sure you have an answer to my question above. It was :
    how is it possible for a user to ATTACH files to a PDF interactive form, and then be able to READ them via a program ? (I guess the solution to read them via ABAP or JAVA is quite the same?)
    Thx a lot !
    sandra

  • Portal user ID  read in abap webdynpro.

    Hi All,
    We have developed on web dynpro application for Dealer Portal. The Dealer logs into the portal with his ID. How can we capture this Portal User ID of the Dealer in our application.
    The Portal User ID and the R/3 User ID are different.
    I have followed the given steps...
    Step 1
    Within the Main Window of your ABAP Web Dynpro application, select Inbound Plugs tab. Now double click on the Startup Plug Named 'DEFAULT' (or what ever you have called it if you have changed this since window was created).
    Step 2
    Within the plug method HANDLEDEFAULT Add a new importing parameter below 'WDEVENT' parameter call it IV_USER of Type UNAME.
    Step 3
    Now within the code section of the plug method HANDLEDEFAULT you can freely assign the value of IV_User to an attribute of your component controller. i.e. wd_comp_controller->userid = IV_USER. Alternatively you could assign it to a wdp context node / attribute.
    Please note this value will not be available with the WDDOINIT of your main view as WDDOINIT method of this view is called before the window HANDLEDEFAULT method. Put your code into the method WDDOMODIFYVIEW of your main view instead.
    Step 4
    Double click on the webdynpro Application, within the Parameters tab add a new parameter. You should just be able to use the F4 help on the param column and select the IV_USER entry.
    Step 5
    Save your application nad activate your web dynpro
    With the 'Content Administration' tab of your portal
    Step 1
    Create an iview of type ABAP Web dynpro specifying the application name as that of your created wdp (must be exactly the same).
    Key information for creating iView:
    Create as iView template (select template as SAP Web Dynpro iView)
    namespace = sap (check service name in SICF if this is not correct)
    Application Name = ZWDA_EXAMPLE(name of your wdp created in se80)
    Application Parameters = IV_USER=
    Step 2
    Save and setup any other details required when creating any other iView
    but not able toget user id .
    Rakesh

    Hi,
    Why don't you use the sy-uname to get the login details of user.
    Portal users are mapped to R/3 system, so using sy-uname will definitely give the user details.
    Function module to get employee details by passsing user name
      CALL FUNCTION 'HR_GET_EMPLOYEES_FROM_USER'
        EXPORTING
          user               =  sy-uname
          iv_with_authority = space
        TABLES
          ee_tab            = lt_ee_tab.
      IF lt_ee_tab[] IS NOT INITIAL.
    Passing employee number to export parameter
        READ TABLE lt_ee_tab INTO ls_ee_tab WITH KEY user = sy-uname.
        IF sy-subrc = 0.
          ev_pernr = ls_ee_tab-pernr.
        ELSE.
          ev_failed = gc_failed.
        ENDIF.
      ELSE.
        ev_failed = gc_failed.
      ENDIF.
    Does this help?
    Thanks,
    Rahul

  • IDOC to Non-ABAP-System

    I am trying to send an IDOC to a Non ABAP system. The receiving system consists of an "IDOC Listener" which receives and sends. The RFC Destination for the connection between the PI and that system is type T (TCP/IP). When checking it in SM59 or IDX1 on the PI, everything looks fine - connection works. Still when I try to send a message, the adapter call fails with the message "RFC Destination incorrect". Is it necessary to have a type 3 (ABAP system) connection for the IDOC adapter and if yes, is there any way to bypass this? The scenario works fine if I communicate between a standard R/3 4.7 and the 3rd party system (even with the type T destination) - nevertheless PI is intended to be used in between for monitoring etc. - therefore the direct R/3 <-> 3rd Party scenario is no option for me. Any clues highly appreciated.
    Cheers,
    Andy

    Hi,
    >>>Is it necessary to have a type 3 (ABAP system) connection for the IDOC adapter and if yes, is there any way to bypass this?
    I did a scenario like this (and the other way round) a year ago and as far as I remember I didn't use RFC dest type 3 .
    there is an easy way to find it out - just use IDOC classes from service.sap.com/connectors
    (server) in order to check what kind of RFC does it expect - I tested those libraries and they worked with PI
    without any issues (and with corresponding RFC dest)
    Regards,
    Michal Krawczyk

  • Read internal ABAP Event Registration

    Hi Experts,
    I need to read the internal event registration table of ABAP. Any ideas how to access this?
    Thank you!
    Bodo

    Hi
    I think, for this purpose, system fills internal table or calls methods.
    Use SE30 transaction which can show you processing of internal tables and method calls  within concrete time period in the transactions, programs and function modules.

  • Webservice  to Idoc/File using ABAP mapping

    Hi Experts,
    I need your expert advise on below scenario.The flow of the scenario is..
    1)I will get a control record from a webservice(SOAP sender adpater), this initiates the process flow.
    2)based on control record ,The ABAP mapping program will call a program(within the PI sys) to fetch the data from DB table.then the ABAP mapping program will have to create 2 messages for the target. One is IDoc and another one is File.
    Pls suggest the best approach.
    Regards,
    Srini

    Hi Prateek,
    Thanks for quick reply.
    there is a main program which has different classes and methoda to fetch the data from DB tables.I dont want to touch this main program.
    what  i am going to do is, I will this main program from abap mapping by passing the control record information.based on this control record,the main program will fetch data for ABAP mapping.From ABAP mapping, i have to generate 2 messages,one for IDOc and another one is for File.
    Hope you got my requirement.
    Regards,
    Srini

Maybe you are looking for

  • How to restore an Iphoto library from Time Machine

    I backed up last sunday onto time machine -all went well. Due to sillyness lost my Iphoto library from my 13 inch afterwards;I was trying to transfer my data to another mac (my 15 inch that had a new hard drive )using migration assistant . no Iphoto

  • Search Fields value based on the input.

    Hi Experts, I was trying to develop a web dynpro with two  input-fields and process the logic based on the input-fields. The scenario is,have two Input fields, the value for the first input-field a static search help is assigned and for the second in

  • Maximum Parameter Size?

    I am working on a report which the user can select from a number of text templates from a web form. One of the options is custom text (if the pre-defined ones aren't good enough). This text is passed from the ASP page to Crystal as a parameter, and p

  • Excel 2010 to Adobe X Cell Contents Cut Off

    Trying to create an Adobe X file from an Excel 2010 workbook. Issue is multiple cells have contents cut off. The entire contents of the cell does not display in the pdf file. Tried using both the Excel built-in Acrobat "Create pdf" method and the Exc

  • Dunning - grouping of items disregarding company codes

    Hi all, I have set up dunning procedure and the client has more that one company code. Each company code has items posted to it. The problem is that a dunning notice is printed out for every company code and they want all items that are dunned to be