Smartforms-avoid the form if no values are there

Hi All,
iam printing 6 different forms at a time by writing the code in se38 like this.<b>But if any form doesnt have any value then i should avoid that form</b>. My total code is developed in forms only.Just by calling forms in se38 iam printing.
PROGRAM ID : YIBRK_TERMINATION_FORMS                               *
TITLE      : Termination Statement Forms                           *
CREATE DATE: 15.02.2007                                            *
AUTHOR     : SREDDY5(SRINIVAS REDDY)                               *
CHANGE HISTORY                                                     *
DATE      |     NAME    |  DESCRIPTION         | REFERENCE         *
REPORT  yibrk_smartforms.
DATA: fm_name1 TYPE rs38l_fnam,
      fm_name2 TYPE rs38l_fnam,
      fm_name3 TYPE rs38l_fnam,
      fm_name4 TYPE rs38l_fnam,
      fm_name5 TYPE rs38l_fnam,
      fm_name6 TYPE rs38l_fnam.
DATA: w_control LIKE ssfctrlop.
SELECTION-SCREEN : BEGIN OF BLOCK s_blk WITH FRAME TITLE text-000.
PARAMETERS       : p_gin  LIKE pa0002-pernr.
SELECTION-SCREEN : END OF BLOCK s_blk.
START-OF-SELECTION.
  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      formname           = 'YIBRK_SMARTFISPP'
    IMPORTING
      fm_name            = fm_name1
    EXCEPTIONS
      no_form            = 1
      no_function_module = 2
      OTHERS             = 3.
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      formname           = 'YIBRK_SMARTFAVC'
    IMPORTING
      fm_name            = fm_name2
    EXCEPTIONS
      no_form            = 1
      no_function_module = 2
      OTHERS             = 3.
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      formname           = 'YIBRK_SMARTFISPS'
    IMPORTING
      fm_name            = fm_name3
    EXCEPTIONS
      no_form            = 1
      no_function_module = 2
      OTHERS             = 3.
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      formname           = 'YIBRK_SMARTFDMP'
    IMPORTING
      fm_name            = fm_name4
    EXCEPTIONS
      no_form            = 1
      no_function_module = 2
      OTHERS             = 3.
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      formname           = 'YIBRK_SMARTFCSI_CTI'
    IMPORTING
      fm_name            = fm_name5
    EXCEPTIONS
      no_form            = 1
      no_function_module = 2
      OTHERS             = 3.
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      formname           = 'YIBRK_TERMINATION_BANKING'
    IMPORTING
      fm_name            = fm_name6
    EXCEPTIONS
      no_form            = 1
      no_function_module = 2
      OTHERS             = 3.
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  w_control-no_open = 'X'.
  w_control-no_close = 'X'.
  CALL FUNCTION 'SSF_OPEN'
EXPORTING
  ARCHIVE_PARAMETERS       =
  USER_SETTINGS            = 'X'
  MAIL_SENDER              =
  MAIL_RECIPIENT           =
  MAIL_APPL_OBJ            =
  OUTPUT_OPTIONS           =
  CONTROL_PARAMETERS       =
IMPORTING
  JOB_OUTPUT_OPTIONS       =
  CALL FUNCTION fm_name1
    EXPORTING
      control_parameters = w_control
      per_no             = p_gin.
  CALL FUNCTION fm_name2
    EXPORTING
      control_parameters = w_control
      per_no             = p_gin.
  CALL FUNCTION fm_name3
    EXPORTING
      control_parameters = w_control
      per_no             = p_gin.
  CALL FUNCTION fm_name4
    EXPORTING
      control_parameters = w_control
      per_no             = p_gin.
  CALL FUNCTION fm_name5
    EXPORTING
      control_parameters = w_control
      per_no             = p_gin.
  CALL FUNCTION fm_name6
    EXPORTING
      control_parameters = w_control
      per_no             = p_gin.
  CALL FUNCTION 'SSF_CLOSE'
IMPORTING
  JOB_OUTPUT_INFO        =

Hi
In the SF, check if there is data, then set a flag. Use this flag in all windows in the Condition tab. So that, a SF with all its windows will fire only when flag is set.
Regards,
Raj

Similar Messages

  • How to avoid the Amount and Date values for VOID Cheques

    Hi All,
    I had created a two window i.e For Amount and Date. If I process the cheque the Amount value and Date should not trigger for VOID CHEQUES.
    Can any one tel me how to avoid the Amount and Date values for VOID Cheques
    Your help will be greatly appreciated.
    Regards
    Yathish

    Hi,
    I dont know which tablel you are referring to, is it PAYR table and the field VOIDR?
    If a cheque is voided, it would have a reason and it is stored in VOIDR field of this PAYR table.
    Check if the field VOIDR is filled, if it is filled, do not print the amount and date.
    Regards
    Subramanian

  • I am thinking of buying a iPad but my main desktop machine uses Windows 7 and MS Office.  How easy or difficult is it to transfer data files between the iPad and Windows?  Are there obvious problems or the need for some form of conversion programs?

    I am thinking of buying a iPad but my main desktop machine uses Windows 7 and MS Office.  How easy or difficult is it to transfer data files between the iPad and Windows?  Are there obvious problems or the need for some form of conversion programs?
    Many thanks for any advice.
    David

    You don't need conversion programs, iTunes can copy most of your content over to the iPad via the file sharing section, and some apps also support Dropbox, email attachments, transfer via your wifi network. There are a number of apps that you can get that support Microsoft office file (microsoft don't make an app versions of their software) e.g. from Apple there are Pages (word support), Numbers (excel) and Keynote (powerpoint), and from third-parties there are apps such as Documents To Go and QuickOffice HD

  • How do i find my newest itunes tv downloads, in my video app.  In the OS7 all my purchases are there so i can find which onw is the new ones?

    How do i find my newest itunes tv downloads, in my video app.  In the OS7 all my purchases are there so i can find which onw is the new ones that i have not watch

    Well blow me down & keelhaul me! I've solved my own problem. The issue appears to be that Apple won't sync Smart Groups from Address Book to the iPhone. I created a test group with a few dud contacts in Address Book; iTunes sync'ed then OK & as soon as I went into Contacts on iPhone, there suddenly was the Groups button appearing with 2 Groups - my Test Group + all Other contacts. Nice one apple - another undocumented feature! Looks like I have to do away with the Smart Groups feature & convert them all to normal Groups in Address book - bugga!

  • How do i find my newest itunes tv downloads, in my video app.  In the OS7 all my purchases are there so i can find which one is the new ones that i have not watch M

    How do i find my newest itunes tv downloads, in my video app.  In the OS7 all my purchases are there so i can find which one is the new ones that i have not watch

    Hi Bill...
    Read here >  Creating an iCloud account: Frequently Asked Questions

  • I have Windows 7, with Office 10, Acrobat Adobe 9 Std. I used to be able to combine pdf files into one pdf until I converted to Office 10. Now when I combine 3 pdf files into one pdf, I am missing the middle pdf. Pages are there but the pages are blank. A

    I have Windows 7, with Office 10, Acrobat Adobe 9 Std. I used to be able to combine pdf files into one pdf until I converted to Office 10. Now when I combine 3 pdf files into one pdf, I am missing the middle pdf. Pages are there but the pages are blank. Any Idea???

    [discussion moved to Creating, Editing & Exporting PDFs forum]

  • HT1329 My large iTunes library is on an external hard drive. Can I set up iTunes on my new Macbook Pro and copy the library to it or are there any pitfalls?

    I have my large iTunes library on an external hard drive. Can I set up ITunes on my new Macbook Pro and transfer/copy this library to the internal hard drive or are there any problems I should be aware of?

    ITs an old Iomega 100gb external HD that has about 90gb of music on it. The Macbook has a 500gb HD. I would like to put the iTunes library on the internal HD so I have room to expand.
    Phil0124 wrote:
    You can copy it to the internal hard drive as long as it fits on it. How big is your library, and how big is your internal HD?
    The only thing you do not want to do is over-stuff the internal hard drive. The OS needs some space to operate correctly, so if your iTunes library uses up more than say 80 to 85% of the internal HD's available space it may not be a good idea to transfer it over.
    With that said, the internal HD will provide slightly faster access to the library than the external would, but other than that, you can point iTunes to the external drive just fine.

  • My new iphone was stolen today. I'm trying to track it via icloud but it shows the average ratio that the phone is disconnected. Are there any other way to track the phone. Thanks for your help.

    my new iphone was stolen today. I'm trying to track it via icloud but it shows the average ratio that the phone is disconnected. Are there any other way to track the phone. Thanks for your help.

    If the phone is turned off, doesn't have an internet connection, or has been restored preventing "Find my iPhone" from being able to work, there is no other way to track it.

  • Is there a way to download movies onto the iPad?  If so, are there any particular sites that I should use?

    Is there a way to download movies onto the iPad?  If so, are there any particular sites that I should use?

    You can only download content from the apple itunes and app stores.

  • I am 13 and I am very enthusiastic about Apple. At the moment I am reading a Steve Jobs auto-biography and I noticed something that Steve Jobs did in his early life was join the Hp explorers club.  Are there any companies who still have clubs?

    I really want to start making electronics as I plan to do a course on the subject
    I would be so grateful if you can answer my question
    I am 13 and I am very enthusiastic about Apple. At the moment I am reading a Steve Jobs auto-biography and I noticed something that Steve Jobs did in his early life which was joining the Hp explorers club.  Are there any companies who still have clubs?I really want to start making electronics as I plan to do a course on the subject.
    I would be so grateful if you can answer my question.

    Good catch! Yes there was a time when many companies and other organizations did that sort of thing. Now not so much.
    Intel still sponsors clubs see http://www.computerclubhouse.org.
    You might also check around, there might be after school programs, sometimes the YMCA or Boys & Girls Clubs have programs.
    good luck

  • Search and Replace values in the text field before values are stored to DB

    Hi,
    In my application there is a question - text area and answer - text field. Problem is, some answers are stored with the single quotes to the DB and I have a problem while retrieving it from the DB. I need to replace the 1 single quotes with 2 single quotes. The values are stored to the DB when the submit button is clicked.
    So I am using the following javascript code:
    italics
    <script type="text/javascript">
    function test()
    var str="&P2_S1.";
    document.write(escape(str));
    </script>
    italics
    I need to call this javascript function, when the submit button is clicked but BEFORE the values are stored to the DB. How can i get this done?
    Please let me know.

    Hi,
    Thanks for the reply.
    Yeah I planned to drop the Javascript idea.
    Now, I am using the PL/SQL code. This is what I am planning to do.
    When the user enters any word like this, Test's, this single quote should be replaced by some special character, #@@#, - what is the PL/SQL code for this?
    Right now my PL/SQL code is:
    begin
    update test set S1=:P2_S1 where name=:APP_USER;
    end;
    so the replacing part should come somewhere before the update statement.... how can I do it?
    from the DB when the values are retrieved, I use the following code:
    select REPLACE(s1,'''','') from test where NAME=:APP_USER; // this works fine.
    Please help me with the replace of the single quote before the update process...

  • How to avoid the form's message situation

    hi all,
    i am using Forms [32 Bit] Version 6.0.8.24.1 (Production).
    i have base table block. So at the time of saving some process should happen, based on selected record.
    so i have written the procedure in key-commit trigger. But my problem is when user edit the data and close the form then the message pops up as usual(do you want..) if i give yes then the procedure is not firing.
    I got a feed back that that message(do you want to save the changes) situation itself i should avoid. How can i avoide that message situation.
    Forcing the user to save in pre-commit trigger is one option but my question is this situation can be avoided?
    Is this can be done?
    Please advise.
    Thanks..

    do i have to place my code in 'on-update' or 'pre-update' trigger?I mentioned ON-UPDATE (block-level)
    and one more question the checkbox is control item. so when i am selecting or deselecting the check box do i have to set the record status?Yes, you need to change the record status to change if check box is non-database item.
    but one more question i want ask. The process what i am doing should happen only when user saves the record. If i write it in the block level trigger if user doesnot save the recod and exists then also my process will fire?No.
    if i write my code in block level means.
    if for any record if any error means i have to stop the full process itself and nothing should happen. In other words if user process 4 record and in 5 record he is getting error means the four records also should not go into table. is this will happen if i move the code to block level trigger?Yes it will not continue and will not send any record in database.
    -Ammad

  • JDialog stores what values are there after closing in JTextfield or JCombo.

    Hii,
    I have a problem with JDialog in which JTextField & JComboBox are there,Problem is After closing JDialog by a button "CLOSE" on it ,or by "X" on top-rightside corner, it stores values which r there in these components ,when i reopen this JDialog without Closing my Application.
    I m using dispose() method for that on CLOSE Button's Action Performed Event but i don't get what i want exactly.......Is there any other method for that CLOSE Button which not preserve those values.... ????
    Give Solution if u have......plz...
    Thanks

    add a windowListener to the dialog
    addWindowListener(new WindowAdapter(){
      public void windowClosed(WindowEvent we){
        textField.setText("");
        comboBox.setSelectedIndex(0);
    });

  • How to avoid the truncation of  field values in select-options

    Hi all,
    I have a requirement where i have used select-options to select multiple filenames.  I have taken the filename of type rlgrap-filename(128 char) But the problem is in select-options if the values of the filename which is selected has length ( i.e the length of the selected field value) exceeds 45 character , then he remaining charactes are truncated. Hence i am not able to get the
    correct field value in the internal table of the select-options.
    i came to know that if NO_DISPLAY addition is used then this truncation wont occur. But in my case user has to select the files and hence this addition cannot be used.
    please let me know if anyone has a solution for this or if there is any other way to select multiple entries in selection screen.
    Regards
    Manipal parkala

    rlgrap-filename is having the length of only 128 characters.If the file path exceeds 128 characters then the rest will get truncated.If you file name exceeds more than 128 characters and the pafth is fixed,then harcode the entire path in the program and later on concatenate the path and the file name into a string which can be used for further processing.
    paramters:p_file like rlgrap-filename.
    here just give the filename as say 1234.XLS.(Assuming that you are not browsing for the file using F4_filename).
    In the program harcode the path say C:\Documents and setting\sapworkdir\user\.
    Now concaternate these two and pass it to string which can be used for further processing.
    If the user intneds to browse the file and the path name exceeds 128 characters then follow the way to delcare the paramter in the selection screen as said above.If it is working for parameters then I think it should be working for select option also.

  • Send email notification when the baseline and actual values are different in project

    Hi
    I am working with MS Project 2013 and Project Server 2013.
    I need to the send email notification to the program manager (or to a user) whenever the project manager changes the task finish date for a task. Comparison should happen with the baseline finish and the difference needs to be updated to the Program Manager
    over mail.
    How to configure/customize email notification for changes in MPP.
    Please suggest.
    Regards,
    Sudhir

    If you are not having developer skills it will be complicated for you.
    You need to create event handler by code, as in the below link:
    http://msdn.microsoft.com/en-us/library/office/gg615466%28v=office.14%29.aspx
    Then compare your values and finally send email by code.
    Twitter : @MShoubaki | http://jo.linkedin.com/in/mshoubaki

Maybe you are looking for

  • 2 edge servers and 2 front end servers?

    Good morning/afternoon/evening Technet, We're about to go to production with Lync 2013 standard with the following. 1. 2 front end servers w/ standard edition 2. 2 edge servers  We want to set it up so that 1 front end and 1 edge server will be at a

  • No CD Drive?  Love it!  But I need to install a CD-based program.

    I purchased Office:mac 2008 in 2008.  CD in the yellow box.  I want to install on my new MacBook Air which, of course, has no CD drive.  How do I do it?

  • Ok, ok, I give up since no one can solve

    my second database connection problem. I am thinking about worst case. How to remove a database from system completely and cleanly?? Thanks for any help...

  • Acrobat update Error 1513

    Situation: MacBookPro - fresh install of OS 10.6.5. with the latest patches up to 3. December 2010 Installed CS5 Design Premium Volume license - update of all Applications Installed CS5 Acrobat 9 - the disk that came with CS5 launching updates from w

  • PLM550 SAP Resource- und Portfoliomanagement – RPM 5.0

    Für Berater und Projektteammitglieder, die vor der Einführung von SAP RPM 5.0 stehen, bieten wir im Q1/2011 wiederum den PLM550 an. In diesem Training werdenFunktionen, Prozesse und Integrationsmöglichkeiten von SAP Resource and Portfolio Management