Making Mandatory fields on Screen and vice versa

Hi,
I've developed a screen on which i've a field say X. Initially when the screen is shown the field is not mandatory as user may or may not enter its value.
But when he enters its value, then i've to make field Y and field Z mandatory also.
For this in PBO i've called a module which would make the necessary screen change.
    LOOP AT SCREEN.
      IF X IS NOT INITIAL.
        IF ( screen-name = 'Y' OR
             screen-name = 'Z' ). 
          screen-required = '1'.
        ENDIF.
      ELSE.
        IF ( screen-name = 'Y' OR
             screen-name = 'Z' ). 
          screen-required = '0'.
        ENDIF.
      ENDIF.
        MODIFY SCREEN.
    ENDLOOP.
Though the above code makes the field Y and Z mandatory but when the user clears the field X value still it shows them mandatory which i don't want
How can i handle this?
PLZ HELP!

Hi
What everyone described is using code block..
why not you should define it while designing the screen.
on defining the field Input/Output Field Attributes of Y & Z , define program-> input -> Required.
In detail :
INPUT/OUTPUT Field of Y & Z
Attributes
Dict | Program | Display
*Under Attributes -> Program -> Input (drop down list) -select as Required.*Hope it will work fine.
Rewards Points if useful

Similar Messages

  • Keyboard - when I press the z key the y character appears on the screen and vica versa.

    I upgraded the software on by Q10 yesterday and now have a problem with the z and y characters.  Any ideas how to fix this?
    Solved!
    Go to Solution.

    Isn't it a keyboard layout setting?
    Like a shift between AZERTY and QWERTY for example. Check in the language input section of the preferences and see if you can find a solution there.
    Kepp us posted
    Please don't forget to mark as "solved" if your question is replied and to "like" a useful reply to your post ;-)

  • While inserting numeric data into a character datatype field and vice versa

    Sir,
        I have a very basic qiestion.Why am i not getting any error while inserting to say employees table a character type data to a numeric type field and vice versa?Iam using Oracle Database 10g Enterprise edition.

    Why am i not getting any error while inserting to say employees table a character type data to a numeric type field and vice versa?
    Oracle tries an automatic conversion, when possible. Post an example of a character type data inserted into a numeric column.

  • How do I move an icon from the second page of my home screen to the first page  and vice versa?

    How do I move an icon from the second page of my home screen to the first page and vice versa?

    Hold an icon down until they all wiggle.
    Drag it wherever you want it.

  • Replication of Custom Fields from CRM to ISU and Vice versa

    Hi Experts,
    We are working on adding Z fields on BP level. For this how does the replication of the values takes place from CRM to ISU or vice versa. What are the middleware enhancement we need to do in CRM side or in the ISU side. We would add the fields on web UI crm side by AET but at ISU side how we need to do that and how would the field values replicate in both the system.
    A approach for adding BP custom fields in CRM and its interaction with ISU and vice versa would be appriciated.
    Thanks,
    Mayur

    Excuse, you may enter more in detail?
    I have created a custom field on BP using the AET would now like to replicate this custom field in BP also in ISU.
    I can do all this using the EEWB, but I would avoid it, since, in ISU we already have custom fields on BP, I just can not link them with CRM.

  • My screen goes off and on once its changes power from AC to Battery and vice versa

    Dear All
    I started noticing this from today ownwards that whenever the power is switched off and goes to battery mode and vice versa the screen turns off and on for 1 second. I dont know this is normal or i did mess up with some kind of power options. I am using T410i.
    Please help me out in this.
    Solved!
    Go to Solution.

    Hi sanku500, and welcome to the Lenovo User Community!
    What you're seeing is the video refresh rate switching:
    http://forums.lenovo.com/t5/ThinkPad-Edge-Knowledg​e-Base/Display-screen-flickers-blinks-goes-blank-o​...
    Hope this helps!
    I don't work for Lenovo. I'm a crazy volunteer!

  • Navigate from WebDynpro Application to BPS Layout and vice versa

    Hi,
    Please see the following Problem Statement:
    We have WebDynpro applications and BPS applications in our project. All the applications are published via SAP Portal. Both areas (WebDynpro and BPS) have same selection screen (Selection fields are common). Is it possible to call
    WebDynpro application from BPS layout (on click of button)and also passing the selection parameters to the WebDynpro application and vice-versa.
    - Sujal Shah

    Hi,
    You can you free tool from Oracle called OMWB (Oracle Migration Workbench) for SQL Server to Oracle.
    For more details, visit http://www.oracle.com/technology//tech/migration/workbench/index.html
    From Oracle to SQL Server, there are third party tools available.
    Cheers,
    Harshw
    Message was edited by:
    [email protected]

  • How to link idoc with its corresponding documents and vice versa...

    Hello Experts,
    What are the tables, transactions, etc that can link a certain document(e.g. PO, GR, invoice) to its IDoc and
    vice versa.
    Thank you guys and take care!

    Hi,
    The Message Control parameters from the partner profiles must also match the corresponding
    fields in the output type. These parameters include:
    u2212 Application
    u2212 Partner
    u2212 Partner function
    u2212 Output type
    Tcode  - NACE  (Output Control)
    Tables - SRRELROLES  (Object Relationship Service: Roles)
    Message Control is a mechanism by which documents are output based on certain conditions.
    1) The application id, communication structure and o/p determination procedure are responsible for triggering IDocs corresponding to a particular application document. For this to happen message control settings have to be done.
    2) Message Control u2013 also referred to as output control or conditioning technique u2013 is a cross-application component used as a service program in several areas. The basic concept behind Message control is to generate and manage outputs from an application and control their timings and medium of exchange.
    3) Message control settings can be done via transaction NACE or via transaction NACO.
    4) Starting point in message control in the u201COutput Determination Procedureu201D (Procedure within NACE txn.). Depending upon the configuration setting in SPRO this procedure is determined.
    A procedure defines a set of possible outputs for an application. We can define several procedures for an application, but only one can be configured as
    active (i.e. for a particular transaction document within an application only one procedure will be determined based on configuration settings).
    Eg->
    a) For Delivery (txn. VL01NO) the document type setting in configuration (SPRO -> Logistics Execution -> Shipping -> Deliveries -> Define Delivery types) determines the procedure.
    So whenever we save a document of particular application (of particular application id) and of particular document type, the particular o/p determination procedure is triggered.
    b) For sales, SPRO -> Sales and Distribution -> Basic Functions -> Output Control -> Output Determination -> Output Determination Using the Condition Technique.
    5) In the transaction NACE we can see that corresponding to application id (say u2018V2u2019 (shipping)) various procedures are defined:
    6) Before making the entry of the output type corresponding to a particular procedure, we have to define it with its attributes.
    The output type defines the characteristics and attributes of the output itself. We can access the output types on transaction NACE by selecting an application and clicking the Output type button.
    7) Access sequence defines a sequence in which business rules are checked for proposing an output type. It has following attributes:
    - A set of business rules or conditions.
    - A sequence in which the rules or conditions are checked.
    - A requirement that checks for business rules using ABAP programs.
    - An exclusive or inclusive strategy.
    We can access the access sequences on transaction NACE by selecting an application and clicking the Access Sequences button.
    Business rule 1 is based on SOrg./Distrib.Ch/Division/Customer. Business rule 2 is based on Sales Organization/Customer Number. Each business rule is, effectively, a set of fields defined in a condition table.
    8) Condition table specifies the key fields for a business rule. Hence for Business rule 1 the key is Sales Org., Distribution Channel, Division and Customer.
    9) Condition records are inserted in the condition table. The transaction is evaluated with the key (of the condition table based on business rule) and if the transactional data matches with the condition record the output is proposed.
    Condition records are defined at last.
    10) Several programs and tables are part of Message Control. For EDI, the following tables and programs will frequently be dealt with:
    *NAST - This table has an entry for the processing program used for an output type.
    *TNAPR - This table has an entry for the processing program used for an output type.
    *RSNAST00 - This program is used to process entries in the NAST table.
    *RSNASTED - This processing program exists for each output medium. ALE_PROCESSING is the routine in the RSNASTED program to process ALE outputs.
    11) Final overview of the components used in Message control to propose outputs.
    12) After doing all the settings for message control, the partner profile setting for this ALE scenario needs to be accomplished. We need to add the following entry to the outbound parameters of the partner profile:
    13) One important question that arises at this juncture is, how is the partner profile determined from the output type is case of ALE?
    This is information is stored in table EDP12 (Partner Profile: Outbound with Message Control). Based on the Partner type of receiver (RCVPRT), output type (KSCHL) and Application for message conditions - without value table (KAPPL), the Partner number of receiver (RCVPRN), Outbound process code(EVCODA), Message type (MESTYP) and other related values are determined.
    Regards
    Pugazhenthi.P

  • HT201406 The Home button on my iPod Touch is very unresopnsive.  It takes several tries to activate it.  While doing so, it responds to one click vs the intended two clicks and vice versa.  It is a very frustrating process.  Any suggestions?  I tried the

    The Home button on my iPod Touch is very unresponsive.  It takes several tries to activate it.  While doing so, it responds to one click versus the intended two clicks and vice versa.  It is a very frustrating process.  Any suggestions?  I already tried the "shut off" process that was suggested on the Apple site, but that did not help.

    Try:
    fix for Home button
    iPhone Home Button Not Working or Unresponsive? Try This Fix
    - If you have iOS 5 and later you can turn on Assistive Touch it add the Home and other buttons to the iPods screen. Settings>General>Accessibility>Assistive Touch
    - If not under warranty Apple will exchange your iPod for a refurbished one for:
    Apple - Support - iPod - Repair pricing
    You can do it an an Apple store by:
    Apple Retail Store - Genius Bar
    or sent it in to Apple. See:
    Apple - Support - iPod - Service FAQ
    - There are third-party places like the following that will repair the Home button. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

  • Convert char to ascii code and vice versa

    HI
    Is there any function module to convert char to ascii code and vice versa.
    Thanks in advance

    Hi,
    be careful if you have unicode running in your system. URL_ASCII_CODE_GET is platform-dependent so it will return the internal HERX representation of the character in your system - which is hopefully and in most cases ASCII.
    Under unicode, we use double-byte characters here. I tried this function and the result CHAR_CODE is '00' regardless what character I specify for TRANS_CHAR. But the coding is so simple I corrected resultig in this sample code:
    [P]
    convert p_form to ASCII (internal) representation
      DATA:
        l_ofs TYPE syfdpos,
        l_len TYPE sy-linsz,
        l_ascii TYPE i.
      FIELD-SYMBOLS:
        <x> TYPE x.
      l_len = STRLEN( p_ascii ).
      DO l_len TIMES.
        l_ofs = sy-index - 1.
        ASSIGN p_ascii+l_ofs(1) TO <x> CASTING.
        l_ascii = <x>.
        WRITE: l_ascii.
      ENDDO.
    [/P]
    Here, for each character of string p_ascii, the internal (ASCII) representation is determined and written to the output list.
    Regards,
    Clemens

  • Dynamic data flow from sales order to delivery and vice-versa

    Hi Experts,
    One of our teams working for a client (transportation industry) on ECC 6.0 is facing an issue in relation to copying of partner data. (Ship-to-party address field changes to be precise)
    Currently, whenever the partner address data changed in a Sale order, though delivery is already created prior to this change, the change done is dynamically getting reflected in delivery too. Further, if the partner data in the delivery is changed, this also is getting updated on the preceding document i.e. sales order.
    We have checked the copy controls under VTLA and didn’t find any specific modifications made in this regard. Our question is:
    Is there any configuration available in standard SAP through which the data updates (like header data viz. partner field data etc.) get dynamically updated forward and backwards in a sales flow(i.e. from sales order to delivery and vice-versa)
    Your help on this will be highly appreciated.
    Regards,
    Jagan

    if the partner data in the delivery is changed, this also is getting updated on the preceding document i.e. sales order.
    The standard functionality is if you change the address of a partner function, the same will get reflected in an existing sale order.  This being the case, can you reconfirm your statement that in delivery, if you change the partner function, the same will get updated in sale order also?
    G. Lakshmipathi

  • Data transfer between SAP & Java and Vice versa using IDOC Process

    Dear Experts,
            We are working on one of the good requirement related to data transfer between SAP and Java software. Client requirement is, they want to transfer the data in both the ways (from SAP --> Java and Vice versa also).
    In detail is, after sales order creation using one custom program loading plan details will be calculated. Once loading dates are confirmed then, user will release the sales document to transfer the data from SAP to Java using "Outbound IDOC processing". Similarly in that JAVA software some shipment details will be performed, once completed from JAVA software again details needs to be pumped back to SAP as "Inbound IDOC Processing".
    For this fields are already identified from external software SAP and we are looking for the same to perform the steps in SAP.
    At this stage, I need your expert opinion  / feedback how to go  about at this stage.
    Meaning,  
                     1. What are the customizing steps needs to be done in SAP..?
                     2. How to trigger the :Outbound IDOC process" once the documents are "Released" from custom transaction
                     3. How to create the link between SAP and JAVA to transfer the data between these 2 software
                     4. How to trigger the "Inbound IDOC Process" from JAVA software to SAP and how to store the data in SAP
    Experts, please give your feedback in terms of reply or by sending the step by step process to fulfill this client requirement.
    Thanks for your cooperation.
    Regards,
    Ramesh

    Maybe too many open questions in the same document.
    Maybe you should repost a more specific question in a technical forum.
    This looks like a small project where you already know what you want, maybe you should contract a technical specialist so he proceeds to the implementation!

  • Connecting multiple CRM systems to one backend R/3 and vice versa

    Hello experts
    Can you tell me whether it is advisable to connect 2 CRM systems to a single backend R/3 and vice versa? Is it recommended by SAP? I require some notes or docs on this. I got some notes on this forum but they are all Internal ones which I am unable to see.
    Please help!
    Warm Regards
    Debolina

    Hi,
    Though SAP does not recommend connecting multiple systems to one ECC backend. But still it has designed a procedure to achieve this.
    Here is the excerpts of the steps required.
    1. Execute report MCRM_SETTINGS for each CRM system connected to the ERP
    system.
    2. Check the entries of the table CRMRFCPAR of the connected ERP system:
    The field REM_LOGSYS should be filled for every entry marked with
    u2018Created by the MCRM reportu2019.
    3. Activate the corresponding consumers in the table CRMCONSUM
    (transaction SM30).
    4. Internal and external number ranges for Business Partners have to be aligned
    manually.
    Hope it helps you!!!!
    Good Luck.
    Pardeep

  • How to change view in iPhone from vertical to horizon and vice versa?

    How to change view in iPhone from vertical to horizon and vice versa?

    Not all applications will go from Portrait to Landscape. Changing just requires you to turn the device. However, if you have the orientation lock activated, then it will not change to landscape. To check, look in the status bar and see if you can see a small lock shaped icon near the battery icon. If you do, then orientation lock is activated. To turn it off, swipe upwards from the bottom of the iPhone screen to bring up Control Center. The orientation lock is the last icon on the top row to the right. Tap on it to turn it off. White is on, black is off.

  • Report of projects across cost centers and vice versa

    Hi friends,
    Do we have any standard report of Projects across Cost Centers and vice versa?
    In our case, it is statistical cost center postings and real project postings. How can we get a standard report of Projects across Cost centers ?
    thanks in advance,
    San

    Refer the thread
    Reports on Statistical WBS
    In the report CJI3- Actual Line Item Report, pull in the field Partner Object in this case it would be Cost Centre (where actuals are posted)
    Regards
    Sreenivas

Maybe you are looking for

  • My ipod touch no longer downloads to the cloud photo stream

    My ipod touch no longer sends photos to the cloud photo stream

  • Time in maintenance order

    Dear sap Gurus, I have given 0.5 hours in tasklist and execution factor as 1.But where as in the maintenance order i was getting execution factor as 78 and time duration as 39.Please tell me the reason with regards, kumar

  • Fn+F5 not displaying options - Satellite A60

    Two days ago when I used Fn+F5 I could scroll through the options and choose the different display options. Yesterday when I did the same thing the options were not available. Both times I was connecting to a projector. Rebooting does not help. Is th

  • Can't open older FCE files in FCE 4

    I have FCE 4. I bought the book "50 Fast FCE Techniques" and it comes with a cd containing FCE project files. The files must are from an older version (probably 3)and when I try to open them I get a message *"The file format of this project is from a

  • My MacBook Pro will clear my desktop even when I'm writing or when viewing a video.

    To anyone out there, I would like for someone to tell me how to keep all my apps and icons on the screen without them getting cleared out by the program or system? Thanks for any help, procedure or steps to avoid this dilemma.