Script o/p probelm

Hi experts,
sorry guys ,i typed the qusetion wrongly so that again i am posting.
script program o/p that is displaying in development is correct whereas in production
o/p is not displaying correctly.Request no is successfully transported.Somebody told to me to  adjust printer settings.
Where to go and which settings adjust i don't know.please give the details solution.
Problem is
if condition is executing in development but not in production.

HI
Debug the program and check the value what your checking in the where condition 
Comming to  table allignment check your printer  settings (Check your paragraaphs that are using in development & those paragraphs are available in production are not) .
Let me try this . Let me know if any concerns....

Similar Messages

  • Drawing Table & Displaying Data in SAP Script : Data Alignment probelm

    Hi Experts,
    I am Developing An SAP Script in Which Had to Display Data in a Table with Three column & multiple rows, i had created the Table using BOX Command in SAP SCRIPT & assigned a TEXT Element to it & calling this text element while Looping in WRITE_FORM FM.but while displaying DATA in One column the data in another columns shift to the right & if the data in 1st column is less the data in the second column shift to the left. i know these issues had been covered in the past but i am not getting any concrete results from searching in the forum.
    Also On more problem when ever i am declaring a text element in some other window & also giving the Command BOX inside it to draw outline the BOX is not drawn.
    This seem to be an alignment issue . Experts Please provide me with some alternative.
    Thanks & Regards
    Priyesh Shah

    Hi ,
    To stop columns going left and right.Use number of position in the variable .Like fix the lenght &name(10)&.Here name can print 10 characters.
    For box not appearing in other window check the box command parameters .It will draw.Not a alignment problum.

  • Probelm with Commit in Script logic.

    Hi Experts,
    I am using NW 7.5, SP 05.
    I used commit statement in my script logic and executed it, It didn't given any result.
    But, I removed the commit statement and executed it again. the code got executed and got the result.
    Here is the code
    *WHEN KF_DIM
    *IS UNIT
    *REC(EXPRESSION=%VALUE%*[KF_DIM].[BASEPRICE],KF_DIM=AVERAGEPRICE)
    *ENDWHEN
    //*COMMIT
    Please some body tell me know why this is happening.
    Thanks,
    Regards
    Maheedhar

    Hi Maheedhar,
    You dont require COMMIT statement as long as the scope remains same.
    Is this the entire script? If not, can you please share the whole script?

  • Issue in running eCATT Scripts  - Help required very urgently

    Dear All,
    We are running the eCATT scripts from Solman 7.0 by connecting it to ERP system R/3 4.6C. While running the scripts, we are facing some issue.
    1. If we try to run the scripts then those are getting failed. The same scripts if we run after some time with out changing any code then those are running fine.
    We are frequently facing this probelm.
    Could you please let me know the solution. Your help is really appreciated.
    Thanks,
    Mahendra
    Moderator Message: Urgently word is not allowed in this forum. Open a new thread without the "priority" word.
    Edited by: kishan P on Sep 6, 2010 11:18 AM
    Edited by: kishan P on Sep 6, 2010 11:21 AM

    Dear Ananth,
    Scripting is getting failed at different lines of code at different runs.
    Thanks,
    Mahendra

  • Problem in the header in the main window in russian language in script

    Hello,
    We are using one custom script in Russian language for Contract form and print program is copy program of SAPFY06P.
    The issue is, when the contract form is having more number of pages in its output, then some times Russian header text is not printing properly in the output, it prints as junk text instead of Russian language, and surprisingly it is happening only for some pages randomly.
    I implemented protect and endprotect statements for the item text in the form, then also Russian text is not printing properly, rather the random printing is changing from one page to the other
    In the custom program u2018ZCONPF02u2019 (copy program of u2018FY06PF02u2019), there is one perform u2018ausgabe_pos_uebu2019.  In this perform, there is u2018WRITE_FORMu2019 function module with element u2018PROTECTu2019. There is no function module with element u2018ENDPROTECTu2019 in this
    Perform. Even after I applied this change there is no successful result to the output.
    could you please give me the solution for this.
    Thanks and Regards
    Srinivas.N

    Hello Varma,
    All  formats are declared properly. Is it any logic probelm ?
    Thanks and Regards
    Srinivas

  • Script Main window Width Adjustment Problem

    Hi All,
    I'm working on an existing Z script. In that I cant able to change the width of the Main window. It shows in Display mode.
    Help me to solve this.
    Points assured.
    Regards,
    Viji.

    The probelm for this is you original language is different from the language which you key in in your script.
    To modify the main window, follow the below steps.
    1) Go to SE71, give your form name, Display. Goto Header details, administrative Data and find out the original language, Ex, DE.
    2) Go back to SE71, give form name and Language i.e., original language name identified in step 1 and click change. Now change your main window dimensions and adjust the width according to your requirment,save activate..now it will automatically reflects the changes for all languages.
    3) Go back to SE71, give form name and language, now you will see the main window width is adjusted.
    Close the thread once your question is answered.
    Regards,
    SaiRam

  • Note to print barcode from scripte

    Is there any SAP NOTE available .  When I am printing cstom barcode from scripte it is not printing . But I am able to view it in Preview.  This same thing I can do from smartform.
    If antbody know this pls inform

    Hi,
    Please create the same type of Barcode for printer through tcode SE73 and you will be wiht your solution .
    Assign points if it solves your probelm.
    -Guarang

  • Script Error- inside Collaboration Room

    Hi All,
             I have created Collaboration Room based on SAP Default Room Template its working fine for portal User in this server URL for egs: http://servername:port/irj/portal
    We generated this server URL into the internet URL like this http://www.companyname.com:port/irj/portal
    But Iu2019m getting script error inside the collaboration Room, when we using this internet URL http://www.mycompany.com:port/irj/portal
    Exactly Where Iu2019m getting this script error, Collaboration --> Room --> Room Directory, here I click any of the Rooms, it opens the particular Room in content Area and display some more page link in detailed navigation like has Document and Links, Tasks, Team Members, Search Room, Admin Room, Admin: Member and Room Relations.
    If I click any of page link Iu2019m getting the script error like this  Line: 707 char:5 Error: u2018nullu2019 is null or not an object
    Through Visual Studio I found out that function
    function setFocusOnDtn(){
    var JSTree = SAP_getJSTree("DetailedNavigationTree"); // this JSTree is to be null so this line is probelm
    var roots = JSTree.getSelectedNodes();
        if(roots[0] != null && roots[0]!="undefined" && EPCM.getSAPTop().navPanelStatus == "exp"){
                if(roots[0].getNodeAnchor() != null){
                            if(roots[0].getNodeAnchor().type!='hidden'){
                                 roots[0].getNodeAnchor().focus();
    Help me to achieve this problem........
    Regards
    Thillai J

    Hi,
    I am facing the same problem.
    It says to me "JSTree is null"
    Please let me know if you got any solution for that.
    Thanks

  • SAP ECC6 sr3 upgrade error in executing MSSCONCHECK.SQL script

    Hello all,
      I am facing this error which is very annoying , I am executing Prepare Upgrade script for ECC6 SR3 from SAP 4.7 Sr2 with windows 2003 server and MSSQL 2005 server as backend. I am facing below error
    Enter one of these options [continue] := continue
          SAPup message
    SAPup> SQL-scripts must be executed by the NT user account T47VMHOST2\t47adm.
           Check your installation of the integrated security procedure
           on host t47vmhost2 and make sure that a login for the NT user
           T47VMHOST2\t47adm exists with the following rules:
           - user T47VMHOST2\t47adm owns the role System Administrators
           - user T47VMHOST2\t47adm has the default database T47
    SAPup> Integrated security installed correctly?
                - "no"
                - "yes"
    Enter one of these options [no] := yes
    Executing script MSSCONCHECK ...
    MSSCONCHECK: Connection check failed for the user specified
          SAPup message
    SAPup> Errors were found in the logfile MSSCONCHECK.LOG
           after execution of the script MSSCONCHECK.SQL.
    SAPup> SAPup cannot proceed until these errors are fixed.
           Please, examine MSSCONCHECK.LOG, fix reported errors and then call R3UP a
    gain
    I have done a number of changes in system i checked the SIDadm user is assigned a default DB T47 and has said role assigned allready.
    I restarted the system after changes and started the prepare batch file again but with sme probelm again. so can anybody guide me on this. I seen a number of threads but there is no any concrete solution providedby them.
    will really appreciate any reply.
    Mani

    Hello Julia,
      i read those note but everything seems normal to me on my PC; it has remote access enabled, t47vmhost2/t47adm is the user configured (although its not a domain configuration (installation) but t47vmhost2 is the computer name. So its kind of local user defined in SQL with said authorization. below is the log from file MSSCONCHECK.LOG
    [SQL Native Client]Named Pipes Provider: Could not open a connection to SQL Server [2].
    [SQL Native Client]Login timeout expired
    [SQL Native Client]An error has occurred while establishing a connection to the server. When
    connecting to SQL Server 2005, this failure may be caused by the fact that under the default
    settings SQL Server does not allow remote connections.
    I am still stuck in ?
    Can you please verify if i am using right DVDs
    51033495_1     NW 7.0 SR3 Languages DE,EN,ES,FR,IT,NL
    51033494_3     NW 7.0 SR3 Upgrade Export 3 of 3
    51033494_2     NW 7.0 SR3 Upgrade Export 2 of 3
    51033494_1     NW 7.0 SR3 Upgrade Export 1 of 3
    51033512_14     NW 7.0 SR3 Upgrade Master Windows Server on x64 64bit
    51033508_8     NW 7.0 SR3 Kernel 7.00 Windows Server on x64 64bit Upg ABAP
    Pleas help
    Mani

  • DIAdem view sheet activation using scripting

    Hey all,
    I am trying to activate any view sheet passed to MYSHEET.ACTIVATE()
    I HAVE TRIED PASSING MYSHEET.ACTIVATE() EVERYTHING FROM CHNNAMES TO CHNNUMBERS, _
    TO SHEET INDEX NUMBERS, SHEET NAMES, ALL IN AN ATTEMPT TO ACTIVATE THE DESIRED SHEET.
    I have created a script for loading the contents in the dataportal,
    creating one sheet for a given chn name, then search all groups for the
    same chn name and loading each additional chn found into the correct
    sheet.
    Here is  some of the script.
    For Each MYSheet in View.Sheets
         IF CHNNAME(intMyResult) = VIEW.ACTIVESHEET.NAME THEN 'IF THE CORESPONDING(CORRECT) SHEET IS FOUND
                EXIT FOR ' FOR Each MYSheet in View.Sheets
              ELSE
                Call
    MySheet.Activate()      'INCREMENT THE SHEETS
    UNTIL THE CORRECT ONE IS FOUND
             END IF
     NEXT
    When the correct sheet is not found and mysheet.activate() fires, it
    begins searching at the first sheet.  Thats not a probelm unless
    you have  80 or 90 sheets to increment like i
    have.    It is like driving from point A to point Y then
    back to point A to get to point Z.
    It works but takes a lot of time.
    I was wondering how to  activate the sheet that has the same name as the chn.
    Thanks for any help
    Paul

    Hi Paul
    I am not sure if I understand your problem.
    You can active a sheet in VIEW using the index or the name without using a loop over all sheets.
    So use:
    View.Sheets("Sheet 2").activate 'Activate sheet with the name "Sheet 2"
    View.Sheets(3).activate 'Activate Sheet with index 3
    or in your case
    View.Sheets(CHNNAME(intMyResult)).activate
    Hope this helps
    Winfried

  • Problem executing shell script for rwrun

    hi..
    I wrote a shell script to make a report similar to the batch file in windows.
    My OS is Suse 8.0 with oracle installed in it..
    I have the script like this..I used 2 lexical parameters for my rep file.
    /opt/oracle/OraHome1/bin/rwrun.sh test techy/techy@simone batch=yes desname=test_3.pdf destype=file desformat=pdf atable=\'\' whereford=\'protokolle.haendlernummer=\'Ludwigsburg\' and\'
    This one works fine but the one below doesn't give any output. The pdf fiel is just empty. I wonder y,,may be any problems with the spaces or escape characters.I didn't get any error when executed the scripts.
    /opt/oracle/OraHome1/bin/rwrun.sh test techy/techy@simone batch=yes desname=test_3.pdf destype=file desformat=pdf atable=\'\' whereford=\'protokolle.haendlernummer like \'L%\' and\'
    thanx and waiting for soem one to answer..
    regards
    Kovi

    I solved it by doing the following..
    opt/oracle/OraHome1/bin/rwrun.sh test techy/techy@simone batch=yes desname=test_3.pdf destype=file desformat=pdf atable=\\'\\' whereford=\\'\\ protokolle.haendlernummer\\ like\\ \\'L%\\'\\ and\\'
    from the Java Program..
    Important thing I discoverd is there should be a space at the beginning like whereford=' prot...' and it sok now..
    thanx ...but I still has other probelm now..which is to invoke the report from a servlet which executes this shell script..Problem with DISPLAY variable..I cannot run rwrun.sh without DISPLAY variable..
    Is there any way to set this variable for tomcat service.

  • How to delete the members in one dimension use the maxl script

    i have question that i want to delete the members in one dimension useing the maxl script, but i do not know how to do it. can the maxl delete the members in one dimension? if can, please provide an sample script, thank you so mcuh.

    MaxL does not have commands to alter an outline directly, except the reset command which can delete all dimensions but not members selectively. The best you could do would be to run a rules file (import dimensions) using a file that contains the members you want to keepload rule for the dimension. As typical the warning is to test this first before you do it on a production database

  • Unable to capture the adf table column sort icons using open script tool

    Hi All,
    I am new to OATS and I am trying to create script for testing ADF application using open script tool. I face issues in recording two events.
    1. I am unable to record the event of clicking adf table column sort icons that exist on the column header. I tried to use the capture tool, but that couldn't help me.
    2. The second issue is I am unable to capture the panel header text. The component can be identified but I was not able to identify the supporting attribute for the header text.

    Hi keerthi,
    1. I have pasted the code for the first issue
    web
                             .button(
                                       122,
                                       "/web:window[@index='0' or @title='Manage Network Targets - Oracle Communications Order and Service Management - Order and Service Management']/web:document[@index='0' or @name='1824fhkchs_6']/web:form[@id='pt1:_UISform1' or @name='pt1:_UISform1' or @index='0']/web:button[@id='pt1:MA:0:n1:1:pt1:qryId1::search' or @value='Search' or @index='3']")
                             .click();
                        adf
                        .table(
                                  "/web:window[@index='0' or @title='Manage Network Targets - Oracle Communications Order and Service Management - Order and Service Management']/web:document[@index='0' or @name='1c9nk1ryzv_6']/web:ADFTable[@absoluteLocator='pt1:MA:n1:pt1:pnlcltn:resId1']")
                        .columnSort("Ascending", "Name" );
         }

  • If statement in Custom Calculation Script

    I have 16 fields and if even one of them ="1" I have to list it in another field.  I do not want to count or sum.  If one of those fields has a 1 in it I just want the other field to display Y and if none have a 1 I want that field to display N.
    Please help.
    Thank you in advance~mjc

    You need to write a compound logical statement to evaluate all of the values and that statement needs to evaluate to true or false.
    Do you know how to write JavaScript?
    Do you know how to enter JavaScript calculations into a form field?
    For custom calculation of the text field I could write something like:
    // define an array of the field names to check
    var aNames = new Array("Text1", "Text2", "Text3", "Text4",
    "Text5", "Text6", "Text7", "Text8",
    "Text9", "Text10", "Text11", "Text12",
    "Text13", "Text14", "Text15", "Text16");
    // define a logical variable that is true if any field has a value of 1 - default is false or no field has a value of 1
    var bMatch = false;
    // value for text field
    var TextValue = 0;
    // logical value of field being equal to 1 test
    var FieldIs1 = false;
    // loop through all the fields and test the fields value
    for(i = 0; i < aNames.length; i++) {
    // logically OR the result of field i value equal to true with bMatch
    // get the value of field
    TextValue = this.getField( aNames[i] ).value;
    // test the value of the field
    FieldIs1 = Number(TextValue) == 1
    // logically OR the 2 values
    bMatch = FieldIs1 | bMatch;
    } // end field processing
    // set the field value
    if(bMatch == true) {
    event.value = "Y";
    } else {
    event.value = "N";
    You will need to change the field names to match your fields. You can add more field name or remove field names as needed and the script will adjust for the number of field names.

  • If Statement in SAP Scripts

    Hi All,
    I have written the below If statement in  SAP scripts but when i execute the same the controll doent check the second line entries. If firtst line doesnot satisfy it goes to the else part. Kindly suggest what is wrong in this..
    /:           IF &T156T-BWART& = '321' OR &T156T-BWART& = '322' OR
    /:           &T156T-BWART& = '349' OR &T156T-BWART& = '350' OR
    /:           &T156T-BWART& = '312' OR &T156T-BWART& = '326' OR
    /:           &T156T-BWART& = '343' OR &T156T-BWART& = '344'.
    /:           ELSE
    /:           ENDIF.

    Hi neha,
    Try to use the '/E' fo rnext line
    /E->Extended line
    Here is a code:
    /: IF &T156T-BWART& = '321' OR &T156T-BWART& = '322' OR
    /E  &T156T-BWART& = '349' OR &T156T-BWART& = '350' OR
    /E  &T156T-BWART& = '312' OR &T156T-BWART& = '326' OR
    /E &T156T-BWART& = '343' OR &T156T-BWART& = '344'.
    /: ELSE
    /: ENDIF.
    Hope this helps you.
    Regards,
    Rajani

Maybe you are looking for