IDOc creating and postinng in the inbound system.

i one requirement. i will get sales orders in flat file from legacy system. i need to consolidate the sales orders and post in the syatem as debit memo request.here i need to create the idoc with consolidate sales order and post in the same system.i need to use only IDOC.
i am confused in one step.
1. we will read the data from flat file and consolidate the orders.
2. for one consolidate order we will create IDOC .which function module we should use to create IDOC?
3.what kind of mapping we should do for this?
4.after creating IDOC.i need to post from the same custom program? how can i do this?
5.if i use IDOC_INBOUND_SINGLE. will it create IODC and also POST?
if anybody got this type of requirement plese help me.

hi
THIS SAMPLE PROG MAY HELP YOU
constants:   c_doctyp type edidc-idoctp value 'ZUSRDET01', IDOC TYPE
             c_segnam type edidd-segnam value 'Z1USRDET01', SEGMENT TYPE
             c_mestyp type edidc-mestyp value 'ZUSRDET'. MESSAGE TYPE
  data:      it_zusr02 type usr02 occurs 10,
             it_edidc type edidc occurs 0,
             it_edidd type edidd occurs 0,
             wa_zusr02 type usr02,
             wa_edidc type edidc,
             wa_edidd type edidd,
             wa_z1usrdet01 type z1usrdet01,
             v_occmax type idocsyn-occmax,
             v_nbseg type i.
            clear wa_zusr02.
            clear wa_edidc.
            Save the message type and the basic IDoc type in the control segment.
            move c_mestyp to wa_edidc-mestyp.
            move c_doctyp to wa_edidc-idoctp.
            Retrieve the maximum number of segments in the basic IDoc type.
            select min( occmax )  from idocsyn  into v_occmax  where idoctyp eq c_doctyp and segtyp eq c_segnam.
            Save the whole USR02 table content in the IT_ZUSR02 internal table.
            select * from usr02 into corresponding fields of table it_zusr02.
            Create a data segment for each line of IT_ZUSR02.
            loop at it_zusr02 into wa_zusr02 .
              move-corresponding wa_zusr02  to wa_z1usrdet01.
              clear wa_edidd.
              move c_segnam to wa_edidd-segnam.
              move wa_z1usrdet01 to wa_edidd-sdata.
              append wa_edidd to it_edidd.
              clear wa_zusr02.
             clear wa_z1usrdet01.
            endloop.
           Count the number of data segments.
              describe table it_edidd lines v_nbseg.
           If the number of data segments exceeds the maximum allowed number,then display an error message.
              if v_nbseg gt v_occmax.
              write:/ 'ERROR'.
              endif.
              call function <b>'MASTER_IDOC_DISTRIBUTE'</b>
                exporting
                  master_idoc_control                  = wa_edidc
                OBJ_TYPE                             = ''
                CHNUM                                = ''
                tables
                  communication_idoc_control           = it_edidc
                  master_idoc_data                     = it_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.
<b>reward points for useful ans</b>
<i>Regards
Ankit</i>

Similar Messages

  • I have a new mac book air and somehow iPhoto was installed twice.  Also, a second library was created and it became the default library.  I attempted to switch to the original library but it won't open.  what can I do to revert to the old library?

    I have a new mac book air and somehow iPhoto was installed twice.  Also, a second library was created and it became the default library.  I attempted to switch to the original library but it won't open.  what can I do to revert to the old library?

    Both iPhotos open to a default library (#2) which has 300+ photos,  I attempted to "switch to library" under the file tab in iPhoto and tried to choose "other library" which had most of my photos.  When I attempt to open it, it doesn't do anything.  I can see it and there are 2 libraries but it won't open.
    Have you tried to open your old iPhoto library by double-clicking it directly, instead of using the File menu?  That should work, if you are running iPhoto '11 and the library has been created by that version or an older version.  DO you get an error message, if you select the library directly in the Finder?
    I checked and it is the latest version of iPhoto.
    Is it iPhoto '11, version 6.0.5? "Latest version" is ambiguous, because it will depend on your system version.
    Where is your iPhoto Library stored?

  • Configuring tomcat and apache on the same system

    i need to configure tomcat and apache on the same system.
    first i have configured apache and it is working well.
    Next is have configured tomcat and it is working well.
    i need to interlink tomcat and apache. so i downloaded jk connector and i have configured it.
    i gave an entry in the httpd.conf as
    Include /tomcat/conf/auto/mod_jk.conf
    i have copied the file mod_jk.so to /usr/local/apache/libexec/
    went i start apache after the entry is given it gives the error like this
    cannot load /usr/local/apache/libexec/mod_jk.so into server: ld_so.1. /usr/local/apache/bin/httpd: fatal : libgcc_s.so.1 : openfailed : no such file or directory in linux
    please help to configure this.
    i have done every thing as it is in apache.org documentation. please give the complete configuration. some say that tomcat is not compiled according to apache1.3. but i configure jk connector as --with-apxs=/usr/local/apache/bin/apxs
    send me the reply
    thankqs in advance

    Hi,
    I'm working in a linux machine and choose to use also two different users. Of course I'm using two different ORACLE_HOME directories.I think that the best approach.Just a question ,are you keeping the "GROUP" same or different?
    Anand

  • Can I run Photoshop CS4 and CS5 on the same system?

    I read somewhere a zillion years ago (right?) that you coould run CS4 and CS5 on the same system but at the time I wasn't even considering it.
    Run on the same system - not ness to run at the same time
    Or should I install it on a seperate drive (bootable) and go that route. What has everyone found to work and/or not work?
    Thanks in advance for your help
    BJ

    Yes, you can run CS4 an CS5 on the same computer.  They install in different folders and don't get in each other's way.  As a matter of fact, you will find many posts in this forum from the experts recommending to keep CS4 (or an earlier version) when installing CS5.  This way, there is no danger of losing any older plug-ins you may have that aren't compatible to CS5.
    When I installed PS CS5 I had problems with my scanner driver.  Instead of spending loads of time fixing that problem, I just use PS CS4 when I want to spend an afternoon scanning things. I'm not recommending that "lazy man's" solution, but it is an example of how CS4 and CS5 can be used on the same system.

  • HT4848 Hello- My laptop needs the OS X recovery run. Can I download the software directly to a thumb drive without affecting my desktop unit? The Geek Squad said they need to wipe my hard drive and re-install the operating system. Thanks.

    Hello- My laptop needs the OS X recovery run. Can I download the software directly to a thumb drive without affecting my desktop unit? The Geek Squad said they need to wipe my hard drive and re-install the operating system. Thanks.

    They already damaged you Mac by fooling with the BootCamp partition without knowing what they were doing. I wouldn't suggest haveing them help you do anything.
    Here is the article that describes the Recovery HD: http://support.apple.com/kb/HT4718?viewlocale=en_US&locale=en_US
    First, see if you can boot into the Recovery HD. Restart and hold down cmd-r until you see the gray screen. It should boot into Recovery. If your Mac shipped with Lion or Mountain Lion, it will boot into Internet Recovery if it cannot boot into the Recovery HD on the hard drive.
    They should have tried this at the store.

  • NetWeaver 7.0 and ERP to the same system

    Hi,
    We currently have a SAP ERP Development system with SAP ERP 2005 (ECC 6.00, kernel 7.00) with ABAP only (not Java).
    We would like to install a Business Intelligence (BI) system but we don't have any other available server.
    I would like to know if it is possible to install SAP Netweaver 7.0 (including BI) in the previews mentioned system. Is there a Guide available?
    The second question that I have is if it is proper for BI to have a development and a production system?
    Thanks.

    Hi,
    check the other thread if it can help you,
    ECC and BI in the same system
    For BI, you may have only ABAP or both ABAP+JAVA. in case of only ABAP you can't use the BI functionality on Java. Now what functionality you would get extra in BI-Java, check here..
    http://sapport.blogspot.com/2008/03/business-intelligence-java-components.html
    Regards,
    Debasis
    Edited by: Debasis Sahoo on Apr 16, 2009 10:59 AM

  • HT202879 I downloaded the new version of pages about a month ago.  Today I tried to open documents that I created and saved with the new version and received a message that I needed to download the new version.  The app store shows the download.  HUH?!?

    I downloaded the new version of pages about a month ago.  Today I tried to open documents that I created and saved with the new version and received a message that I needed to download the new version.  The app store shows the download.  HUH?!?

    I'm not sure what you mean by it making accessing files more complicated. I have both Pages 4.3 & Pages 5.1 icons in my Dock as well as Numbers 2.3 & Numbers 3.1. I continue to use the iWork '09 versions for my everyday needs. As long as the new versions are in your Applications folder & the '09 versions in the iWork '09 folder, Software Update will not have a problem updating them even if Apple should come out with a new update for the '09 versions.
    Because I have moved the new versions to an external drive & renamed the apps because I want '09 to be the default apps, I do have to remember to move them back to my applications folder & restore the original names before updating. But since you like the new versions this "complication" doesn't apply to you.

  • Create user both in the satellite system and in solman

    Hi
    I wonder if I need to open all my user's that are in the satellite system (ECC) in the solution manager for the purpose of create support message or I can only create them as BP?
    If I don't need to open them, What is the proper way to configure the RFC?
    Best regard's
    Lior Grinberg

    Hi,
    in a normal service desk scenario you do not neet to create users in Sol Man. You just create business partners. If you want the users to logon to Sol Man and edit a document then they also need a real user there (linked via BP - employee):
    For creating messages from satellite system you usually maintain RFC destinations from Sol Man (SMSY) to the connected systems. Then you use the generated *_BACK destination in your satellite system and add it to table BCOS_CUST.
    All these steps and many more are described in IMG in Solution Manager.
    Regards

  • Creating Delivery based on the Inbound IDOC received.

    Hi all,
    I have a requirement where in, Outbound Delivery for Sales order is to be created based on the inbound IDOC received from a third party.  The standard idoc type DELIVERY03, requires the Delivery Number for updating the order but it cannot create a delivery number.
    Can any one suggest which IDOC type can be used for this or if there is any alternative solution?

    Hi,
    You can use FM IDOC_INBOUND_WRITE_TO_DB to create an inbound IDoc.
    CALL FUNCTION 'IDOC_INBOUND_WRITE_TO_DB'
        EXPORTING
          PI_STATUS_MESSAGE       = I_EDIDS
        IMPORTING
          PE_IDOC_NUMBER          = DOCNUM
          PE_STATE_OF_PROCESSING  = STPROC
          PE_INBOUND_PROCESS_DATA = I_TEDE2
        TABLES
          T_DATA_RECORDS          = I_EDIDD
        CHANGING
          PC_CONTROL_RECORD       = I_EDIDC
        EXCEPTIONS
          IDOC_NOT_SAVED          = 1
          OTHERS                  = 2.
    Check the following link:
    http://www.sapbrain.com/TUTORIALS/TECHNICAL/IDOC_tutorial.html
    <b>Reward points</b>
    Regards

  • Need help in updating Inco terms 1 and 2 in the Inbound delivery creation

    Hi Group,
    I have created an output type that will be triggered before an Inbound Delivery is created from the Outbound Delivery ( this scenario is in STO orders - Inter company stock transfer process ).
    I have copied a standard processing routine and customized it but, I am not able to update the 2 fileds (INCO1 and INCO2) in the item delivery of the Inbound Delivery. I was using the FM 'WS_DELIVERY_UPDATE' to update these 2 fields( by passsing the values fetched from the Outbound Delivery into the structure 'vbkok_wa' and the Inbound delivery created into the field 'delivery' of the FM ).
    When I run the the FM this is giving me errors and thus no Inbound Delivery is getting created.
    Please suggest me with some other way of updating these fields in the Inbound Delivery.
    and one more thing is that, I was selecting the Inco terms from the table LIKP directly, but this should not be the proper way to read the Incoterms, so please suggest me a way to read these 2 fields from the Outbound Delivery.
    to summarize, I need an FM to get the Incoterms from Outbound Delivery initially, and then, require another FM to update these Incoterms in the Inbound Delivery( this is a typical scenario in an STO - Stock Transport Order ).
    Please let me know your input on these 2 cases.
    Thanks for the help in advance.
    Regards
    Vishnu.

    Hi Group,
    By implementing the BADI 'LE_SHP_DELIVERY_PROC' this particular requirement can be fulfilled.
    Regards
    Vishnu.

  • Lookout limitation​s and selection of the computer system for lookout

    This is regarding the limitation of the lookout i.e. upto how much IO lookout is reccomended to use.
    or it is on the basis of the l4p or lks file size basis.
    Do you have some criteria for the selection of the computer system for lookout on the basis of the IO's.
    is there any criteria by which we can check the execution cycle time for the lookout process.
    Is there any NI controller also avaiable for lookout applications?

    From what I have observed, there is no standard.  The best thing to do is to create test setups.
    Its entirely possible that a system with 100 IO may require more processing/memory than a 5000 IO system.  Database, archiving, reporting, analytics, etc.
    It is variable.
    Just for reference on our systems, we dont use the IO count for performance curves, we go based on the site configurations for the system.
    A site could be 1 pump, 6 pumps and a tank, 1 pump and a tank, 4 tanks, etc.  Consider than a tank may only take 5 IO and a well upwards of 50 IO each, we could hit 150-200 IO per site.
    Smaller systems (<10 sites) we have run very successfully on Atom based servers (not netbooks...).
    10-40 sites run well on basic dual-core workstations with 2GB or more of RAM
    40-100 we recommend quad-core servers with 4GB or more of RAM.
    (100+ gets a little more intricate)
    We try to make sure that the system is not more than 15% loaded (memory and/or CPU) by services at normal work.  Lots of room left over for future growth or unexpected workloads and backup routines.
    Forshock - Consult.Develop.Solve.

  • Please help- error related to update edidc in idoc creating and postiong

    Hello,
    I am using 'IDOC_WRITE_AND_START_INBOUND' for idoc creataion and posting.
    I am posting in the same system.
    Geting following error-
    Update was terminated 
    Error Info...   EDI: Error during database insert/update in table EDIDC
    Please give suggestions.
    Thanks in advacne.
    Vaibhav

    Hello,
    I excuted SM 13.  Following details are coming. Any guess from this?
    Function Module        EDI_DOCUMENT_CLOSE_PROCESS_UPD
    Status                 Update was terminated
    Report                 LEDI1FU1
    Row                    39
    Error details   Class:     E0         Number:    057
    EDI: Error during database insert/update in table EDIDC
    Thanks,
    Vaibhav

  • BI Idoc type not same as the source system Idoc type

    Hi Experts,
    We have  refreshed BI 7.0 from production to quality system and while restoring in source system in RSA1 we are getting error message " BI Idoc type ZSZD005 is not the same as source system Idoc type ZSAD008" with ID-RSAR371
    Quick response would be really appreciated
    Regards,
    RaviChandra

    Hope this will be helpful for you
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a04af5ab-5737-2b10-67aa-88e25e80b325

  • How to reverse the Credit memo in AR if it's created and posted into the GL

    Hi All,
    Can any one suggest on below issue:-
    If i have created a credit memo in AR and posted into the GL also. but after that i realizse that i have made a wrong entry now i want to rectify the errror .
    How do i rectify the entry if i created Credit memo in AR and it' posted into the GL also. Now want to resverse it. ?????????
    regards
    Sujeet

    Hi Sujeet,
    Please have a look, if the process suggested below is of any help:
    Subject:      How To Unpost Transactions in AR
         Doc ID:
    Note:219307.1     Type:      HOWTO
         Last Revision Date:      29-DEC-2005     Status:      PUBLISHED
    •     goal: How to unpost transactions in Accounts Receivable
    •     Goal: How to unpost a batch transferred from AR to GL
    •     Fact: Oracle Receivables
    •     Fact: Oracle General Ledger
    •     Fact: ARGLTP - General Ledger Transfer Program
    •     Fact: ARGCGP - Clear GL Interface Table
    Fix:
    Run the concurrent program ARGCGP to unpost (reset the posted status) for the
    Affected AR transactions.
    1. Verify the following before running ARGCGP.
    - The AR period affected is open
    - The correct posting_control_id is identified. Otherwise, running
    the program will make the problem worse by allowing data to be
    posted twice.
    - The batch has not been imported/posted to the GL
    (N) As GL Superuser, Navigate, Journals, Enter
    Query up batch name %<posting_control_id>%
    - The transactions cannot be found in the GL_INTERFACE table
    2. To run the program, it should be setup as a concurrent request.
    Note: The program can be run from the Unix command prompt however
    it will not pickup _ALL tables in a multi-org environment.
    - System Admin Responsibility: Concurrent > Program > Define
    - Query ARGCGP (as the short name)
    - Click 'Copy To'
    Give it a new program name and short name
    For example: ARGCGP-Reverse AR Posting
    - Click on Use in SRS
    - Save
    - Click on Parameters
    - Enter these parameters and save:
    Seq Paramater Valueset Default Value Required Display
    4 Set of Books id AR_SRS_SET_OF_BOOKS_ID Constant yes yes
    5 Posting_control_id 20 Characters yes yes
    6 Reset_gl_pst_date 6 Characters Constant Y yes yes
    7 del_gl_interface 6 Characters Constant Y yes yes
    8 debug_flag 6 Characters Constant N yes yes
    Description of Parameters
    - set_of_books_id = The ID for the book posted from AR
    - posting_control_id = the unique id for the original posting run from AR
    to GL. Can be identified by querying the
    AR_POSTING_CONTROL table if value is not known.
    - reset_gl_pst_date = (Y)es or (N)o flag to indicate if records in AR
    marked as posted should be reset so that they are
    postable again
    - del_gl_interface = (Y)es or (N)o flag to indicate if records for this
    posting_control_id should be deleted from
    gl_interface table
    - debug_flag = (Y)es or (N)o flag to put additional debug
    information in the log file
    3. Add the new program to Revenue Recognition Request Group.
    - Security > Responsibility > Request
    - Query up Group Revenue Recognition, Application Oracle Receivables
    - Add a new line
    - Report and from LOV choose ARGCGP-SRS
    - Save
    4. Change the user's responsiblity to Receivables User and run the process.
    5. Rerun the GL Interface.
    * WARNING: Before updating any tables in SQL*Plus,
    * perform a BACKUP of the affected tables.
    Additional info:
    When you cannot enter any parameters under point 2, please check if there is
    clicked on Use in SRS.
    Thanks
    Manish Jain.

  • I was cleaning my macbook pro and i deleted all my files including itunes. Then when i turn on my itunes it says the folder"itunes" cannot be found or created, and is required. the default location for this folder is inside the "music" folder. help please

    My itunes keep saying The folder “iTunes” cannot be found or created, and is required. The default location for this folder is inside the “Music” folder.iTunes needs a library to continue. You may choose an existing iTunes library or create a new one. please help i presschooseexisting cuase i have one but then it says this The  file cannot be found or created. The default location for this file is in the “iTunes” folder in the “Music” folder. please help

    I was cleaning my macbook pro and i deleted all my files including itunes
    Restore your computer from your backup. 

Maybe you are looking for

  • Goods receipt for the dangerous materials

    Hi Experts, I have a requirement, while doing goods receipts i need to know it is a dangerous goods. Please let me know how to configure this. Thanks, Geve

  • Reg:doubt in dynamic generated internal table

    hi everyone,              i generated a internal table dynamically,the output is in fied symbol,i want to create a internal table using the field symbol sturture,how to create that???? plz tell me how to create a internal table referencing field symb

  • What is image dpi after "Reduce Image File Size"

    Does anyone know the resulting image dpi after using the "Reduce Image File Size" command in pages? My mother is trying to prepare some things for pre-press, and can't send her document to the printing press, because the pages docs are friggin huge!

  • Internationalization in Portals

    Hi All, I am trying to do an application in Internationalization in portals. -> For that I have prepared the properties files and kept them in the dist\private\classes folder. -> Written the code for accessing the resource bundle by using getString()

  • Mountain Lion Graphics Apps Crashing

    I have a new MacBook Pro that came loaded, unfortunately, with Mountain Lion. After dealing with everything from no connectivity, to a second monitor that no longer could be hooked up, things were working relatively well. Suddenly, now, however, when