ZPL in Scripts

Hello Experts,
I need help in ZPl in scripts, I am new to this part.
I have worked in scripts, but I dont have any idea in this  area.
Does any body have a good document on this.
Please let me know as soon as posible.
Thanks and Regards,
Ravi

hi ravi,
other than using barone, you  could directly code in zpl commands. it is very easy to use. paste the following code in main window and check how it works
/E CARTON_LABEL
^XA
SZ2JMA
MCYPMN
^PW1009~JSN
^JZY
LH0,0LRN
^XZ
~DGR:SSGFX000.GRF,108,54,:Z64:eJz7/58M8I8cTf//AQDogGuT:E225
^XA
DFR:SSFMT000.ZPLFS
^FO19,316
GB964,0,2FS
^FO450,32
GB0,292,2FS
^FT19,341
^CI0
A0N,28,39FD(3S) Package ID: ^FS
^FO19,355
BY3,2.7B3N,N,64,N,NFN1FS
^FO19,431
GB964,0,2FS
^FT19,455
A0N,28,39FD(K) P.O. Number: ^FS
^FO19,470
B3N,N,64,N,NFN2^FS
^FO19,545
GB964,0,2FS
^FT20,570
A0N,28,39FD(Q) Wafer Qty: ^FS
^FO20,584
B3N,N,64,N,NFN3^FS
^FO19,659
GB964,0,2FS
^FO19,659
GB964,0,2FS
^FT19,684
A0N,28,39FD(Q) Good Qty:^FS
^FO19,698
B3N,N,64,N,NFN4^FS
^FO19,773
GB964,0,2FS
^FT19,798
A0N,28,39FD(1P) Item ID:^FS
^FO19,812
B3N,N,64,N,NFN99^FS
^FO19,887
GB964,0,2FS
^FT19,930
A0N,28,39FDLOT ID:^FS
^FO19,963
GB964,0,2FS
^FT19,988
A0N,28,39FDDescription:^FS
^FT400,1025
A0N,28,39FDProcessed Wafers^FS
^FO19,1040
GB964,0,2FS
^FT464,62
A0N,28,39FDShip To:^FS
^FT19,55
A0N,20,28FDShip From:^FS
^FT19,1065
A0N,28,39FDPACKAGE COUNT:^FS
^FO539,1041
GB0,355,2FS
^FT552,1065
A0N,28,39FDPACKAGE WEIGHT^FS
^FT20,81
A0N,20,28FN5^FS
^FT20,106
A0N,20,28FN6^FS
^FT20,131
A0N,20,28FN7^FS
^FT464,100
A0N,25,35FN8^FS
^FT464,138
A0N,25,35FN9^FS
^FT464,176
A0N,23,33FN31^FS
^FT464,214
A0N,25,35FN10^FS
^FT464,252
A0N,25,35FN11^FS
^FT464,290
A0N,25,35FN40^FS
^FT20,157
A0N,20,28FN12^FS
^FT400,988
A0N,28,39FN13^FS
^FT324,341
A0N,28,39FN15^FS
^FT502,455
A0N,28,39FN16^FS
^FT261,570
A0N,28,39FN17^FS
^FT261,684
A0N,28,39FN18^FS
^FT261,798
A0N,28,39FN98^FS
^FT400,930
A0N,28,39FN97^FS
^FT650,1165
A0N,28,39FN21^FS
^FT750,1165
A0N,28,39FN22^FS
^FT650,1200
A0N,28,39FN26^FS
^FT750,1200
A0N,28,39FN27^FS
^FT32,1165
A0N,45,91FN29^FS
^FT172,1156
A0N,45,91FDof^FS
^FT248,1165
A0N,45,91FN30^FS
^FO20,189
XGR:SSGFX000.GRF,1,1FS
^XZ
^XA
^XFR:SSFMT000.ZPL
FN1FD3S60000001^FS
FN2FDK60000002^FS
FN3FDQ60000003^FS
FN4FD1P60000004^FS
FN99FD1P60000005^FS
FN5FD60000006^FS
FN6FD60000007^FS
FN7FD60000008^FS
FN8FD60000009^FS
FN9FD60000010^FS
FN31FD60000011^FS
FN10FD60000012^FS
FN11FD60000013^FS
FN40FD60000014^FS
FN12FD60000015^FS
FN13FD60000016^FS
FN15FD60000017^FS
FN16FD60000018^FS
FN17FD60000019^FS
FN18FD60000020^FS
FN98FD60000021^FS
FN97FD60000022^FS
FN21FD60000023^FS
FN22FD60000024^FS
FN26FD60000025^FS
FN27FD60000026^FS
FN29FD60000027^FS
FN30FD60000028^FS
^PQ1,0,1,Y
^XZ
^XA
IDR:SSFMT000.ZPLXZ
^XA
IDR:SSGFX000.GRFXZ30000001
^XA
SZ2JMA
MCYPMN
^PW1009~JSN
^JZY
LH0,0LRN
^XZ
~DGR:SSGFX000.GRF,36144,72,:Z64:eJzt3UuuozgUANAgpGLItEftbfSgJOsTI/eMmorlmoBbwv0qKZIm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7UIzyFWJ2mcttvWVaiGGPHuVIND2jHaLL4cZmskPkQquuHH0QasaDzHYuJn73DJ/9yQLSHIxonEk4HXtrAcqxhMTrNPm9fVnWEI4RrP9Qu1WE5ZNIRrmVVPhz21mkOqqWrTX5WR6bObwu4/457TmFozuuX72fWUJzOLazjXGeIlnt/AHz74XQ:99C6
^XA
^FT19,75
^CI0
A0N,28,39FD(3S) Package ID: ^FS
^FO19,89
BY3,2.7B3N,N,64,N,NFD3S60000029FS
^FT349,75
A0N,28,39FD60000030^FS
^FO19,177
GB952,0,2FS
^FT32,306
A0N,62,85FDATTENTION ALL CARRIERS^FS
^FT32,1038
A0N,56,77FDCLEANROOM ELECTROSTATIC^FS
^FT20,1114
A0N,56,77FDSENSITIVE DEVICES ENCLOSED^FS
^FO212,387
XGR:SSGFX000.GRF,1,1FS
^PQ1,0,1,Y
^XZ
^XA
IDR:SSGFX000.GRFXZ

Similar Messages

  • Labels in scripts

    hi can any please know , what is labels & why we are using it in Scripts?

    Hi
    You design the layout in SE71 and write the ZPL Command(Zebra Printer ) inur program or layout .
    Label size would be 4/6,3/3,3/5 and so on and it will have bar coding also.
    TABLES : ZPACK,ZTRN.
    DATA: BEGIN OF ITAB OCCURS 0,
          ZPKSLIP_NO LIKE ZTRN-ZPKSLIP_NO,
          ZCARTON_NO LIKE ZPACK-ZCARTON_NO,
          END OF ITAB.
    DATA MVAR(12) TYPE C.
    DATA MCTR(6) TYPE C.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS: ZSLIP FOR ZTRN-ZPKSLIP_NO NO-EXTENSION NO INTERVALS
    OBLIGATORY default 6.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECT * FROM ZPACK INTO CORRESPONDING FIELDS OF TABLE ITAB WHERE
    ZPKSLIP_NO EQ ZSLIP-LOW .
    CALL FUNCTION 'OPEN_FORM'
      EXPORTING
        FORM = 'ZTEST_RAJ'.
    DO 4 TIMES.
      MCTR = 100000 + SY-INDEX.
      MCTR = MCTR+1(5).
      CONCATENATE '55C/06/' MCTR INTO MVAR.
      DO 80 TIMES.
        ITAB-ZPKSLIP_NO = MVAR.
        ITAB-ZCARTON_NO = SY-INDEX.
        APPEND ITAB.
        CLEAR ITAB.
      ENDDO.
    ENDDO.
    SORT ITAB BY ZPKSLIP_NO ZCARTON_NO.
    CALL FUNCTION 'START_FORM'
      EXPORTING
        FORM = 'ZTEST_RAJ'.
    LOOP AT ITAB.
      AT NEW ZPKSLIP_NO.
        CALL FUNCTION 'WRITE_FORM'
          EXPORTING
            ELEMENT = '101'
            WINDOW  = 'MAIN'.
      ENDAT.
      CALL FUNCTION 'WRITE_FORM'
        EXPORTING
          ELEMENT = '102'
          WINDOW  = 'MAIN'.
      AT END OF ZPKSLIP_NO.
        CALL FUNCTION 'END_FORM'.
        CALL FUNCTION 'START_FORM'
          EXPORTING
            FORM = 'ZTEST_RAJ'.
      ENDAT.
    ENDLOOP.
    CALL FUNCTION 'END_FORM'.
    CALL FUNCTION 'CLOSE_FORM'.
    In sap script write :
    /E   101                            
    P1   ,,&ITAB-ZPKSLIP_NO(R)&         
    P1                                  
    /E   102                            
    P1   ,,&ITAB-ZCARTON_NO(R)&  
    Reward all helpfull answers
    Regards
    Pavan

  • How to format .m3u files for import? Or is there a spec. for .zpl playlis

    I currently create all my playlists through SlimServer (www.slimdevices.com). The result is .m3u playlists. I'd like to use these same playlists on my Vision M without having to recreate all of them. Writing a script to tweak what the structure of the .m3u is no problem. I've tried the method described here: http://forums.creative.com/creativelabs/board/message?board.id=dap&message.id=0837
    with no luck. Within MediaSource Organizer, I drag my imported playlist into an existing playlist on my Zen, but I always get "Error" or "Rejected" for each entry in the playlist. I think I may not be formatting the paths correctly in the .m3u. The styles of entries I've used include (folder structure below matches what is on the player):
    /Ben Allison/2006 Cowboy Justice/07 Weazy.mp3
    Ben Allison/2006 Cowboy Justice/07 Weazy.mp3
    /Music/Ben Allison/2006 Cowboy Justice/07 Weazy.mp3
    Music/Ben Allison/2006 Cowboy Justice/07 Weazy.mp3
    No luck with any of them. Am I missing something?
    Also, I was wondering if I could just write a script to create a .zpl (apparently creative's own style of playlist file?) file from an .m3u file. But I'd have to know the format of the .zpl file, and if I was able to create one, would I be able to drag-and-drop it into my playlists in Creative Media Explorer? Any ideas here?
    Thanks!

    Just tested an .m3u playlist that looks exactly like this:
    (start file)
    C:\Ben Allison\2006 Cowboy Justice\0 Tricky **bleep**.mp3
    (end file)
    That mp3 exists on C. The same file exists on my ZVM with the same directory structure underneath "Music." I copy the m3u playlist to my device using MediaSource Organizer--the playlist is transferred, but the file is copied to my player again! So now I have two copies of "Tricky **bleep**.mp3" on my player. The new one is copied to the ZVM in a different directory based on its tags (artist\album\track). This is definitely not what I want.
    All I want is to copy over the miniscule playlist files, nothing else. Is this at all possible? And if so, what should the playlist files look like? I was hoping that I'd be able to easily synchronize my home player's playlists (Squeezebox) with the playlists on my ZVM, but this is not looking promising...

  • Label printing issue with chinese characters (SAP script)

    Hi ,
    I have a requirement to print chinese characters on label print out.
    Here are the steps already tried:
    1) Created a new device type which is copy if ASCIIPRI and character set 8400
    2) Font ANDALE_S, CNHEI, CNSONG are assigned to device type, same fonts called in SAP script.
    3) During the print, it is picking ANDALE_S font(observed in spool RAW data), but preview is good.
    4) I put ZPL codes CW1,B:MSUNG.FNTFS in beginning of script and also ^A@N,50,50,B:MSUNG.FNT while prining actual chinese text in SAP script.
    5) also tried other device types assigned to printer LZEBU2, LB_ZEB2 etc.,
    6) already checked at printer DIMM level, SIMSUN, ANDALE_S fonts are already installed
    7) Character set on printer is same as in SAP
    So far no option worked, it default to Courier fonts while printing and it results garbage characters.
    If anyone has ideas, please advice.
    thank you,
    Anil

    Hi,,
    If the ZPL commands are correct for switching to the printer's internal CHinese font and character set, it may work to add the fonts via SE73 -> Printer Fonts -> ASCIIPRI . In here you need to add the commands in the print control SFxxx for your created font.
    Another possibility is to print via windows and device type CNSAPWIN. Here it should not be necessary to add any font.
    Regards,
    Aidan

  • Please explain me this elements in a script

    hi,
    can any one please explain how the co-ordinates are defined and explain this code in a simple way
    FO791,105A0B,374,413CI13FRFN999FS           
    FO1015,626A0B,88,96CI13FRFN998FS            
    BY7,2.9FO104,126B3B,N,348,N,YFRFN997FS      
    FO483,169A0B,189,243CI13FRFN996FS           
    BY4,3.0FO941,1237BCR,176,N,Y,N,AFRFN995FS   
    FO847,1146A0B,85,86CI13FRFN994FS            
    IF &WA_ZZE46SERIAL-ZPRINT& = 'X'                  
    FO778,1668A0B,43,56CI13FRFB256,0,0,LFN993^FS
    ENDIF                                             
    FO715,88A0B,46,46CI13FR                       
    FDCountry of destinationFS                      
    FO61,1708A0B,42,61CI13FR                      
    FDPackage noFS                                  
    FO934,704A0B,42,63CI13FR                      
    FDDelivery noFS        
        ^XZ                                                   
        ^XA                              
        ^XFZB_PAC-EMN.ZPL                
        FN999FD&T005T-LAND1&^FS        
        FN998FD&VBPLA-VBELN&^FS        
        FN997FD&V_PACKAGE&^FS          
        FN996FD&VEKP-EXIDV&^FS         
        FN995FD&V_SERIAL_BAR&^FS       
        FN994FD&V_SERIAL&^FS           
       IF &WA_ZZE46SERIAL-ZPRINT& = 'X' 
        FN993FD&V_TEXT&^FS             
       ENDIF                            
        ^PQ1,0,1,N                       
        ^XZ                              
        ^FX End of job                   
    even little information is of more help for me

    You must be using Barone software and Zebra printer for printing barcode labels. This is the script generated using barone.
    FO791,105A0B,374,413CI13FRFN999FS
    FO1015,626A0B,88,96CI13FRFN998FS
    BY7,2.9FO104,126B3B,N,348,N,YFRFN997FS
    FO483,169A0B,189,243CI13FRFN996FS
    BY4,3.0FO941,1237BCR,176,N,Y,N,AFRFN995FS
    FO847,1146A0B,85,86CI13FRFN994FS
    IF &WA_ZZE46SERIAL-ZPRINT& = 'X'
    FO778,1668A0B,43,56CI13FRFB256,0,0,LFN993^FS
    ENDIF
    FO715,88A0B,46,46CI13FR
    FDCountry of destinationFS
    FO61,1708A0B,42,61CI13FR
    FDPackage noFS
    FO934,704A0B,42,63CI13FR
    FDDelivery noFS
    The first part of the script above is used to display the fixed text that will appear on the label.
    ^XZ
    ^XA
    ^XFZB_PAC-EMN.ZPL
    FN999FD&T005T-LAND1&^FS
    FN998FD&VBPLA-VBELN&^FS
    FN997FD&V_PACKAGE&^FS
    FN996FD&VEKP-EXIDV&^FS
    FN995FD&V_SERIAL_BAR&^FS
    FN994FD&V_SERIAL&^FS
    IF &WA_ZZE46SERIAL-ZPRINT& = 'X'
    FN993FD&V_TEXT&^FS
    ENDIF
    ^PQ1,0,1,N
    ^XZ
    ^FX End of job
    The second part above contains the actual data that will be printed on the label. T005T-Land1 will print the country code. VBPLA-VBELN will print the Sales Document No. etc. This data comes from your print program.
    Hope this info helps.
    Reward points if useful.
    Thanks

  • Zebra ZPL II Commands e.g. ^PW in SIFbA ?

    Hello.
    we're using a smartform for label printing on a Zebra GK420T printer.
    This works fine.
    Now we had created a new SIFbA form with same functionality. But the
    output is not satisfying, because the Zebra printer does not use the right
    print width. So the output is displaced and shifted.
    In the smartform we used ZPL II command '^PW304' to set the right
    printwidth.
    Is there a way to get this command working also for SIFbA by modifying the
    azpl203.XDC File ?
    And if so, where to put this command ?
    Or are there other hints for designing labels with SIFbA on Zebra printers  ?
    Thanks.
    Sebastian Hockmann

    Hi Sebastian,
    I'm not sure why you use the script to change to portrait, when I print as landscape to zebra its fine.
    Try to do the following:
    Increase the page size to something larger than your pagesize, after that map out your layout like in my picture:
    This way you will know which part of the form is the area that prints.
    The reason I suggest this is that when I was on an older version of ADS (version 8.xxx) The area in which the label started was from 2 inches and downward, like in the previous picture i posted.
    The more numbers you have the easier itll be for you to determine which part of the form is printing.
    Let me know if this helps

  • LABEL Code in SAP-Scripts

    Hi,
    Can somebody explain me the below coding.Or if possible please provide me some useful links to understand this code.
    /E     LABEL_DATA
    /:     NEW-PAGE
    /     ^XA
    /     ^XFB:UPSGR.ZPL
    /     FN999FD&C_TAG_COUNTOF&^FS
    /     FN998FD&C_TAG_HU&^FS
    /     FN997FD&C_TAG_PO&^FS
    /     FN996FD&C_TAG_SHIP&^FS
    /     FN995FD&C_TAG_TELEPHONE&^FS
    /     FN994FD&C_TAG_TO&^FS
    /     FN993FD&C_TAG_UPS_BILLINS&^FS
    /     FN992FD&C_TAG_UPS_TRACK&^FS
    /     FN991FD&G_CUST_PONO&^FS
    /     FN967FD&G_WT_UNIT_CHAR&^FS
    /     FN966FD&LVBPLA-NAME1_WE&^FS
    /     FN965FD&LVBPLA-NAME2_WE&^FS
    /     FN964FD&LVBPLA-NAME3_WE&^FS
    /     FN963FD&LVBPLA-STRAS_WE&^FS
    /     FN962FD&LVBPLK-EXIDV&^FS
    /     ^PQ1,0,1,N
    /     ^XZ
    /     ^FX End of job
    Thanking in advance,
    Sudip.

    Its Zebra coding.
    please refer ZPL Manul to understand this &
    In your coding i had not observed any postions.
    Acording to my knowledge Using Barone Software we
    develop a layout what we required there it will generate a tiff file.
    What you added in your script or smartform should be through Tiff file & need to made the changes as you required using ZPL Manual.
    The Code should be like this.
    /:NEW-PAGE
    / ^XA
    / DFZ_UPCD-1FS
    / ^PRC
    / LH0,0FS
    / ^LL203
    / ^MD0
    / ^MNY
    / LH0,0FS
    / BY3,3.0FO61,1BUN,80,Y,N,YFRFN994FS
    / FO40,120A0N,27,21CI13FRFB331,1,0,CFN996^FS
    / FO72,159A0N,35,29CI13FRFN995FS
    / FO486,120A0N,27,21CI13FRFB331,1,0,CFN996^FS
    / FO30,159A0N,31,21CI13FR
    / FDP.N.FS
    / FO476,159A0N,31,21CI13FR
    / FDP.N.FS
    / FO517,159A0N,35,31CI13FRFN995FS
    / BY3,3.0FO507,1BUN,80,Y,N,YFRFN994FS
    / ^XZ
    /:NEW-PAGE
    / ^XA
    / ^XFZ_UPCD-1.ZPL
    / FN994FD&L_EAN11&^FS
    / FN996FD&L_MAKTX&^FS
    / FN995FD&L_MATNR&^FS
    / ^PQ1,0,1,N
    / ^XZ
    / ^FX End of job
    Thanks,
    Phani.

  • SAP Script Maxicode

    Hi
    I use BarTender tool to generate UPS labels on SAP Script. I could not print the Maxicode on the label. When I try to pass shipping parameters to maxicode string it prints label without maxicode. Can anyone of you help me in this issue.
    Pls share with me the problems you faced when you worked on Maxicode stuff.
    Thanks
    Hari

    Hi,
    well we do print the maxicode from UPS but not though Smartforms/SAPscripts. 
    What we do is build the entire EPL code inside ABAP and then spool it to unix , print and delete it.
    SAP will have issues with rs/gs/eot/ so until we can swap to a ZPL printer language. In ZPL there is a special command for SAP systems to send these characters
    Bottom line: If you need to do it in EPL it will NOT work inside Smartforms unless you can use ZPL.
    Frans

  • Printing Lables on Zebra's Z4M using ZPL in SapScript

    Hello Everyone,
    I've got one major problem. I'm trying to print labels using ZPL-Commands in Sap-Script.
    I created a new label as explained in so many posts here: One page, one page window, next page = first page.
    I got the ZPL-Code into the SapScript-Form as mentioned in older posts (importing into standard-text. then copy to main-windows of form.).
    O.k., everything went fine. And tadaa, I even can print the label out of my quality notification (--> stability study --> storage labels).
    O.k., now theres the point I need your help. Is there any idea why there is only one label printed? And not 10 like I wanted to be printed? In SAP-spool there are 10 pages.
    Heres the ZPL-Code of my Label:
    XATA000JSNLT0MMTMNWMTTPONPMNLH0,0JMAPR4,4MD0JUSLRNCI0^XZ
    /XALL0281
    /^PW799
    /FT152,53A0N,45,45FHFDMuster für Stabilitätsprüfung^FS
    /FT256,95A0N,23,24FHFD&MAKT-MAKTX&^FS
    /FT256,255A0N,23,24FHFD&QPRS-EINLDT&^FS
    /FT256,175A0N,23,24FHFD&QPRS-ABORT&^FS
    /FT256,215A0N,23,24FHFD&QPRS-KTEXT&^FS
    /FT256,135A0N,23,24FHFD&QPRS-CHARG&^FS
    /FT40,215A0N,23,24FHFDLagerbedingung:^FS
    /FT40,135A0N,23,24FHFDCharge:^FS
    /FT40,255A0N,23,24FHFDEinlagerungsdatum:^FS
    /FT40,175A0N,23,24FHFDEinlagerungsort:^FS
    /FT40,95A0N,23,24FHFDMaterial:^FS
    /PQ1,0,1,YXZ
    /E NEXT_WINDOW
    /* Neues Fenster für nächstes Etikett
    /: NEW-WINDOW
    I even tried it without the NEW-WINDOW command, but this didn't work either.
    Any good ideas?
    If you need more information just let me know.
    Thanks.
    Dirk
    25.06.2007: Hey folks. Am I the only one having this problem?
    Thanks.
    Message was edited by: Dirk Judas --> Push
            Dirk Judas

    Hello Everyone,
    I've got one major problem. I'm trying to print
    labels using ZPL-Commands in Sap-Script.
    I created a new label as explained in so many posts
    here: One page, one page window, next page = first
    page.
    I got the ZPL-Code into the SapScript-Form as
    mentioned in older posts (importing into
    standard-text. then copy to main-windows of form.).
    O.k., everything went fine. And tadaa, I even can
    print the label out of my quality notification (-->
    stability study --> storage labels).
    O.k., now theres the point I need your help. Is there
    any idea why there is only one label printed? And not
    10 like I wanted to be printed? In SAP-spool there
    are 10 pages.
    Heres the ZPL-Code of my Label:
    XATA000JSNLT0MMTMNWMTTPONPMNLH0,0JMAPR4,4^
    MD0JUSLRNCI0XZ
    /XALL0281
    /^PW799
    /FT152,53A0N,45,45FHFDMuster für
    Stabilitätsprüfung^FS
    /FT256,95A0N,23,24FHFD&MAKT-MAKTX&^FS
    /FT256,255A0N,23,24FHFD&QPRS-EINLDT&^FS
    /FT256,175A0N,23,24FHFD&QPRS-ABORT&^FS
    /FT256,215A0N,23,24FHFD&QPRS-KTEXT&^FS
    /FT256,135A0N,23,24FHFD&QPRS-CHARG&^FS
    /FT40,215A0N,23,24FHFDLagerbedingung:^FS
    /FT40,135A0N,23,24FHFDCharge:^FS
    /FT40,255A0N,23,24FHFDEinlagerungsdatum:^FS
    /FT40,175A0N,23,24FHFDEinlagerungsort:^FS
    /FT40,95A0N,23,24FHFDMaterial:^FS
    /PQ1,0,1,YXZ
    /E NEXT_WINDOW
    /* Neues Fenster für nächstes Etikett
    /: NEW-WINDOW
    I even tried it without the NEW-WINDOW command, but
    this didn't work either.
    Any good ideas?
    If you need more information just let me know.
    Thanks.
    Dirk
    25.06.2007: Hey folks. Am I the only one having this
    problem?
    Thanks.
    Message was edited by: Dirk Judas --> Push
            Dirk Judas
    Hello again,
    I solved the problem with a little help from a senior programmer. She told me to set the element /LABEL at the beginning of my textelement in main-windows.
    That's what I forgot.
    Dirk Judas

  • 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

  • Installation Problem on 11g, RHEL 5 - Unable to generate temporary script

    Hello all,
    This is for the first time i am encountering this kind of error on 11g. Half way through installation i get this error.
    All parameters set correct, used the official installation technique (works fine previously), except for this time i am getting a weird error, which does not allow me to continue with the installation.
    Please help.
    Environment
    Oracle 11g
    RHEL 5
    Error on GUI -
    OUI-10053: Unable to generate temporary script: {0}. Unable to continue install
    Error on command prompt -
    OUI-10053:Unable to generate temporary script: /u01/app/oraInventory/orainstRoot.sh. Unable to continue install.
    Help appreciated.
    Thanks

    Hi Monu Koshy
    Can you please control the user rights and also the df ?
    ls -al /u01/app/oraInventory/
    df -h /u01/app/oraInventory/
    Regards,
    Hub

  • SAMPLE RECEIVING OPEN INTERFACE SCRIPT(ROI 이용자를 위한 SCRIPT)

    제품: MFG_PO
    작성날짜 : 2006-05-11
    SAMPLE RECEIVING OPEN INTERFACE SCRIPT(ROI 이용자를 위한 SCRIPT)
    ================================================================
    PURPOSE
    Receiving Open Interface(ROI)를 좀더 쉽게 사용할 수 있도록 만들어진
    tool이라고 할 수 있다. 이 script를 이용을 통해 user는 PO no, user id,
    Org id를 입력하면 script는 PO에서 최소한의 data를 가져와 receiving
    transaction을 생성하기 위해 ROI에 data를 입력한다.
    Receiving Transaction Processor는 insert 된 data를 실행한다.
    Explanation
    Instructions:
    1.Script exroi.sql을 local computer에 copy 하거나 sqlplus 환경의 text
    edior에 script 내용을 cut&paste 한다.
    2.사용가능한 PO no, User id, Org id를 결정한다.
    3.sqlplus prompt에서 아래와 같이 입력한다.
    SQL> @ezroi.sql
    4.PO no, User id, Org id를 입력하라는 prompt를 볼 수 있을 것이다.
    5.exroi.sql script를 관련된 PO data를 가져와 rcv_headers_interface 및
    rcv_transactions_interface tables에 insert 한다.
    만일 PO shipment lind이 closed, cancelled, fully received 되었다면
    ROI table에 data를 insert 하지 않는다.
    Note: 이 script가 data를 validate 하진 않으며,ROI API 자체 validation
    이 실행될 뿐이다.
    6.Script가 끝나면 Receiving Transaction Processor를 실행하여 insert 된
    lines을 처리할 수 있다. Transaction Status Summary 화면을 통해 실행된
    line이 pending 인지 error 상태인지 확인할 수 있다.
    Notes:
    1.Org_id parameter 값을 찾는법:
    a) Application에 접속, Help> Diagnostics> Examine으로 이동.
    Block:$Profile$, Field: ORG_ID 를 선택한다.
    b) ORG_ID 값을 note 해 놓고 ORG_ID prompt시 이 값을 입력한다.
    2.User_Name parameter 값을 찾는법:
    a) Application에 접속, Help> Diagnostics> Examine으로 이동.
    Block:$Profile$, Field: USER_NAME 를 선택한다.
    b) USER_NAME 값을 note 해 놓고 USER_NAME prompt시 이 값을 입력한다.
    Example
    "eZROI.sql' script...
    --*** eZROI ***
    --*** by ***
    --*** Preston D. Davenport ***
    --*** Oracle Premium Applications Support ***
    --*** Oracle Worldwide Global Support Services ***
    --*** Date: 23-JUL-2003 - Beta release ***
    --*** Date: 09-SEP-2003 - Rev A Added multi- ***
    --*** shipment line capability ***
    --*** Parameters: ***
    --*** ORG_ID Organization ID ***
    --*** USER_NAME FND User Name ***
    --*** PO_NUMBER Purchase Order Number ***
    --*** This script intended for a standard Purchase ***
    --*** Order document to be inserted into the Oracle ***
    --*** Receiving Open Interface (ROI) via the standard ***
    --*** Oracle open interface api for a simple Receive ***
    --*** transaction. ***
    --*** Note: This script only considers open Purchase ***
    --*** Orders. This script will not allow over- ***
    --*** receipt, cancelled or closed PO's to be ***
    --*** inserted into the ROI and received ***
    CLEAR BUFFER
    SET VERIFY OFF
    SET LINESIZE 140
    SET PAGESIZE 60
    SET ARRAYSIZE 1
    SET SERVEROUTPUT ON SIZE 100000
    SET FEEDBACK OFF
    SET ECHO OFF
    DECLARE
    X_USER_ID NUMBER;
    X_PO_HEADER_ID NUMBER;
    X_VENDOR_ID NUMBER;
    X_SEGMENT1 NUMBER;
    X_ORG_ID NUMBER;
    X_LINE_NUM NUMBER;
    BEGIN
    DBMS_OUTPUT.PUT_LINE('***ezROI RCV API Insert Script***');
    SELECT PO_HEADER_ID , VENDOR_ID , SEGMENT1 , ORG_ID
    INTO X_PO_HEADER_ID , X_VENDOR_ID , X_SEGMENT1 , X_ORG_ID
    FROM PO_HEADERS_ALL
    WHERE SEGMENT1 = '&PO_NUMBER'
    AND ORG_ID = &ORG_ID;
    SELECT USER_ID INTO X_USER_ID
    FROM FND_USER
    WHERE USER_NAME = UPPER('&USER_NAME');
    INSERT INTO RCV_HEADERS_INTERFACE
    HEADER_INTERFACE_ID ,
    GROUP_ID ,
    PROCESSING_STATUS_CODE ,
    RECEIPT_SOURCE_CODE ,
    TRANSACTION_TYPE ,
    LAST_UPDATE_DATE ,
    LAST_UPDATED_BY ,
    LAST_UPDATE_LOGIN ,
    VENDOR_ID ,
    EXPECTED_RECEIPT_DATE ,
    VALIDATION_FLAG
    SELECT
    RCV_HEADERS_INTERFACE_S.NEXTVAL ,
    RCV_INTERFACE_GROUPS_S.NEXTVAL ,
    'PENDING' ,
    'VENDOR' ,
    'NEW' ,
    SYSDATE ,
    X_USER_ID ,
    0 ,
    X_VENDOR_ID ,
    SYSDATE ,
    'Y'
    FROM DUAL;
    DECLARE
    CURSOR PO_LINE IS
    SELECT PL.ITEM_ID , PL.PO_LINE_ID , PL.LINE_NUM ,
    PLL.QUANTITY , PL.UNIT_MEAS_LOOKUP_CODE ,
    MP.ORGANIZATION_CODE , PLL.LINE_LOCATION_ID ,
    PLL.CLOSED_CODE , PLL.QUANTITY_RECEIVED ,
    PLL.CANCEL_FLAG, PLL.SHIPMENT_NUM
    FROM PO_LINES_ALL PL ,
    PO_LINE_LOCATIONS_ALL PLL ,
    MTL_PARAMETERS MP
    WHERE PL.PO_HEADER_ID = X_PO_HEADER_ID
    AND PL.PO_LINE_ID = PLL.PO_LINE_ID
    AND PLL.SHIP_TO_ORGANIZATION_ID = MP.ORGANIZATION_ID;
    BEGIN
    FOR CURSOR1 IN PO_LINE LOOP
    IF CURSOR1.CLOSED_CODE IN ('APPROVED','OPEN')
    AND CURSOR1.QUANTITY_RECEIVED < CURSOR1.QUANTITY
    AND NVL(CURSOR1.CANCEL_FLAG,'N') = 'N'
    THEN
    INSERT INTO RCV_TRANSACTIONS_INTERFACE
    INTERFACE_TRANSACTION_ID ,
    GROUP_ID ,
    LAST_UPDATE_DATE ,
    LAST_UPDATED_BY ,
    CREATION_DATE ,
    CREATED_BY ,
    LAST_UPDATE_LOGIN ,
    TRANSACTION_TYPE ,
    TRANSACTION_DATE ,
    PROCESSING_STATUS_CODE ,
    PROCESSING_MODE_CODE ,
    TRANSACTION_STATUS_CODE ,
    PO_LINE_ID ,
    ITEM_ID ,
    QUANTITY ,
    UNIT_OF_MEASURE ,
    PO_LINE_LOCATION_ID ,
    AUTO_TRANSACT_CODE ,
    RECEIPT_SOURCE_CODE ,
    TO_ORGANIZATION_CODE ,
    SOURCE_DOCUMENT_CODE ,
    DOCUMENT_NUM ,
    HEADER_INTERFACE_ID ,
    VALIDATION_FLAG
    SELECT
    RCV_TRANSACTIONS_INTERFACE_S.NEXTVAL ,
    RCV_INTERFACE_GROUPS_S.CURRVAL ,
    SYSDATE ,
    X_USER_ID ,
    SYSDATE ,
    X_USER_ID ,
    0 ,
    'RECEIVE' ,
    SYSDATE ,
    'PENDING' ,
    'BATCH' ,
    'PENDING' ,
    CURSOR1.PO_LINE_ID ,
    CURSOR1.ITEM_ID ,
    CURSOR1.QUANTITY ,
    CURSOR1.UNIT_MEAS_LOOKUP_CODE ,
    CURSOR1.LINE_LOCATION_ID ,
    'RECEIVE' ,
    'VENDOR' ,
    CURSOR1.ORGANIZATION_CODE ,
    'PO' ,
    X_SEGMENT1 ,
    RCV_HEADERS_INTERFACE_S.CURRVAL ,
    'Y'
    FROM DUAL;
    DBMS_OUTPUT.PUT_LINE('PO line: '||CURSOR1.LINE_NUM||' Shipment: '||CURSOR1.SHIPMENT_NUM||' has been inserted into ROI.');
    ELSE
    DBMS_OUTPUT.PUT_LINE('PO line '||CURSOR1.LINE_NUM||' is either closed, cancelled, received.');
    END IF;
    END LOOP;
    DBMS_OUTPUT.PUT_LINE('*** ezROI COMPLETE - End ***');
    END;
    COMMIT;
    END;
    SET VERIFY ON
    Reference Documents
    Note 245334.1

    I have the same problem on ESXI 5.5 for over a month now, tried the patches, tried the LTS kernel which others say results in an immediate result without patches, nothing seems to work and nobody seems to be able to offer a solution.
    Did you make any progress ??
    Error! Build of vmblock.ko failed for: 3.10.25-1-lts (x86_64)
    Consult the make.log in the build directory
    /var/lib/dkms/open-vm-tools/2013.09.16/build/ for more information.
    make[2]: *** No rule to make target '/var/lib/dkms/open-vm-tools/2013.09.16/build/vmblock/linux/inode', needed by '/var/lib/dkms/open-vm-tools/2013.09.16/build/vmblock/vmblock.o'. Stop.
    Makefile:1224: recipe for target '_module_/var/lib/dkms/open-vm-tools/2013.09.16/build/vmblock' failed
    make[1]: *** [_module_/var/lib/dkms/open-vm-tools/2013.09.16/build/vmblock] Error 2
    make[1]: Leaving directory '/usr/src/linux-3.10.25-1-lts'
    Makefile:120: recipe for target 'vmblock.ko' failed
    Last edited by crankshaft (2014-01-10 11:32:32)

Maybe you are looking for