SAP Script - How to check a text element is empty in Script.

Hello Friends,
              I like to display a text element when it is not empty, otherwise I like to display some other text.
I know how to read text element in Script, but 
How to check a text element is empty in Script
Thank you for your time.
Senthil

Hi Senthil,
Inside text element, we print the variables.
Variables actually gets printed in the form.
if the variable contains value the variable gets printed on script. if not, then variable not gets printed.
hope this helps.

Similar Messages

  • How to color the text  elements in script?

    how to color the text  elements in script?
    byeeeee
    plz send the answers

    Hi,
    Please go through my blog to know how to do color printing in SAP scripts.
    White Paper on 'Color Printing in SAP Scripts'
    Regards,
    Sireesha Ch

  • How to transport the  text elements

    hi guru's,
      i need answer to this question.
      how to transport the text elements in the sap script?

    Hi,
    U mean Standard Text?
    Standard Text can create using SO10.
    Use RSTXTRAN Standard Program..
    Do Like this..
    Goto se38 and enter program name as RSTXTRAN
    and press F8..
    and give Text-key Name as Standard Text Name
    then Press F8..
    And select Select check box.. and enter
    and press on trsfr to corr button..
    it asks transfee textxs to a correction..
    press on yes button..
    it will show request number or create your own request...
    and after goto SE10 tcode and Transport it...
    Regards,
    KK

  • How to transport the text elements in  Reports?

    need answer to this question.
    how to transport the text elements in the reports?
    Edited by: venkata kumar on Feb 18, 2008 1:33 PM

    Hi Venkata,
    Text Elements are a component/part of the SAP script and are not individual ABAP objects within the SAP environment hence they cannot be transported independently.
    You would need to make changes in your text elements in the SAP script which would result in the SAP script being saved under a transport and moving the transport across the landscape would result in the text elements also getting transported.
    In short: Move SAP script - to move text elements.
    Cheers,
    Aditya

  • How to display standard text element of main window in next page

    hi all
    In scripts we have standard script medruck for purchase order.
    i want to pull text elements ( terms and payment terms ) in to main window of next page.
    i have included main window in page windows of next page ,but im unable to print text elements of terms and payment terms in next page...
    any one give your valuable inputs.
    Thanks
    deepika.

    Hi deepika,
    First copy standard MEDRUCK to ZMEDRUCK and do the necessary changes.
    Then check in driver program when exactly Terma and condition text element is called. Generaly its after printing all items but just check once to confirm.
    If TERMS and condition element is called ate end just put a NEW-PAGE  command at end of the text element which is called before terms.
    Hope this will help You.
    Thanks
    Dhiraj.

  • How to copy a text element to another in sapscript

    Question
    Have a bug in the system and need to copy an existing text element to a new one.
    How do you do this.
    I have found the text elelement in tihe MAIN window - the code /E   510-C  <-- this needs to be copied to a new text element called /E    510-A.  I can cust and paste this into the text element screen  But doesn't the 510-A refer to some text created via SO10?  But then doesn't sapscript require you to use an include to get the text in there?
    HELP - 2 days from go -live here!!
    Thanks and big points to who can ever help!

    Text elements are specified with "/E".  These are different from STANDARD TEXT objects that you define in SO10 and reference with the INCLUDE statment.
    Text elements are called from the ABAP print program.  If you copy text element 510-C to 510-A, the ABAP print program has to call element 510-A to execute the statements in this section.
    Are you dealing with errors from a syntax check?

  • How to active the text element (F9) in manu bar

    Hi Expart,
                   I am working with sap Script when i select the window in page window ,then try to insert text by edit->text element , but this option is deactivated.
                  Can any one help me to inset text to those window ..
    Thanks in advance ,
    Tarak

    hi,
    after creating a new page you have to goto page windows. Otherwise you caonnot create textelements.
    There also must also made aready some windows. In no windows exist you have to go to windows.
    hope this helps.
    Gr., Frank.
    PS. Try to work with the graphical form painter. Then you will not have those problems.

  • How to get the text elements for a particular program

    Hi All,
    I want to get the all text elements , selection texts for a particular program...How to get.
    I have used one FM READ_TEXTELEMENT_FROM_REPORT , but not much useful..
    please help me..
    Regards,
    raj

    Hi..
    You may use this statement to read the text elements:
    DATA: i_reptx  TYPE STANDARD TABLE OF textpool   WITH HEADER LINE.
    READ TEXTPOOL (reports) INTO i_reptx. " reports is the report name.
    Best Regards,
    Pradeep.

  • How to end a text element

    Hi,
    Iam having a text element which holds the data of an internal table which has 15 records and it prints those records in the main window. Once all these 15 records got printed i need to print a standard text.
    for me what happens is it prints one record and then it prints standrad text then 2nd record and standard text klike this it goes for all 15records. Can any one tell me why this happend and how to correct it.
    the code which i have written is
         /E     E1
         P1   &IT_BKPF-BELNR&     &IT_BKPF-BLDAT&     &IT_BKPF-BUDAT&
         /:      INCLUDE ZTEXT_TEST OBJECT TEXT ID ST LANGUAGE EN.
    Please help.Thanks
    Regards,
    Rose.
    Edited by: camila phyrose on Feb 18, 2009 7:08 AM

    Hi,
    Create a window below main window  and write the standard text there.
    After every record,it will write the standard text there as u have written in the text editor
    without any condition.
    This is bcoz, the text elements only ends when there is another text element.
    If u are sure that only after 15 records it should print the text,then give condition.
    /E E1
    P1 &IT_BKPF-BELNR& &IT_BKPF-BLDAT& &IT_BKPF-BUDAT&
    /: If &w_temp& eq 15.
    /: INCLUDE ZTEXT_TEST OBJECT TEXT ID ST LANGUAGE EN.
    /: Endif.

  • How can I use Text-Elements in Dynpro Buttons ?

    Hello Experts,
    I have create a dynpro screen with the screen-painter.
    In this screen have a button, in which label i want to use defined textelements.
    This has the advantage that i can expand it to other languages.
    The screen is an standard screen.
    In the Button i have to try using   &&Text-001&& , but it doesn't show me the contain of Text-001 .
    It show me &&Text-001&& as label in the button.
    How can I do  ?
    Which possibilties are existing ?
    Thanx in advnace for your responses
    Best Regards

    In button attributes select output field . Then in program define a vairable for the button with the same name and assign the text element to it before screen is displayed.
    data: button(10) type c. "your button name
    button = text-001.
    call screen 100.
    Regards
    Marcin

  • How to color the text element in selection screen

    hi,
    i am going to pass some text element in selection screen output  and my requiremnt is text element should be given some colour.
    plz guide me.
    regards
    muthuraman.d

    Hi...
    Dont Declare your field as OBLIGATORY.
    Instead perform the validation in AT SELECTION-SCREEN event. But validation should be only when Particular Radiobutton is selected.
    And Generate only Error Message (Type E).
    Try this code:
    AT SELECTION-SCREEN on <yOUR mandatory field>.
       IF PA_UPD = 'X'.
             IF <YOUR MANDATORY FIELD>  IS INITIAL.
                  Message 'Entry is must in this field' type 'E'.
             ENDIF.
       ENDIF.
    AT SELECTION-SCREEN OUTPUT.
    IF pa_udp = 'X'.
    LOOP AT SCREEN.
    IF screen-group1 = 'ABC'. "#CCE
    screen-active = 1.
    ELSEIF screen-group1 = 'DEF'.
    screen-input = 0.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ELSEIF pa_rep = 'X'.
    LOOP AT SCREEN.
    IF screen-group1 = 'ABC'. "#CCE
    screen-input = 0.
    ELSEIF screen-group1 = 'DEF'.
    screen-active = 1.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ENDIF.
    <b>Reward if Helpful</b>

  • Smartforms - How to import ttdtg text elements

    Hello Techies,
    I'm transforming a sapscript to a smartform. In the sapscript they make use of text elements from the ttdtg table. Sapscript knows this a translates an element example &ZTEST& to its corresponding text in the correct language.
    Can this still be used in some way in SMARTFORMS?
    Best Regards,
    Frederik

    Hi
    U can use same but it can be use upto 4.6c only
    otherwise u hav to use
    Text            QTY_TEXT
    Description     Text for Quantity
    <b>Text type</b> <b>Include Text</b>
    Text name         ZGRQTY
    Text object       TEXT
    Text ID           ST
    Language          &W_LANGUAGE&
    regards
    vinod

  • How can i create text elements in business object?

    is dis possible to crete text elements in business objects...if any body knows please give me the idea...

    Hello,
    are we talking about the BEx Text elements that are also available in the BEx Analyzer ? if so then this is right now only possible in Analysis, OLAP Edition and Analysis, Edition for Microsoft Office.
    Ingo

  • Workflow: check multiline container element for emptiness

    Hi!
    Please suggest how to check multiline workflow-container element for emptiness in condition block.
    Regards,
    Maxim.

    Hi Max,
    One way to do this is to add a process step which calls a function module passing the multiline container as the import parameter. In this function mod, you can check for emptiness and set a variable which will be the export parameter. Map this export parameter of the step to a workflow container field. Finally in the next step (control block) you can check the above workflow field.

  • How to check a text type if it is filled or not for specific user status

    Hello;
    I want to check if a text type in a notification is filled or not for a specific user status. I guess that can be done using the BADI "ORDER_SAVE", but not sure how to do that.
    Regards,
    Erkan Kaya

    Hello Erkan.
    You can use the function module CRM_ORDER_READ_OW in method check_before_save of BADI ORDER_SAVE.
    Fill the header_guid of the notification into the it_header_guid table parameter and get the returning table ET_TEXT.
    For performance reason you should provide importing parameter it_requested_objects.
    INCLUDE CRM_DIRECT.
    APPEND gc_object_name-texts TO it_required_objects.
    Then you can check in et_Text if the required text is maintained. If not, you can raise the exception DO_NOT_SAVE in the BADI.
    Regards,
    Timo.

Maybe you are looking for

  • Multiple versions of the same JDBC driver - OK ?

    Hello We are using SJSAS 8.1 on our production server, it makes access to an Oracle database for user authentication and thus we have a copy of the Oracle thin driver ojdbc14.jar located in the directory. <sjsas_install>/lib Each of our web applicati

  • Change Posting Date In MIGO

    Hi, I've a requirement in which i need to change the value of posting date (previous date) based on a particuler value of plant and material type for transaction MIGO. Is this possible through any of the exit or Badi or field exit. I had tried throug

  • Safari times out when uploading. Is there a fix?

    I'm a fan of the Safari webbrowser, BUT, for years it has pained me that it times out when uploading multiple images. I have scowered the internet in hopes to find a solution, but I find only third party plugins that don't look like they are from rel

  • Flash banner- How to change wording in premade flash 

    I bought this banner online and I'm having a problem It says "Your Logo Here" But I can't find the place in the html or in flash to change the wording. ANY IDEAS . Help.

  • Sudden Safari crashes

    (First time question from someone who is not terribly computer-literate, so please excuse anything that seems stupid) For some strange reason, Safari has decided to start crashing today - after 15 months of trouble-free operation. Nothing has changed