Enquiry in SAPSCRIPTS

Hi,
I am new to SAPSCRIPTS.Can any one help in adding fields to STd MEDRUCK step by step.
POoja

hi Pooja,
If you wish to add fields to the standard Form MEDRUCK then you need to first decide on which window you're going to add fields or are you going to create a new window, if yes then why? becoz u have many windows that may match your requirements. These are the conditions you need to check before u go for any modification or add new fields.
For adding new fields, check that the table is present in theprint program or not from which you create a structure and use in the form's editor.
Eg: A window in the form wants to add three fields from table 1..then in this case, check the table1 is present in theprint program or not. If not, include this.
create a field string for that table and use this way in the window's editor.
&w_table1-fieldname&
this should hav provided u some tips.
regards,
shamim

Similar Messages

  • Enquiry in sapscript

    Hi,
    I want to ouptut all items corresponding to the particular purchase order  in sapscript.
    Can u give me code..Plz this is urgent.
    Pooja

    Hi Pooja,
    Anji is right.
    First you should use the predefined form i.e. MEDRUCK which is the PO form, and convert into your own user-defined form and then chenge as per your requirement.
    Since it is the predeifned form itself, it will have all the item records in it. so just go to NACE-----> then add the form which you defined and execute.
    Or
    go to print program SAPFM06P for the output type NEU.
    Hope this will resolve your query.
    Reward all the helpful answers.
    Regards

  • Fetching Enquiry date in RFQ sapscript

    Hi all,
    I need to fetch Enquiry date in my customized standard sap script form .The field name is ANFDT and it is declared in structure RM06E.Please let me know hoe to do it.
    Thanks
    Manu

    Hi
    check this Table/Filed EKKO-ANGDT
    In EKKO Table you will get RFQ Data.And you need to check the document category and type to A and AN respecitvely.
    Ranga

  • Enquiry in strike in sapscript

    Hi,
    How will I Strike text in SAPSRIPT?
    regards,
    pooja

    Hi Pooja,
    Culd you please elborate the term STRIKE..it's causing confusions in this case.
    If you want to delete the texts at runtime from the scripts, then please first read the texts using READ_TEXT...then loop on this and inside this loop, you can delete the texts from the internal table...i think u don't want this solution????
    thanks,
    shamim

  • 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

Maybe you are looking for