Refresh Idoc Problems

After a refresh what are the critical objects to check besides Partner Profiles for Idocs. We have an issue that we thought we changed everything necassary, but we still have an issue in the outbound SAP idoc that says stat 26 first:EDI:Syntax error in Idoc segment, then stat 29: entry in outbound table not found - refers to EDP13. Also, the idoc heirarchy of segments is coming in at the same level instead of parents and child segments.
     Any suggestions?   Thank-You.

Hi,
Please check whether the partner profile is in active status or not.
Go to classification tab and check partner status. Perhaps it was set to 'I' (inactive).
This is one of the common happened prior to system refresh. The ALE admin. usually set all partner profile to I.
Are there any user exits involved in your IDoc? Perhaps you may want to reactive them (just to be sure).
Also please check the distribution model (BD64), IDoc Ports (WE21) and RFC (SM59) as well perhaps they are still pointed to copy system (PROD)?
Regards,
Ferry Lianto

Similar Messages

  • Insert and then show the result and refresh page problem

    hi all,
    I collect the form value and put them into db, and then display this student 's inform out from db including the one we just submit, first I do it on this way
      insertpayment(UserId, FeeType, DuteDate, OfficerReason, OtherReason, CompleteDate,
                            InterviewDate, ApprovalDate,PaymentYear);
                   studentRecords= getFound(UserId);
                     userSession.setAttribute("studentRecords", studentRecords);
                     RequestDispatcher disp;
                   // disp = getServletContext().getRequestDispatcher("/WEB-INF/jsp/   studentRecords= getFound(UserId);");
                     disp = getServletContext().getRequestDispatcher("/showPayment");
                    disp.forward(req, res); then whenever I refresh my showRecords.jsp" I call the insert function. THAT IS HORRIABLE.
    I try to move the studentRecords= getFound(UserId); to my showPayment servlet and then forward the result to showRecords.jsp, but I alwarys get error
    PWC4011: Unable to set request character encoding to UTF-8 from context /report, because request parameters have already been read, or ServletRequest.getReader() has already been called
    How should I handle this kind of problem??

    Karan, thank you for the link, i read a few articles, I only get the sample part part use res.sendRedirect("/myfolder/showPayment"); in my insert servlet and use forward to display the page
    userSession.setAttribute("studentRecords", studentRecords);
                  RequestDispatcher disp;
                  disp = getServletContext().getRequestDispatcher("/WEB-INF/jsp/secure/admin/showRecords.jsp");
                   disp.forward(req, res);   
    this solute the refresh page problem, but bring the new problem I can't use the following way to disable the back button. not the perter solution
    maybe I did not understand PRC more advice!!
    response.setHeader("Cache-Control","no-cache"); //Forces caches to obtain a new copy of the page from the origin server
    response.setHeader("Cache-Control","no-store"); //Directs caches not to store the page under any circumstance
    response.setDateHeader("Expires", 0); //Causes the proxy cache to see the page as "stale"
    response.setHeader("Pragma","no-cache"); //HTTP 1.0 backward compatibility

  • Inbound - IDoc problem

    Hi Friends,
    Can anybody help me . I am facing a problem in IDOC inbound processing.
    My scenario in SALES PER RECEIPT - POS like this: I have to read XML (From PC) file and i have to post it.
    I am using Idoc - WPUBON01. After reading XML file i used Function module to distribute - MASTER_IDOC_DSTRIBUTE.
    In we02 i checked Idoc is generating but status showing 29.
    So run the report RSEOUT00. But i am getting message like 'No idoc is selected for processing'.
    Plz help me what i have to do. I created port also.
    Regards,
    P. Kumar.

    Hi,
    sarath has told valid point..don't use master_idoc_distribute,instead use the bapi
    bapi_idoc_input1..
    plz check the sample code how to do with inbound idoc,as u have got the data ,u just need to call the bapi and post it..
    check the code and proceed..
    FUNCTION zdtsint052f_gpoms_to_sap_gm.
    ""Local interface:
    *"  IMPORTING
    *"     VALUE(INPUT_METHOD) LIKE  BDWFAP_PAR-INPUTMETHD
    *"     VALUE(MASS_PROCESSING) LIKE  BDWFAP_PAR-MASS_PROC
    *"  EXPORTING
    *"     VALUE(WORKFLOW_RESULT) LIKE  BDWF_PARAM-RESULT
    *"     VALUE(APPLICATION_VARIABLE) LIKE  BDWF_PARAM-APPL_VAR
    *"     VALUE(IN_UPDATE_TASK) LIKE  BDWFAP_PAR-UPDATETASK
    *"     VALUE(CALL_TRANSACTION_DONE) LIKE  BDWFAP_PAR-CALLTRANS
    *"  TABLES
    *"      IDOC_CONTRL STRUCTURE  EDIDC
    *"      IDOC_DATA STRUCTURE  EDIDD
    *"      IDOC_STATUS STRUCTURE  BDIDOCSTAT
    *"      RETURN_VARIABLES STRUCTURE  BDWFRETVAR
    *"      SERIALIZATION_INFO STRUCTURE  BDI_SER
    *"  EXCEPTIONS
    *"      WRONG_FUNCTION_CALLED
    Purpose            :On recording the material consumption from       *
                        manufacturing tickets in GPOMS system, GPOMS     *
                        will report the data to the SAP system.Based     *
                        on this message, goods issue to the process order*
                        will be posted in SAP. This interface will       *
                        used for storage location managed materials      *
                        in SAP.                                          *
    Program Logic      :Loop at the data records of IDOC and to get the  *
                        Order number and SAP Movement type               *
                        If the Material document already exists for this *
                        Order number and Movement type then give error   *
                        else call standard FM 'BAPI_IDOC_INPUT1' to      *
                        Material Documents in SAP.                       *
    Declaration of Constants                                             *
      CONSTANTS :lc_item_create(25) TYPE c VALUE 'E1BP2017_GM_ITEM_CREATE',
                 lc_mbgmcr(6)       TYPE c VALUE 'MBGMCR'.
    Declaration of Variables                                             *
      DATA : lv_index TYPE sytabix,
             lv_retcode type sy-subrc.
    Declaration of Workareas                                             *
      DATA: lwa_e1bp2017_gm_item_create TYPE e1bp2017_gm_item_create,
            lwa_data         TYPE edidd, " Work area for IDOC
            lwa_control      TYPE edidc. " Work Area for control rec
    Read the control data information of idoc.
      loop at idoc_contrl INTO lwa_control Where mestyp = lc_mbgmcr.
    Extract the data from the segments.
        LOOP AT idoc_data INTO lwa_data
        WHERE docnum = lwa_control-docnum and
              segnam = lc_item_create.
    *->> Set the tabix of the internal table
          lv_index = sy-tabix.
    Move the Material Document Item Segment data
          MOVE lwa_data-sdata TO lwa_e1bp2017_gm_item_create.
    Modify the material document item data  internal table
          PERFORM sub_modify_idocdata changing lwa_e1bp2017_gm_item_create.
    *->> set the changed values to the IDOC SDATA
          MOVE  lwa_e1bp2017_gm_item_create TO lwa_data-sdata.
    *->> Modify the table
          MODIFY idoc_data FROM lwa_data index lv_index.
    Clear the Work areas
          CLEAR : lwa_data,
                  lwa_e1bp2017_gm_item_create.
        ENDLOOP.                                     "LOOP AT t_idoc_data
    Call the BAPI function module to create the
    appropriate Material Document
        CALL FUNCTION 'BAPI_IDOC_INPUT1'
          EXPORTING
            input_method          = input_method
            mass_processing       = mass_processing
          IMPORTING
            workflow_result       = workflow_result
            application_variable  = application_variable
            in_update_task        = in_update_task
            call_transaction_done = call_transaction_done
          TABLES
            idoc_contrl           = idoc_contrl
            idoc_data             = idoc_data
            idoc_status           = idoc_status
            return_variables      = return_variables
            serialization_info    = serialization_info
          EXCEPTIONS
            wrong_function_called = 1
            OTHERS                = 2.
        IF sy-subrc = 1.
          RAISE wrong_function_called.
        ENDIF.
      endloop.
    ENDFUNCTION.
    ***INCLUDE LZDTSINT052F_GPOMS_GMF01 .
    *&      Form  sub_modify_idocdata
    Modify the material document item data  internal table
    FORM sub_modify_idocdata
    CHANGING pwa_e1bp2017_gm_item_create TYPE e1bp2017_gm_item_create.
    contant declaration
      CONSTANTS: lc_261(3) TYPE c VALUE '261'.
      DATA : lv_aplzl LIKE resb-aplzl,
             lv_aufpl LIKE resb-aufpl,
             lv_subrc LIKE sy-subrc,
             lv_charg LIKE resb-charg,
             lv_uom LIKE pwa_e1bp2017_gm_item_create-entry_uom.
      CLEAR: pwa_e1bp2017_gm_item_create-reserv_no,
             pwa_e1bp2017_gm_item_create-res_item.
    *->> Get SAP storage bin & Storage type from the Z table
      SELECT lgtyp lgpla
        INTO (pwa_e1bp2017_gm_item_create-stge_type,
              pwa_e1bp2017_gm_item_create-stge_bin)
         UP TO 1 ROWS
        FROM zdtsint050_sttyp
         WHERE zstorage_typ = pwa_e1bp2017_gm_item_create-stge_type
          AND  zstorage_bin = pwa_e1bp2017_gm_item_create-stge_bin.
      ENDSELECT.
      IF sy-subrc NE 0.
        CLEAR: pwa_e1bp2017_gm_item_create-stge_type,
               pwa_e1bp2017_gm_item_create-stge_bin.
      ENDIF.
      PERFORM get_oper CHANGING pwa_e1bp2017_gm_item_create.
    Get the Reservation number and Reservation item number
    basing on the idoc data.
      SELECT rspos werks lgort
             INTO (pwa_e1bp2017_gm_item_create-res_item,
                  pwa_e1bp2017_gm_item_create-plant,
                     pwa_e1bp2017_gm_item_create-stge_loc)
             FROM resb
             UP TO 1 ROWS
             WHERE rsnum = pwa_e1bp2017_gm_item_create-reserv_no
             AND   matnr = pwa_e1bp2017_gm_item_create-material
             AND   charg = pwa_e1bp2017_gm_item_create-batch
             AND   aufnr = pwa_e1bp2017_gm_item_create-orderid
             AND   vornr = pwa_e1bp2017_gm_item_create-activity
             AND   bwart = lc_261.
      ENDSELECT.
      IF sy-subrc <> 0.
    Start of insertion for R31K993797
        CLEAR lv_charg.
        SELECT rspos werks lgort
             INTO (pwa_e1bp2017_gm_item_create-res_item,
                  pwa_e1bp2017_gm_item_create-plant,
                     pwa_e1bp2017_gm_item_create-stge_loc)
             FROM resb
             UP TO 1 ROWS
             WHERE rsnum = pwa_e1bp2017_gm_item_create-reserv_no
             AND   matnr = pwa_e1bp2017_gm_item_create-material
             AND   charg = lv_charg
             AND   aufnr = pwa_e1bp2017_gm_item_create-orderid
             AND   vornr = pwa_e1bp2017_gm_item_create-activity
             AND   ( splkz = 'X' or
                     splkz = space )
             AND   bwart = lc_261.
        ENDSELECT.
        IF sy-subrc <> 0.
    End of insertion for R31K993797
          SELECT SINGLE werks lgort
                INTO (pwa_e1bp2017_gm_item_create-plant,
                       pwa_e1bp2017_gm_item_create-stge_loc)
                FROM resb
                WHERE rsnum = pwa_e1bp2017_gm_item_create-reserv_no.
          CLEAR : pwa_e1bp2017_gm_item_create-reserv_no,
                  pwa_e1bp2017_gm_item_create-res_item.
        ENDIF.
      ENDIF.
    get SAP UOM
      SELECT SINGLE zsap_uom
                    INTO lv_uom
                    FROM zca_uom_conv
                    WHERE zext_uom = pwa_e1bp2017_gm_item_create-entry_uom.
      IF sy-subrc = 0.
        pwa_e1bp2017_gm_item_create-entry_uom = lv_uom.
      ENDIF.
    ENDFORM.                    " sub_modify_idocdata
    *&      Form  get_oper
         Get the operation
         <--P_PWA_E1BP2017_GM_ITEM_CREATE_RE  Segment
    FORM get_oper  CHANGING p_pwa_e1bp2017_gm_item_create TYPE
                   e1bp2017_gm_item_create.
      DATA : l_aufpl LIKE afko-aufpl,
             l_aplzl LIKE afvc-aplzl.
      REFRESH : i_op.
      UNPACK p_pwa_e1bp2017_gm_item_create-orderid TO
             p_pwa_e1bp2017_gm_item_create-orderid.
    Get the reservation and routing number for the order
      SELECT SINGLE
             rsnum
             aufpl
             FROM afko
             INTO (p_pwa_e1bp2017_gm_item_create-reserv_no,
                   l_aufpl)
             WHERE aufnr = p_pwa_e1bp2017_gm_item_create-orderid.
      IF sy-subrc = 0.
        CALL FUNCTION 'CONVERSION_EXIT_NUMCV_INPUT'
          EXPORTING
            input  = p_pwa_e1bp2017_gm_item_create-activity
          IMPORTING
            output = p_pwa_e1bp2017_gm_item_create-activity.
      ENDIF.
    ENDFORM.                    " get_oper
    i have modifeid the incoming data,in ur case its not needed ,only first few lines until the bapi u have to see..if u have any query let me know..
    Regards,
    Nagaraj

  • IDX2 doens't refresh IDoc structure

    Hello everybody,
    I have a problem with the IDX2. There is a Z IDoc which has changed. So I deleted the old entry in the IDX2 and load it again from the system. But the structure is not refreshed. I tryed to load it from another XI System (the development XI and not the quality XI) but from the same R/3 backend. And there the structure is refreshed. So it seems to be a problem of the XI and not the R/3 backend.
    We are on NW04s SPS 13.
    Did anybody know this problem and can help me.
    Thanks

    Hi,
    Following two should solve your problem:
    Goto IDX1 edit port and then save it again it will refresh connection b/w R/3 and XI.
    Goto IDX2 delete metadata and import Idoc again.
    You can also refer to note: 907957 (not sure as you are already on higher patch)
    Regards,
    Gourav
    Reward points if it helps you

  • IDOC PROBLEM (STATUS - 51)

    Hi Gurus,
    I have two problems that we really need corrected as soon as possible.
    1. Before the upgrade last friday night, outstanding IDOCs (51 error) were listed as IncomingInvoices. Now, they are being listed as zBUS2081.
    Application document not posted 51
    1.Goods Movement
    2.zBUS2081
    3.service entry
    please change it from zBUS2081 back to IncomingInvoices.
    2. We've been dealing with an annoying issue since the last major upgrade to SAP. That problem is refreshing. We'll be in transaction BD87, make a correction to an IDOC, back out of the IDOC, push the refresh button, and then we wait.....and wait.....and wait....until we go to the top left, and click the stop transaction option. Then we have to double click back on BD87, get our variant (again), resort the errors, then we're able to click on the edited IDOC option to process the corrected IDOC. Before the last major upgrade, we could make our changes, click the refresh button and BAM the screen would be updated immediately. This is the way it should be working. Would you please look into whatever is causing it to stall? It takes up quite a bit of time to stop the transaction, go back in, refetch the variant, etc. The extra work is unnecessary.
    Provide the solution asap.
    Regards,
    Chiranjeevi.

    Please stick to the Rules.
    1. Post in the right forum - for IDOCs that will data transfer - now moved for you.
    2. Do not say "ASAP" or otherwise express that you're in a hurry.  You maybe - we're not.  Any answers are made out of goodwill.  It is considered by many very rude to try to hurry people up.
    3. Don't post the same question in more than one forum.  I've rejected the other one.
    Did you copy and paste these issues out of your client/employers help desk?
    matt

  • PowerMac G4 533DA & HDTV - video resolution / refresh rate problem

    Hope someone can help, I need to access more resolution / refresh rates than I currently get in the Leopard display control:
    I have a PowerMac G4 533 Digital Audio running Leopard 10.5.8 (unsupported).  It has an upgraded AGP videocard, a ( flashed PC - RV200 chipset) Radeon 7500 w/ 64MB and a DVI output w/ a VGA adapter.  I have used this Mac perfectly with my 19" widescreen Samsung SyncMaster 940BW, at a resolution of 1440 x 900 / 60Hz / millions of colors.  This monitor is actually for my MacPro, but I used it for the G4 to set it up.
    I  moved it to my living room to use as a basic HTPC.  Since it runs Leopard, it has up to date VLC, Quicktime for video files and a working Superdrive for movies.  I don't expect it to play anything more than 480p properly, I think that was the best I got on YouTube.  But if I have a DVD ripped to DivX or MP4 it plays them fine on the Samsung monitor.
    I connected it to my Viewsonic N3760w 37" 1080 HDTV.  It turns on, gray screen w/ Apple and gives me a working desktop.  The problem is that I cannot get it to give me the correct resolution and more importantly it seem to have the wrong refresh rate.  It is currently set at 1280 x 768 / 60Hz / millions of colors.  The screen give me like a small line slowly moving up across screen, higher refresh rates only make it movie faster up the screen.
    According to my Viewsonic, these are the resolutions for computer using the VGA plug on the tv:
    PC - 1360x768 (preferred) , 1024x768, 1280x768
    Mac G3/G4/G5 - up to 1280 x 1024, 1280x720 (preferred)
    Please note all of these are lower resolution than my Samsung monitor.  My Viewsonic also has on screen adjustment of " phase " and " frequency " as well as the usual color, contrast, etc available.  Is there a 3rd party app to manually adjust the resoluion and refresh rate?  I have seen Windows programs, does one exist for Mac OS X?
    TIA, sorry for the long post

    My Viewsonic also connected by VGA, no problem.
    I wish I knew more. I checked out the app you did a trial of. I noticed this statement on their web site:  Quote
    "After rebooting monitor stays blank
    For some reason your monitor does not accept the installed frequency. SWITCH IT OFF!"
    This is the type of statement that would 'worry me.' -- having the phrase: SWITCH IT OFF! all in caps seems to imply a possibility of damage...which I mentioned in my initial post. (and the site goes on to talk about how you should even then connect another monitor to change the settings you've made that were not accepted).
    As I said, though, I wish I knew more for sure about this. It seems that you not only did the obvious of checking System Peferences>Display, but also realize the Viewsonic has buttons that can influence it's screen image, most about position of the image on the screen but at least one item about resolution on mine. (under Setup Mode)
    For what it's worth, my Viewsonic is about 6 years old now, still fine, and has eight (8) possible resolutions shown in System Preferences.
    Re: Your numbers.
    It is currently set at 1280 x 768 / 60Hz / millions of colors. 
    PC - 1360x768 (preferred) , 1024x768, 1280x768
    Mac G3/G4/G5 - up to 1280 x 1024, 1280x720 (preferred)
    If you're only talking about a difference of 1280 x 768 and G4 1280 x 1024, perhaps just stretching the picture using the Viewsonic buttons is the way to go.
    Or, from the numbers, perhaps the G4 just wants a resolution closest to it's preferred state!?
    Anyhow, good luck.

  • Refresh Idoc Metadata in PI 7.31 Java Only

    Hello experts,
    We are facing issue to refresh the Idoc metadata every time when we change Idoc structure in ECC for Idoc outbound scenario.
    We have imported the latest Idoc structure in ESR and assigned that to MM,OM and IFolw. Still in message monitoring we can see the old Idoc structure.
    Is there anywhere else to import Idoc metadata like it used to be in Dual Stack idx2 ??
    Regards,
    Suman

    Hi Suman,
    If you are new with Idoc in PI  you try with the sap.help documentation: http://help.sap.com/saphelp_nw73ehp1/helpdata/en/50/980951964146f1a7f189b411796bae/content.htm
    Regards

  • Mapping with IDoc problem

    Hi All
    I am having a problem where if I get over about 30 records from my 3rd Party in a file. This data is mapped to the Materials Master IDoc(MATMAS05) and it gets a mapping error when trying to run thru the mapping.
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_MATCAT_MATMAS_</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>
    If I take this data from the Payload in SXMB_MONI and test in the Graphical Mapping tool in Integration Design it crashes with the above error. If I take this file and break into 2 parts and then send thru the mapping tool both files has no error. Does anyopne have any idea why this error occurs(could this be a memroy error - but for like 30 records) and how I can fix this as we would like to do a mass upload - about 9000 records(materials).
    Your help will be appreciated.
    Thanks
    Clinton

    Hi
    This is such a weird error.
    I have now started taking this file that I receive from the 3rd party with 200 records and tested it with the mapping tool. The results are as follow: From record 1-31 goes successful, 32-147 goes successfully and 148-200 goes successfully. So if I take the file as one file it crash, but if I break the file into the above 3 files it goes thru fine. for the first part it can only take 31 records, the 115, and then the rest. This does not make any sense, can someone please give me some advise.
    Thanks
    Clinton

  • File to IDOC problem .............

    HI I have a file to IDOC scenario,
    data from file is mapped to IDOC structure,
    there is a field in the IDOC structure <name> size 50, and after that there is a field called <ID> size 4,
    i populate the structure and send it to R/3, there when i see it in we05, the IDOC is seen as containing the values of both <name> and some parts of the field <ID>..in the field <name>..........
    though in sxmb_moni, the IDOC structure produced is all correct

    i have tried all the things u mentioned..but its not working...
    i reimported everything.....refreshed everything........
    somehow its taking the size as 25, and if i keep the field empty, even then it takes some values from the next field.......
    is there any  other places to look for............
    what are the function module that i can debug to see the problem

  • Refresh rate problem with external 20 inch acer

    I am having issues hooking up an external montior via the dvi to vga dongle. The refresh rate seems shaky and the only refresh rate the computer gives me is 59.9 ?
    I recently had my logic board replaced and am not sure if this was an issue prior.
    thanks in advance.

    I've isolated the issue only happening when using taxing apps like photoshop. Seems to happen when the fans kick in.
    could this be an interference problem or possibly heat isssue?

  • JAVASCRIPT AND JSF PROBLEM REFRESHING PAGE PROBLEM

    Hello everyone, I am currently using visual JSF and javascript to to disable a fileupload component when a radio button is clicked. I don't have any problems getting it to work if I need to disable a button, a textfield or other visual JSF components. For some reason, i can't disable the fileupload component and I get this error when the JAVASCRIPT is called:
    Error: document.getElementById("form1:fileUpload1").refresh is not a function
    Source File: http://localhost:8080/TestSingleEvent/theme/com/sun/webui/jsf/suntheme4_2-080320/javascript/webui.js
    Line: 22
    My javascript code is the following:
    document.getElementById("form1:fileUpload1").refresh("form1:radioButton1");return false;
    I would appreciate some help here. Why is it that when I replace the fileUpload with i.e a textfield i don't get errors..
    Is it something to do with the webui.js ?
    Many thanks.

    There is no such thing as refresh() in the [DOM element|http://developer.mozilla.org/en/DOM/element]. How did you come to this? Did you a wild guess in the around without reading the docs? Don't do that.
    What exactly do you want to achieve? Reset its value? Then set the 'value' property to null. Disable the element? Then set the 'disabled' property to true.
    I've been helpful enough with this offtopic question. If you still stucks, please continue at a Javascript oriented forum. There's one at under each webdeveloper.com.

  • Solaris8+patch display refresh rate problem

    I have installed the 109401-05 video patch for Solaris8 to update the video
    card drivers. But now at 1600x1200 screen resolution the maximum display
    refresh rate is always 60Hz, altough higher settings in kdmconfig. The behaviour is similar at 1280x1024, but the max. rate is 80Hz. I have tryed
    this with the ATI Xpert2000pro and Xpert98 graphic cards.
    Without the patch the refresh rate is OK (with the Xpert98 card). The
    motherboard is Abit KT7.
    Does anybody know what could be the problem?
    Thanks, Albin

    Hmm, if the refresh rate was OK before you installed the 109401-05
    video driver patch, why don't you uninstall that patch? Or do you
    need some other bugfix included in 109401-05?
    Otherwise the 60Hz problem problem with certain old ATI cards is not unknown to me:
    See this Solarisonintel posting for a possible solution.

  • G/L Idoc problem

    Hi All,
    I am posting an invoice from a flat file. First of all i will execute the program RSEINB00 and input the file name. This program will create an idoc from the flat file.
    Next, I will execute the program RBDAPP01 to process the idoc and post an invoice.
    The problem i am facing is, When there are more no of lines (G/L accounts) in the file ( Say 5948 lines ) the created IDoc data records are as follows.
    it has total 47872 segments. And it splits the idoc and each segment block is having 993 lines (G/L accounts).
    Segments 000001 007951 - 993 lines
    Segments 007952 015951 - 993 Lines
    Segments 015952 023951 - 993 Lines
    Segments 023952 031951 - 993 Lines
    Segments 031952 039951 - 993 Lines
    Segments 039952 047872 - 983 Lines.
    It will create a BDC session and whn i process the session error comes "No batch input data for screen SAPMF05A 0700" after 949th line. When i see th OSS note it says "Invoices with more than 949 G/L account line items must be split".
    My Question is Where can i do this setting inorder to restrict the G/L account lines to <949 in each segment block??
    Any insights will be appreciated.

    Hi Tushar,
    You can add your own codes in user exit to restrict the G/L account lines to < 949 during creation each segment block.
    Please search any user exits available in the function module which is used for inbound IDoc creation.
    In this case, your BDC will not give an error message because you already handled the max lines for G/L account during creation an IDoc for batch input process.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • JScrollPane visible part refresh rate problem

    I am writing an application that reads image and displays it in a JScrollPane via JPanel. It also has JSlider to set displayed image focus. The problem is that sometimes when big image is loaded and user changes seen part via scrollbars, the JScollPane refresh takes about 10 sec. The question is: How to make JScrollPane's content refresh/repaint only the part that is visible. The code is:
    import java.awt.image.BufferedImage;
    import java.io.*;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.event.*;
    public class Main extends JFrame{
        private BufferedImage image;
        private JScrollPane sPane;
        private ImagePanel iPanel;
        private JSlider slider;
        private Container contentPane;
        public Main() {
            try {
                image = ImageIO.read(new File("c:\\pict\\img.JPG"));
            } catch (IOException ioe){
                ioe.printStackTrace();
                System.exit(1);
            slider = new JSlider(JSlider.HORIZONTAL,1,3,1);
            slider.setMinorTickSpacing(1);
            slider.setMajorTickSpacing(1);
            slider.setSnapToTicks(true);
            slider.addChangeListener(new ChangeListener() {
                public void stateChanged(ChangeEvent e) {
                    iPanel.setImageFocus(slider.getValue());
                    invalidate();
            iPanel = new ImagePanel(image);
            sPane = new JScrollPane(iPanel,
                    JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
                    JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
            contentPane = this.getContentPane();
            contentPane.add(slider,BorderLayout.NORTH);
            contentPane.add(sPane,BorderLayout.CENTER);
            setExtendedState(JFrame.MAXIMIZED_BOTH);
            setDefaultCloseOperation(3);
        public static void main(String[] args) {
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    new Main().setVisible(true);
    class ImagePanel extends JPanel{
        private Image img;
        private Dimension imageSize;
        public ImagePanel(Image img){
            this.img = img;
            imageSize = new Dimension(img.getWidth(null),img.getHeight(null));
        public void setImage(Image img){
            this.img = img;
        public void setImageFocus(int focus){
            if (this!=null){
                getGraphics().clearRect(0,0,imageSize.width,imageSize.height);
            switch (focus){
                case 1:
                    imageSize = new Dimension(img.getWidth(null),img.getHeight(null));
                    break;
                case 2:
                    imageSize = new Dimension(2*img.getWidth(null),2*img.getHeight(null));
                    break;
                case 3:
                    imageSize = new Dimension(3*img.getWidth(null),3*img.getHeight(null));
                    break;
                default:
                    imageSize = new Dimension(0,0);
            setSize(imageSize);
            setPreferredSize(imageSize);
            repaint();
            ((JScrollPane)getParent().getParent()).revalidate();
        public void paintComponent(Graphics g){
            JScrollPane sp = (JScrollPane)getParent().getParent();
            g.clearRect(sp.getX(),sp.getY(),sp.getWidth(),sp.getHeight());
            g.drawImage(img,0,0,imageSize.width,imageSize.height,null);
    }Thanks,

    Sure
    DefaultTableModel dtm = new DefaultTableModel(vec, header);
              jt0 = new JTable(dtm);
              jt0.getTableHeader().setReorderingAllowed(false);
              jt0.setFont(new Font("Tahoma", Font.PLAIN, 12));
              jt0.getTableHeader().setFont(new java.awt.Font("Tahoma", java.awt.Font.BOLD, 12));
              jt0.setRowHeight(18);
            jt0.setPreferredScrollableViewportSize(new Dimension(500, jt0.getRowCount() * jt0.getRowHeight()));
            jt0.setFillsViewportHeight(false);
              jsp0 = new JScrollPane(jt0);
    GridBagConstraints gbc = new GridBagConstraints(); 
            gbc.insets = new Insets(2,1,2,1); 
            gbc.weightx = 1.0; 
            gbc.weighty = 1.0; 
            JPanel p0 = new JPanel(new GridBagLayout()); 
            gbc.fill = gbc.HORIZONTAL;
            p0.add(jsp0, gbc);
              JButton jb1 = new JButton("add row");
              jb1.setSize(40, 18);
    jb1.addActionListener(new java.awt.event.ActionListener() {
                   public void actionPerformed(java.awt.event.ActionEvent e) {
                        dtm.addRow(new Object[]{....});
    //                    jt0.scrollRectToVisible(jt0.getCellRect(jt0.getModel().getRowCount()-1, 1, false));
    //                    jt0.setRowSelectionInterval(jt0.getModel().getRowCount()-1, jt0.getModel().getRowCount()-1);
        public class SizeX extends JScrollPane {
             public Dimension getPreferredSize() {
                  Dimension size = super.getPreferredSize();
                  size.height -= getViewport().getPreferredSize().height;
                  Component view = getViewport().getView();
                  if(view != null)
                  size.height += view.getPreferredSize().height;
                  return size;
        }

  • GeForce2 GTS refresh rate problem

    I have a GeForce2 GTS (MSI Starforce 815) running on an IWill KK266 (KT133A chipset) and a Sony GDM-400PS monitor. My problem is that when I set the refresh rate to "optimal" it runs at 60hz. This is a problem because my eyes are really sensitive to the flicker. I can set the refresh manually to a higher static refresh rate, and I can then switch back to "optimal" and it will adjust properly to a higher refresh rate but upon reboot it converts back to 60hz (although setting still says optimal.) I have several other non MSI GeForce2 GTS cards and they don't have this problem.
    Anyone have any ideas?
    To help weed out the suggestions:
    -running 350W Enermax PS, more then enough
    -running Win98SE (don't tell me to switch operating systems please)
    -Sony 400PS well within spec
    -have run 3 sets of Detonator drivers currently 40.72 same problem with all
    -I know I can set it to run at a static 75 or 85Hz but I prefer to have it adjust to the optimal setting for my usage.
    Thanks for any help!

    beavercleaver,
    I always set the monitors at 85hz.  It is a great frame rate that is really easy on the eyes.
    Take Care,
    Richard

Maybe you are looking for