SAP Script: error due to popup

Hi expert,
I am trying to mass generate (or clear) orders using SAP script fonctionality.
I first record one example, then amend the script, and then re run for multiple products in one go.
It works fine most of the time...
Unfortunately due to some master data setup the script sometime needs to be slighly changed from one orders to another (e.g if there is a minimum qty maintained I got a popup "are you sure you want to save", then my script bug...)
Most of the time just pressing enter or yes will help me, but I can't (or I don't want to) find out in advance when it will. So basically I want my script to be flexible enough to handle differents scenario.
I tried to modify the code to include a condition but I am not sure what the condition should look like... (obviously it should not look like anything I tried)
E.g:
If xxxxxxxx Then
session.findById("wnd[0]").sendVKey 0
(or session.findById("wnd[1]/usr/btnBUTTON_1").press)
End if
Can somebody help me to fill the xxxxxxxxxxxxx, or explain to me how I can find out by myself?
I hope it makes some sense for some of you (I am not sure to be very clear...)
If it does and you have a solution for me, please bear in mind that I am not an ABAP consultant and it is more or less my first day with SAP script, so please be gentle
Many thanks in advance
Julien

Hi Sandra,
I didn't know there were different "SAP script", I don't know were to assign this one...
I use "SAP gui scripting" actually: it is a direct interface with SAP gui which can be used to emulate user interaction.
You can any actions that you do and execute them later on.
It is part of the SAP gui itself and works with any SAP system.
You access it through "customixe local layout (Alt + F12)> script recording and play back.
Well my explanations might not be very clear... you can go to: http://service.sap.com/sapgui and find some documentation there.
I will see if I can reassign it to another forum!
Thanks for your help
Julien

Similar Messages

  • Sap Scripts Error

    Hi All ,
              I have a problem changing my sap script in dev. say client 200 , i can display the form in 200 , when am trying to change the form in client 200 it showing 'ERROR IN OBJECT EDITING ' and displays an error message 'REQUEST/TASK kd1..... HAS INVAILD SOURCE CLIENT 100'. Any suggestion on how to change the form pls...
    Thanks,
    Vind.

    Hi
    May be the problem is with wrong request number. You can do one thing you can copy the script to other client by going to se71 transaction and using menu utilities-> copy from client. If you want the script only in this client do one thing make any changes in the script and try to save the script then it will ask for the package and request then you give the request id of this client.
    Hope this will help you.
    Regards
    Haritha

  • Sap Scripts Error Message

    Hi All ,
    I have a problem changing my sap script in dev. say client 200 , i can display the form in 200 , when am trying to change the form in client 200 it showing 'ERROR IN OBJECT EDITING ' and displays an error message 'REQUEST/TASK kd1..... HAS INVAILD SOURCE CLIENT 100'. Any suggestion on how to change the form pls...i tried to copy the 'FORM' from client 100 TO client 200 but the problem has not been solved is their any to do with the owner who created the script ??
    Thanks,
    Vind.

    Hi Srikanth,
                  I dont have access to client 100 is their any other way to transport the request ??
    Thxs,
    Vin.

  • Sap script error

    Hi,
    I have developed sap script form in 701 development client and i transported into unit test client 701, in unit test client its status is showing revised-saved , in development client its status is active-saved .can any one tell how can i overcome this situtation. i am transporting through se09 tcode . for us scc1 is disabled.

    Hi,
    Usually this problem is because the form is inactive in either the source or the target system.
    If the form is not active in the target system, the correct active form is transported, but you don't see it via transaction SE71.(because the transaction displays the inactive version)
    Regards,
    Aidan

  • MR estimation- SAP internal error due to meter replacement

    Hi,
    We are getting an error in Tcode EL28 when the MR estimation is done and a device replacement exists in this period.
    There is a SAP note Note 959809 - " EL-262: Error when reading the internal table IDEVNUM" giving fix  for this error. We have already implemented this note last year. This seems to be correction in the FM:ISU_CONSUMPTION_PROJECT . I am not sure if this FM is being called at all in El28.
    Has anyone come across this scenario.
    John

    Hello,
    Are notes 1106884 & 819675 also implemeted on your system?
    Regards
    Olivia

  • Dump error when clicked on text elements in SAP Script window

    Hi All,
    There is an inclusion in SAP Script. I have written the code in driver program. I need to pass the value to SAP Script in the requested position. But when I go to SE71 > Form Name > Change or Display > MAIN Window > Text Elements > I get a dump error.
    Category               ABAP Programming Error
    Runtime Errors         DATA_LENGTH_TOO_LARGE
    Except.                CX_SY_RANGE_OUT_OF_BOUNDS
    ABAP Program           SAPLSTXK
    Application Component  BC-SRV-SCR
    Date and Time          30.04.2014 20:00:08
    Short text
         Invalid partial field access: Length is too large
    What happened?
         Error in the ABAP Application Program
         The current ABAP program "SAPLSTXK" had to be terminated because it has
         come across a statement that unfortunately cannot be executed.
    What can you do?
         Note down which actions and inputs caused the error.
         To process the problem further, contact you SAP system
         administrator.
         Using Transaction ST22 for ABAP Dump Analysis, you can look
         at and manage termination messages, and you can also
         keep them for a long time.
    Error analysis
         An exception occurred that is explained in detail below.
         The exception, which is assigned to class 'CX_SY_RANGE_OUT_OF_BOUNDS', was not
          caught in
         procedure "TOKEN_COMMENT" "(FORM)", nor was it propagated by a RAISING clause.
         Since the caller of the procedure could not have anticipated that the
         exception would occur, the current program is terminated.
        The reason for the exception is:
        In the executed program "SAPLSTXK", the system attempted to access the field
        "ITF_TOKEN" of the type "C" and with the length 255 using the length 272.
        However, a partial field access with a length specification that is
        larger than the field length is not allowed.
    How to correct the error
        Reduce the length used to access the field.
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "DATA_LENGTH_TOO_LARGE" "CX_SY_RANGE_OUT_OF_BOUNDS"
        "SAPLSTXK" or "LSTXKFRN"
        "TOKEN_COMMENT"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
    2937 * todo empty comment ???
    2938       if g_tm_open    eq true or     " Section
    2939          g_tm_b_close eq true.
    2940         l_token = '\chcbpat0'.
    2941         l_len = strlen( l_token ).
    2942         token_control = true.
    2943         assign l_token to <itf1>.
    2944         perform put_itf1_new using l_len.
    2945         perform token_line_begin changing l_next_token.
    2946       else.                          " without section
    2947         concatenate '\chcbpat0\line' g_cf_string l_cbpat_token into l_token.
    2948         l_len = strlen( l_token ).
    2949         token_control = true.
    2950         assign l_token to <itf1>.
    2951         perform put_itf1_new using l_len.
    2952       endif.
    2953     elseif l_next_token-code eq ')L'.         " \par
    2954       l_token = '\par'.
    2955       l_len = strlen( l_token ).
    2956       token_control = true.
    2957       assign l_token to <itf1>.
    2958       perform put_itf1_new using l_len.
    2959     elseif l_next_token-code eq '(C' or       " \par + format
    2960            l_next_token-code eq ')C' or
    2961            l_next_token-code eq '(&' or
    2962            l_next_token-code eq 'TA' or
    2963            l_next_token-code eq 'SC' or
    2964            l_next_token-code eq 'ST'.
    2965       concatenate '\chcbpat0\par' g_pf_string g_cf_string l_cbpat_token into l_token.
    2966       l_len = strlen( l_token ).
    >>>>>       itf_token(l_len) = l_token.
    2968       token_control = true.
    2969       assign l_token to <itf1>.
    2970       perform put_itf1_new using l_len.
    2971     endif.
    2972
    2973 * Step 7: (L to disarm
    2974   if g_compose eq true and
    2975      l_next_token-code eq '(L'.
    2976     perform read_next_itf_token(rstxscan) using p_token.
    2977   endif.
    2978
    2979 ENDFORM.                    " token_comment
    2980 *&---------------------------------------------------------------------*
    2981 *&      Form  create_lang_info
    2982 *&---------------------------------------------------------------------*
    2983 *       add default language to rtf
    2984 *----------------------------------------------------------------------*
    2985 *      -->P_HEADER  text
    2986 *      <--P_RESULT  text
    How do I open the text elements? I need to pass the variable inside SAP Script.
    Please Help. The requirement is pending from very long. Not able to rectify this issue.
    Regards,
    Rekha

    Hi,
    There is a SAP Note about this problem
    566794 - Runtime error: STRING_OFFSET_TOO_LARGE during conversion
    Correction Instructions
    Correction Instructions
    Software Component
    Valid from
    Valid to
    Number
    SAP_BASIS
    46B
    46D
    473267
    SAP_BASIS
    610
    620
    473185
    Support Packages & Patches
    Support Packages
    Software Component
    Release
    Support Package
    SAP_BASIS
    46B
    SAPKB46B48
    46C
    SAPKB46C39
    46D
    SAPKB46D28
    610
    SAPKB61027
    620
    SAPKB62014
    Regards
    Miguel

  • Error "AND, OR or end of condition expected" in sap script IF statement

    Hi all,
    /:   IF  &WA_BSEG_IN-BUKRS& EQ '1000' OR &WA_BSEG_IN-BUKRS& EQ'2000'
    =    OR &WA_BSEG_IN-BUKRS& EQ '4000' OR  &WA_BSEG_IN-BUKRS& EQ '5000'
    /:   CASE  &WA_BSEG_IN-BLART&
    /:   WHEN 'DZ'
    /:   IF  &SAVE_EVENT& EQ u2018ZPR01u2019 OR &SAVE_EVENT& EQ u2018ZPR06u2019
    D1   <C4>Cheque Number/Bank Reference,,Payment Method,,Amount,,Cur,,</>
    /:   ENDIF
    /:   WHEN OTHERS
    D1   <C4>Payment Method,,Cheque Number/Bank Reference,,Amount,,Cur,,</>
    /:   ENDCASE
    /:   ENDIF
    I am getting below error in the the if statement (5th line) in sap script.
    Error is "AND, OR or end of condition expected".
    What is error in the 5th line?
    Thanks in advance

    Hi,
    In sap script, always give conditon in a sinlge line. Dont break the condition into many lines.
    /: IF &WA_BSEG_IN-BUKRS& EQ '1000' OR &WA_BSEG_IN-BUKRS& EQ'2000' OR &WA_BSEG_IN-BUKRS& EQ '4000'
    Thanks.

  • Ecatt script fails due "Error in OLE API method Call"  error

    Hi ,
    Ecatt scripts fails due to "Error in OLE API method Call" error, this error message occurs once a while.
    We are calling testpartner scripts from Ecatt using REFEXT command. At times this ECATT script fails due to above issue.
    Please help in solving this issue.
    Thanks,
    Asha

    >
    Asha Nagaraj wrote:
    > Hi ,
    >
    > Ecatt scripts fails due to "Error in OLE API method Call" error, this error message occurs once a while.
    >
    > We are calling testpartner scripts from Ecatt using REFEXT command. At times this ECATT script fails due to above issue.
    >
    > Please help in solving this issue.
    >
    > Thanks,
    > Asha
    Hi Asha,
    Are those components are connected and the necessay settings has been done?
    Regards,
    SSN.

  • Text Element error in SAP script

    Hi All,
    I have modified a sap script and now getting print perfectly without any flaws.
    But system is raising an error log in spool (Tcode: SP01) as below..
    In form ZFFIAP_PMNT_RMTT / window MAIN , the element 610-C (Text-C) is missing.
    When i checked the MAIN window of sap script, there is a text element with name 610-C.
    How to resolve this error..????
    Please Help me...
    Regards
    Pavan

    Thanks for your inputs.
    I have checked the Driver Program. There  is no text element '610-C' used in WRITE_FORM statements in the driver code.
    There is no such element in the MAIN Window of sap script.
    Still i m facing same error.....
    "In form ZFFIAP_PMNT_RMTT / window MAIN , the element 610-C (Text-C) is missing"...
    What might be the reason..????
    I have checked other window too for such text element...
    If i create a text element "610-C" in the MAIN window of sap script, still same error is being created as log file in Spool (SP01). INterestingly this error is not creating any impact on script printing...!!!
    Can anyone help me.....????
    Regards
    Pavan

  • Unresponsive Script errors popups in Firefox 14.01

    Since upgrading from Firefox 13.01 to 14.01, Firefox is taking a long time to launch and I am receiving multiple unresonsive script error popups when it tries to launch. I have the same extensions installed that I had in 13.01 and all are compatible with 14.01. Again this issue ONLY started when upgrading to 14.01. I have tried to determine what extension is the problem and turn it off, however when I launch Firefox again, another unresonsive script error popup occurs with a different extension. I'll remove that one and it popups again about a another different one. This is crazy! I have even tried a complete clean install, with no luck. What is the problem?

    I use Roboform and the first unresponsive script error popup is about Roboform. Their tech support just emailed me about an hour ago and ask if I had Trusteer Rapport installed on my system (https://www.trusteer.com/product/trusteer-rapport) and I said yes. They instructed me to Stop Rapport, which is a setting Rapport has, and relaunch Firefox 14.01 and see if the unresponsive script error popup returns and it did not! They then told me to do a complete uninstall (all user settings) and re-download Trusteer Rapport from their website and install again and see if the unresponsive script error popup returns. They said it should not. However after doing a clean reinstall of Trusteer Rapport, however the popups came back :(
    I emailed Trusteer about this issue and I am waiting for a response. Roboform tech support responded after I told them it did not work by saying only that they are aware of the issue with Trusteer Rapport with nothing more said in their email.
    I only know that Trusteer Rapport is a MUST HAVE security software and I have had it for years and it has never caused problems and that the version of Roboform I have is current and was the SAME version that was installed when using Firefox 13.01 and Roboform did not cause these popups in 13.01
    So, this evening, I did another clean uninstall of Trusteer Rapport AND a clean uninstall of Roboform and relaunched Firefox 14.01 and the only unresponsive script error popups where from another add-on extension called WorldIP. No other popups occurred.
    With that being said, I can say that Firefox 14.01 is causing issues and this needs to be fixed asap.
    Thoughts?

  • Getting the error in the sap script

    Hi,
    I am running the Tcode f.26, which uses the standard sap script named F_DUZI_01. When running I am getting the error:
    Element 0031 window INFO is not defined for
    F_DUZI_01
    Please suggest what should i do or what could be the reason behind the problem.

    Hi,
    Check the Script whether that element is being used or not. Such  errors raise when you called the elements in the program without delcaring in the script.
    Please close the thread, if solved
    Regards,
    Aditya

  • Need info about a Error in SAP Script !

    Hi,
         I am getting the following error.
    "WRITE_FORM is invalid, START_FORM is missing".
    Actually I have already start the form using start_form function. I am using write_form inside a loop.
    What cud be be the possible probs.
    Thank you.
    Senthil

    Hi
      Check out the parameters that you r passing in the Write_form and Start_form with the paramters that you r passing in the sap script form.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'TEXT1'
       FUNCTION                       = 'SET'
       TYPE                           = 'BODY'
       WINDOW                         = 'MAIN'
    check these values with the value you r passing in the sap script form.
    and similarly you check the start form also.
    I hope this will help you to solve your prob.
    Thanks
    Mrutyunjaya Tripathy

  • Error while displaying SAP script

    Hi,
      I was trying to display a SAP script by passing the values.
    When i click the preview button from the Dialog window It's displaying error called "CALL CONTAINED error (ADS(2)) "
    Can anyone explain why this problem is coming and what we want to do for making it work.

    Hi,
    Check for the data types of the variables you are passing values.
    There can be any data miss match.
    Regards,
    Rajesh Kumar

  • Sap Script - write form Error

    Hi,
    When i execute my SAP script, it stops at Write form function call.
    I get the exception as Sy-subrc = 7. i.e., BAD_PAGEFORMAT_FOR_PRINT.
    Does anyone know how to get rid of this error?
    All help is greatly appreciated.
    Cheers,
    K

    Hi,
    Please check the page format.
    R u using page format available in SPAD or any different page format.

  • Error in printing SAP Script

    Dear All,
    I need some help frm u gurus.
    Theres a Z-SAP Script that I made.........the same is running fine in quality but when transported to production client it gives error in PERFORM START_FORM USING FORMNAME LANG 'MAIN'. saying that the form doesnot exist in language 'EN'.
    What can be the problem?? Any suggestion....?
    Thnx.

    just check it out whether you will have properly released and whether it is reached to the destination client.
    one more thing check in language option of that script in se71 screen in language option whether english is maintained.
    if further information please reply
    rewards points if useful

Maybe you are looking for

  • My iPhone 4's running iOS 7.1.2 will not connect to wifi?

    Both my iPhone 4 and 4s will not connect to my homes Wifi.  I'm aware that there are MANY different forums with the same question but I have tried everything from what i've seen and nothing has worked.  I also have an iPad and MBP that are connected

  • IPod Touch got wet, died. I need my notes...

    My iPod Touch got wet and it's gone. I can get to the screen (albeit dim) that shows the slider to unlock it but the touchscreen is unresponsive. The computer won't recognize it. My main problem is I have some very important notes that I need. Does a

  • Dependant lovs in jsp with mysql data

    hi to all. here is my doubt How to create dependant dynamic list of values in jsp where the data comes from mysql tables.(I mean i am storing all the details in mysql tables using foreign keys etc..). Ex.:country--->state--->district--->city---> we w

  • ComponentBean cannot be cast to ComponentBean

    I am receiving the following error message when trying to deploy my application on jboss: javax.faces.FacesException: Can't parse configuration file: jar:file:/C:/jboss-4.2.2-1-jsf/server/default/deploy/pims.ear/lib/jsf-facelets.jar!/META-INF/faces-c

  • Exception Aggregation or Avg Inventory

    Hi, While I am doing Inventory Development, got some issues in reporting. Below is my reporting info. Chars in rowsr:  CompCode, Sector(Nav attribute to plan), Calmonth. 1. We get Closing Inventory in runtime ( 0valstockval ) 2. Turnover (Just a KF)