Sapscript douubts

Hello Friends,
Iam working with sapscripts.
I was created a text box in my selection screen
if i enter my invoice no. and also i have to enter some remarks in that text box it has to come in the output.It is coming.But it has to save,because  again if enter the same invoice no. that same remarks has to come after pressing Enter.That should be saved for that invoice no.
Thank you,

Hi,
In the PAI event :
Assign value from the field into the work area or if you want to update Z table then use UPDATE command with SET value equal to the field name.
MODULE USER_COMMAND_100.
case ok_code.
when 'SAVE'.
Insert ZTABLE value wa_data.
when 'EXIT'.
LEAVE TO SCREEN.
Endcase.
ENDMODULE.
Best regards,
Prashant

Similar Messages

  • IF statement in SAPscript

    I'm probably making a really simple mistake, but I've got the following code in a SAPscript window:
    /: IF &REGUD-WRBTR& GT 0
    HE <S>DR></>
    /: ELSE
    HE <S>CR></>
    /: ENDIF
    I've debugged through the print program and REGUD-WRBTR is 1175.00 but it still prints CR.
    Any ideas?
    Gill

    use
    IF REGUD-WRBTR GT 0
    without &

  • Barcode C128 is not getting displayed in Sapscript

    HI,
    I need to print the barcode in the Sapscript.
    The barcode is not getting displayed even in the preview also, when I give the Barcode C128.
    But when I give other Barcodes, it is getting displayed in the preview.
    Can anyone let me know the solution to print the barcode for C128, as others are not that much fit to print.
    Thanks
    Rakesh

    Hi Dieter,
    No. I haven't.
    Is this the reason for that?
    let me know the procedure.
    thanks
    Rakesh

  • How can I transfer sapscript from one client to another

    Please tell me the steps , how can I <b>transfer</b> SAPscript from one client to another (like DEV Client to Test Client)?

    Hi,
    Utilities --> Copy from client.
    If you have to copy from once system to another use Program RSTXSCRP
    Regards,
    Satish
    Message was edited by:
            Satish Panakala

  • How can i print all the contect of the code in sapscript window ? ?

    how can i print all the contect of the code in sapscript window ? ?

    Hi,
    Do you mean that you want to print the ABAP code to SAPscrip form ?
    Svetlin

  • How to print the text in only last but one page in sapscripts

    hiiiiiiiiiii,
             explian how to print the text in only last but one page in sapscripts? wher to write the code? plz if possible explain in detail with an example?

    Hello,
    The total no pages is given by &SAPSCRIPT-FORMPAGES& command.
    So u can handle the situation in ur form like this
    /: if &PAGE&  = &SAPSCRIPT-FORMPAGES&
    p1 TEXT
    /: endif
    Try in this way it may help u.
    Regards

  • Sapscript translated in non-english language - Garbled output as Email

    Hi Experts,
    I've translated a SAPscript  to Chinese and Thai language.
    As per my requirement, the output can either be printed, emailed or faxed.
    I'm using the standard include  RVADOPFO for Open form.
    For the english version, I'm able to recieve the properly formatted e-mail output.
    However in case of thai and chinese, the Thai and Chinese characters do not appear. Most of them are substituted with blank spaces and some are substituted with boxes and unknown characters. However, the numbers and english characters appear.
    Please help in getting the correct output.
    Thanks!
    Nitya.

    Hi,
    SAP 141343. PDF Conversion: Latin-2.
    SAP 141901. Customer-specific fonts for PDF conversion.
    SAP 163266. PDF conversion: character set for softfonts.
    SAP 171698. SAPconnect: Formats, conversion, device type.
    SAP 317851. Creating PDF format via spooler in 4.6C/4.6B/4.5B.
    SAP 322998. PDF conversion: Cyrillic support.
    SAP 323736. Restrictions with "PDF print" through spooler.
    SAP 398357. PDF converter: Width of letters is incorrect.
    SAP 414325. SAPconnect: Conversion of ALI to PDF.
    SAP 504952. Composite note spool and print.
    Find these notes, there You'll find some answers.
    Regards,
    Nisrin.

  • Gerar PDF com código de barras a partir de um SAPScript

    Bom Dia Senhores!
    Estou tendo problemas na geração de um arquivo PDF a partir de um SAPScript com código de barras.
    Tenho um formulário SAPScript que contém código de barras, este, é gerado pela F110.
    O programa precisa que este arquivo PDF gerado seja enviado por email, porém ao gerarmos um arquivo PDF deste SAPScript, o código de barras contido nele é meramente ilustrativo, ou seja, não sai com as informações certas do boleto, sai como imagem.
    É de meu conhecimento que se este formulário fosse um SmartForm sairia tudo perfeito já que a transformação do SmartForm em PDF mantém o código de barras de forma correta.
    Porém, se formos na SP01 e mandamos imprimir este SAPScript com a saída 'PDF Creator' ele gera o código de barras corretamente.
    Minha pergunta é se alguem conhece alguma função de transformação de SAPScript para PDF que funcione corretamente, algo similar ao funcionamento do PDFCreator.
    Obrigado;
    Daniel Salerno de Arruda

    Boa Tarde Daniel Salerno,
    Tenho o mesmo problema que você tinha.
    Gero um arquivo em PDF com Boleto de pagamento para enviar mas o código de barras neste arquivo é meramente ilustrativo e não consigo enviar o código para leitura.
    Este formulário está em SAPScript,
    Será que você pode me ajudar ?
    Obrigada.
    Solange Guimarães.

  • IF condition in Sapscript

    Hi all,
    Have created a new window in one of the scripts recently.
    I was asked to display this  window( with some data) only for company code NL01.
    So I kept the condition , IF reguh-zbukr = 'NL01'..and wrote the code..
    Now Im asked to extend the functionality to some other company codes..
    I have written code lke this..pls suggest whether it is correct or not...( I cant test this now..but no test data available as of now..so need your help..Thanks)
    /:IF &REGUH-ZBUKR& = 'NL01' OR  &REGUH-ZBUKR& = 'BE01' OR
    /=  &REGUH-ZBUKR& = 'BE02'
    ZI  Sold to
    /:   ENDIF

    Max notes correctly...but you might also consider:
    /: DEFINE &CO_SWITCH& = ' '
    /:PERFORM CHECK_COCO IN PROGRAM(your routines program)
    /:USING &REGUH-ZBUKR&
    /:CHANGING &CO_SWITCH&
    /:ENDPERFORM.
    /: IF &CO_SWITCH& eq 'X'
    ZI  Sold to
    /: ENDIF.
    Your CHECK_COCO routine would examin the value passed in and determine whether or not to set &CO_SWITCH ON or OFF.  This would allow you to read rows of customizing table or variables table, or apply logic to determine on/off, and you would not have to change your SAPScript in the future if the requirements changed.

  • Sapscript if statement

    hi,
    may i know why the if statement doesn't work in sapscript?
    IF &BSID-BUDAT& GE &RF140-DATU1&
    xxxx
    ELSE
    yyyy
    ENDIF
    (where &BSID-BUDAT& = 07.01.2008 and &RF140-DATU1& = 01.03.2008)
    actually march is greater than january but it still able to perform xxxx.
    it should perform yyyy and not xxxx.
    can have the advice?
    thanks
    rgds

    Dear,
    you have to do this in order to resove the problem.
    create a variable say z_status in your program not in script.
    then in program write this.
    data: z_staus type C.
    if bsid-budat GE rf140-datu1.
    clear z_status.
    z_status = 'Y'.
    else.
    clear z_status.
    endif.
    now in sapscript.
    IF z_staus eq 'Y'.
    xxxx
    ELSE
    yyyy
    ENDIF
    reward if useful.
    Amit Singla

  • Sapscript: IF statement over multiple lines ?

    Hi,
    in my sapscript i have to use an IF statement with many OR conditions
    /:   IF cond1 OR cond2 OR cond3 OR cond4 OR cond5 ........
    But i can't write it on one line. Even with SHIFT-F8 to go to the right the line lenght is too short.
    How can i solve this one ?
    regards,
    Hans

    Hi,
    This is not a solution, more a workaround but should avoid the line length problem.
    Define a flag in your form (/: DEFINE &IF_FLAG&), then you can call an ABAP subroutine to set the value of this flag (take a look at the online help for SAPscript PERFORM if you're not familiar with it).  The subroutine will contain your long IF statement and the SAPscript will just contain
    /: IF &IF_FLAG& = 'X'.
    Regards,
    Nick

  • My IF statement can't fit on 1 line in SAPSCRIPT

    Hello experts and friends,
    I am currently inserting a particular IF statement in a particular window in SAPSCRIPT editor(SE71) and it doesn't fit. Any suggestions? Thanks a lot guys!

    Hi,
    Put your cursor on the line that has the IF statement & use the menu option Edit--> Page Left/Right or 'Shift+F8'
    Regards,
    Suresh Datti

  • SAPSCRIPT form - Text is not porperly displayed

    hi all,
    in my SAPSCRIPT form, I am getting a text from PERFORM stmt. in the PERFORM , the text is coming correct, but in the form , it is showing only half of the text.
    the code
    FORM get_text TABLES ts_intab STRUCTURE itcsy
                         ts_outtab STRUCTURE itcsy.
    DATA: l_haul_text(500) TYPE c,  
               l_haul_long(250) TYPE c.
    l_haul_long = l_haul_text+0(250).
        LOOP AT ts_outtab.
          CASE ts_outtab-name.
            WHEN 'L_HAUL_LONG'.
              ts_outtab-value = l_haul_long.
              MODIFY ts_outtab.
          ENDCASE.
        ENDLOOP.
    Then in the form, just display
    /:  PERFORM GET_TEXT IN PROGRAM
    /:   USING &VBDKL-VBELN&
    /:   CHANGING &L_HAUL_LONG&
    /:  ENDPERFORM
    &L_HAUL_LONG&
    while debugging, the text is correct till TS_OUTTAB but when it comes to the form L_HAUL_LONG, it is truncated.......what should i do..
    Kindly help.
    THnaks

    answered

  • Fields not getting displayed in Sapscript

    Hi Guyz,
    I have a customized Sapscript form ZPV_INVOICE and its print program RVADIN01. This form outputs the Sales Invoice. When the print preview is triggered, Material number (MATNR) is not getting displayed on the form. However, when the form is debugged, MATNR values are properly fetched and showed (while debugging only, not in output).
    Can somebody please let me know the reason, why the MATNR is not getting displayed on the output, even though it is showing values while debugging.
    Thanks in advance !

    Hi ,
    Then check matnr  field which is display  is same  what you are checking  in debugging  .
    COnfirm  the field   and check whether data stays till end of module   .
    regards
    Deepak.

  • Blank page is getting displayed in SAPScript when using NEW-PAGE option.

    Hello Experts,
    We have created a customized SAPScript and in this separate Script is generated based on the currency(WAERS).
    So if we have 3 different currencies, then 3 pages will be created with there details, but we are using NEW-PAGE option in
    MAIN window to separate the pages and after 3rd page it is displaying 4th page also with footer details.
    So how can we avoid last blank page which is getting displayed?

    Hi isha.walia ,
       This issue can be solved by two ways. Please take the one which suits you better.
    Solution 1: If  you need to generate separate prints for different currencies.
    In the driver program, build an internal table for different currencies which needed to be printed. (Using delete adjacent duplicates, build the internal table with exact number of currencies to be printed). Remove the NEW-PAGE option and call the script/form inside the loop. Do the necessary conditions to manipulate the print.
    Advantages of above solution: Better control on spools if needed.
    Solution 2:  Get the count of the number of pages in a variable. Inside the print loop, increment a flag counter. Check it against the variable which contains the number of pages to be printed at the end of each page. Exit the loop when the number of pages to be printed is reached.
    Advantage of above solution: Simple to write the program.
    Thanks and Regards
    Raghesh R S

Maybe you are looking for

  • Does it take a miracle for BT to get things right ...

    We moved office back in July,had BT on the phone, ordering new line and services for the new office as well as winding up the old office account, didn't think much of it afterward because the manager assured me everything is under control. Two days b

  • ORA-00604: error occurred at recursive SQL level 1 ORA-01882: timezone

    Hi I'm trying to config my base_domain for SOA11g but i'm getting the following error when connecting to my Oracle XE DB to configure SOA, please help thanks Software installed OS: Windows 7 64bit DB: Oracle XE 10g Oracle SOA 11.1.1.4.0 Oracle RCU 11

  • Virtual PC 7 problem

    Well now that I have upgraded to version 7, it is not working as well as 6 was. I have been searching for microsoft support, but just like their OS, no organization whatsoever. Maybe someone here has seen this problem. Windows 2000 was running fine i

  • Problem with tilde character in password

    I've discovered an odd bug in 10.5.8 (updated from my 10.5.6 Retail copy) where a tilde in a password field fails to get passed to a remote macintosh. Using a password such as abc~xyz is valid for setting up an account and logging into the system (or

  • Time Machine Back up fails 10% of the way thru.

    Cannot get Time Machine to do an initial Backup. Using a WD Elements external USB drive that I have used successfully on other macs. Gets about 15 G thru a 132 G backup. I have verified and repaired both the Mac HD and WD external Message is The back