Screen validation for BAPI_ENTRYSHEET_CREATE

Hi All,
We are using BAPI_ENTRYSHEET_CREATE to create entry sheet  for work orders,
we are passing WBS element to table parameter 'entrysheetaccountassignment 'and entry sheet created successful,
if we passing incorrect WBS element,BAPI is not validating(through transaction it's validating),
Entry sheet created succecdully but , if we check in transaction ML83 the WBS field is blank,
how to check screen validation,
Regards,
Suresh.D
Edited by: suresh dameruppula on Apr 23, 2010 2:37 PM

Hi,
this BAPI does not perform validation. It just converts WBS from external format into internal format. In case of invalid conversion it clears WBS element field. Hence if you want to have a WBS validation then you need to do it by yourself using BAPI BAPI_PROJECT_EXISTENCECHECK.
Cheers

Similar Messages

  • Selection Screen Validation for Character

    Hi All
    My query is regarding the selection screen validation for character.
    I am using a Select-option: S_ORDER FOR VBAK-VBELN OBLIGATORY.
    and S_order should be only having the numeric field.
    Please help how to validate it for character field.

    Hi,
    Do as below :
    at selection-screen.
    if not s_order[] is initial.
       if s_order-low CA 'ABCDEF.............Z'.
         message 'Enter only numerics only' type 'E'.
      endif.
    "similarly for s_order-high also.
    endif.
    Thanks,
    Sriram Ponna.

  • Selection screen validation for batch

    This is my scenario:
    If program is executed in background, plant (in selection screen) is not mandatory.
    If program is executed directly, plant (in selection screen) needs to be filled (mandatory).
    I tried using sy-batch and coding at the AT SELECTION-SCREEN portion for validation but it seems that sy-batch is only populated after START-OF-SELECTION.
    How do i code it so that if user does not execute program in background, it will prompt an error message and prompt user to fill the plant field in the selection screen?

    HI,
    use sy-batch in start-of-selection. not in at selection-screen.
    start-of-selection.
    if sy-batch = ' X' . (If it runs in background)
    Then raise message.
    endif.
    This will work.
    Reward If helpful.

  • Needed  selection screen validation for all entries in the range

    Hi all,
    I'm using the below code for Material validation in selection-screen.
    SELECT SINGLE MATNR FROM MARC INTO MARC-MATNR
      WHERE MATNR IN S_MATNR.
      IF sy-subrc NE 0.
        MESSAGE e000(su) WITH text-035.     "Invalid Material Number
      ENDIF.
    This validation is working only for one record in the range.
    If I give multiple material numbers in the range having a record which doesn't exist in MARC, its not throwing the error.
    Seems like loop should be placed at s_matnr. Is that correct procedure or any pointers on the same would be of great help.
    Regards,
    Vamsee Priya.

    Hi priya
    Use this way,
    REFRESH IT_LIPS. CLEAR IT_LIPS.
      SELECT VBELN
             POSNR
             MATNR
             WERKS
             LFIMG
             ARKTX
             VGBEL
             VGPOS
             BWART
             FROM LIPS INTO TABLE IT_LIPS
             WHERE PSTYV IN
       ('ZZTC', 'ZTAD', 'ZMVN', 'ZCVA', 'ZCVB', 'ZCVC') AND "ASR 18721
                   WERKS IN ('1140', '1143', '1149').
      IF IT_LIPS[] IS INITIAL.
        MESSAGE E000 WITH TEXT-005.
    endif.
    revert back if you need any help..
    Help us to help you, Manas

  • Selection Screen validation for date

    Hi,
    I have a date in Select option s_budat which is a mandatory field
    The Criteria for validation is
    1) The start date should not be older than current date minus 8 weeks. Otherwise error message should appear:
    EN: Start date is older than 8 weeks
    2)The end date should not be more than one week ahead of date-from. Otherwise error message should appear:
    EN: Selection period is more than 1 week
    please help me to solve this
    regards
    Avi

    data : date1 like sy-datum,
           date2 like sy-datum.
    CALL FUNCTION 'HRWPC_BL_DATES_WEEK_INTERVAL'
      EXPORTING
        DATUM                = sy-datum
        WEEK_PST             = 8
        WEEK_FTR             = 0
      START_SUNDAY         =
    IMPORTING
       BEGDA                = tdate
       ENDDA                = tdate1
    EXCEPTIONS
      INVALID_VALUES       = 1
      OTHERS               = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    if s_date-low lt tdate.
    message.
    endif.
    CALL FUNCTION 'HRWPC_BL_DATES_WEEK_INTERVAL'
      EXPORTING
        DATUM                = s_date-low
        WEEK_PST             = 0
        WEEK_FTR             = 1
      START_SUNDAY         =
    IMPORTING
       BEGDA                = tdate
       ENDDA                = tdate1
    EXCEPTIONS
      INVALID_VALUES       = 1
      OTHERS               = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    if s_date-high gt tdate1.
    message.
    endif.
    regards
    shiba dutta

  • Screen validation for funds management account assignments

    Dear Experts,
    I am having the requirement that, functional area has to be displayed based on the budget structure. We are using Fund, Fund Centers, Commitment Item and Functional Area. When user posts the entry all the functional areas are displayed. In this case, user is asking, in the F4 option only functional area relevant to the GL Account has to be displayed.
    Can anyone help me; Is there any other way to achieve this requirement?
    Thanks in Advance.
    Regards,
    Aswin

    Hi,
    'only functional area relevant to the GL Account' what you mean? it's about addresses(where commitment items derives from accounts). And in which transaction do you need it?
    You need to create own search help. In required field(for required transaction) find out which Search help is using(eg in some cases its COBL_EX_FKBER), so you need to enhance it

  • When i try to install iPlanet App Server on NT, I do not get screen to enter license key valid for evaluation. --- " cache File Read error"

    When i try to install iPlanet App Server on NT, I do not get screen to enter license key valid for evaluation.
    Also during installation screens an error window is displayed saying "cache File Read error -- Could not read ProductKey entry from the cache file "

    Hi,
    I also get the following message:
    "Could not read ProductKey entry from the cache file"
    I have no idea how to provide the installation software with the key. I also tried "keycheck.exe"
    Do you have a solution for this problem? Did you finish the installation?
    Christian

  • Validation for a selection screen used as a subscreen

    Hi friends,
    I have a screen say '0001' in that screen i have three subscreens 0002 0003 0004
    In the subscreen 0002, i have declared three selection screens 0102, 0202, 0302
    In the Application toolbar of the screen 0001 (PF Status) i have declared three push buttons A, B, C,
    On click of A i ll invoke 0102 selection screen inside the subscreen 0002.
    Similarly On click of B i ll invoke 0202 selection screen inside the subscreen 0002
    Similarly On click of C i ll invoke 0302 selection screen inside the subscreen 0002.
    I have completed till the above ...
    My problem is ........................
    The selection screens will have their own Parameters and select options .....
    some of them are mandatory & some of them not .......
    Now when i switch from one push button to another say from A to B and then again to C .... for each and every click it is asking to fill in the mandatory paramters and select options ........ and then only allowing to move to the next sel screen .......
    Needed solution:
    ~~~~~~~~~~~~~
    1. How can i avoid this message "Fill in the required fields" ?
    2. How can i validate the user entries if i take away all the "OBLIGATORY"
        additions in the selection screen declaration part
    3. Where can i write "At selection screen" validation? becoz iam using a function
        group for the creation of screens and all and have included the selection
        screen declaration in the top include of the Function group?
    Hope iam clear with my question!!
    Revert back if you need more clarrifications on the question itself
    Cheers
    Kripa Rangachari .....

    Hi,
       In the pf status - for push buttons give the type as E.
    Write the processing for this in at exit command.
    Validation should be done in AT SELECTION-SCREEN ON field.
    Reward if helpful.

  • HT1933 I bought a song for my wife in Mexico and she couldn't download the song i sent because it reads on her screen ... Code only valid for US customers.... How can i retrieve the song if i live in the US? Thanks

    I bought a song for my wife in Mexico and she couldn't download the song because it reads on her screen... Code only valid for US Customers... How can i retrive the song i bought? Thank You Guys

    you have a ps cs4 license for mac and you have some way of finding your serial number.
    if yes, download an install the installation file.  if you already have the installation file, what is its name and file extension?  (eg, if it's one file, it should be a dmg file.)
    if you need the installation file,
    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7 win | 8 mac | 7 mac
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7 win | 8 mac | 7 mac
    Lightroom:  5.6| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • Validation for the select option value range of selection screen

    Hi All.
    if i wish to validate the selection screen parameter for a value range(select options),is it possible?
    what should i write in code.Also,m using FM DD_DOMVALUES_GET to get the values for a specific domain name.
    Please reply.

    Hiii,
         Yes it is possible.... Can you give me the piece of code ... about the select option
    and also the value range against which you want to validate the select option.
    So that i can help you with the coding tips...
    Thanks in advance..

  • OB28 Validation for screen FB60 problem

    Hi,
    I have created validation for OB28 and prerequiste, check and message maintained and nessage class also activated but still system is not showing any error message if not filled the business class and section code in FB60 transaction. can any one guide me on this.
    govind.

    Hi,
    What exactly you want to do in FB60.Please give details.
    Regards,
    Greeshma

  • Problem in AT selection screen validation

    Hi,
    I am having problem in AT SELECTION SCREEN Validation.
    I have 2 radiobutton and 6 parameter. if i click first radio button  all the 6 radiobutton should enable and take the user input, that is working fine for me.
    if i click second radiobutton , out of 6 , 3 parameter should disable and remaining 3 should enable. thats also working fine.
    My problem is program has written the validation for this 3 parameter in the AT SELECTION SCREEN.
    For first radioutton all the validation working  fine, for second validation as soon as i press the radiobutton it will display error message. Based on 2 parameter user is filling value for 3 rd parameter.
    I want the same validation to be done for second radio button after user pressing enter.
    PARAMETER: p_single RADIOBUTTON GROUP rad1 DEFAULT 'X' USER-COMMAND f1,
               p_multi RADIOBUTTON GROUP rad1.
    PARAMETERS: s_pwwrk LIKE plaf-pwwrk.          
    PARAMETERS: p_lgort LIKE plaf-lgort.
    PARAMETERS: p_kostl LIKE cobl-kostl.
    here is my code:
    AT SELECTION SCREEN.
    CLEAR t001w.
      CLEAR t001k.
      CLEAR marv.
      SELECT SINGLE * FROM t001w WHERE werks EQ s_pwwrk.
      IF sy-subrc NE 0.
        MESSAGE e999 WITH 'Plant' s_pwwrk 'does not exist'.
      ELSE.
        SELECT SINGLE * FROM t001k WHERE bwkey EQ t001w-bwkey.
        SELECT SINGLE * FROM marv WHERE bukrs EQ t001k-bukrs.
        IF p_budat0(4) NE marv-lfgja OR p_budat4(2) NE marv-lfmon
    IF marv-xruem IS NOT INITIAL.
            IF p_budat0(4) NE marv-vmgja OR p_budat4(2) NE marv-vmmon.
    MESSAGE e999 WITH p_budat4(2) p_budat0(4)
                                'is closed.
                                            Please try again.'.
            ENDIF.
          ELSE.
            MESSAGE e999 WITH p_budat4(2) p_budat0(4)
                              'is closed.
                                          Please try again.'.
          ENDIF.
        ENDIF.
      ENDIF.

    For your Case ,
    If i understand clearly,You can do the validation when you want on AT SELECTION SCREEN ON WP_FIELD.
    If you say your validation to be done only for Selection of Second Radio Button, then..
    AT SELECTION SCREEN.
    if p_multi  eq 'X'. "<- Make Validation to be done only if user select Second Button
    CLEAR t001w.
    CLEAR t001k.
    CLEAR marv.
    SELECT SINGLE * FROM t001w WHERE werks EQ s_pwwrk.
    IF sy-subrc NE 0.
    MESSAGE e999 WITH 'Plant' s_pwwrk 'does not exist'.
    ELSE.
    SELECT SINGLE * FROM t001k WHERE bwkey EQ t001w-bwkey.
    SELECT SINGLE * FROM marv WHERE bukrs EQ t001k-bukrs.
    IF p_budat+0(4) NE marv-lfgja OR p_budat+4(2) NE marv-lfmon
    IF marv-xruem IS NOT INITIAL.
    IF p_budat+0(4) NE marv-vmgja OR p_budat+4(2) NE marv-vmmon.
    MESSAGE e999 WITH p_budat+4(2) p_budat+0(4)
    'is closed.
    Please try again.'.
    ENDIF.
    ELSE.
    MESSAGE e999 WITH p_budat+4(2) p_budat+0(4)
    'is closed.
    Please try again.'.
    ENDIF.
    ENDIF.
    ENDIF.
    endif.

  • HOW TO IMPLEMENT SCREEN VALIDATION IN LDB?

    Hi,
    I am making use of Logical Database in my report, and I want to do screen validation with the screen which already exists in the system? Is it possible to do so? If yes, then how? The LDB, I am using is PSJ.
    Also, I would like to know, can we define our own selection screen incase of LDB? How is that possible if the answer is yes to it.BUt here I am not talking about dynamic selection screen. What I mean to say is that..., can we restrict the selection screen in LDB, by defining the fields which are required in the selection screen on execution of the report?
    Someone, please guide.
    Points will be rewarded for a satisfactory answer.
    Thanks & Regards,
    Ravi

    Hi Ravi,..
    Chk out the link - http://help.sap.com/saphelp_erp2005/helpdata/en/60/183d78163011d2953c0000e8353423/frameset.htm
    Yes, we can define our own selection screen and that will come right below your LDB selection screen.
    AND also LDB selection screen can be restricted ..for this you have to code in PBO of report for hiding the elements which u don't required.
    Regards
    Mithlesh

  • How can we do the validation for non visible records in table control.

    Hi Experts,
      I have a table control which displays list of material details. I have a button to upload the material details from excel file to table control directly. I have to validate all the customers which are exist in the table. But my item (Material) table control displays only 5 rows i.e only 5 entries are visible in module pool screen. The validation is done for 5 records only in PAI event, but i need to do validation for rest of the records too (Which are not visible on items table), if validation fails then needs to display error message.
      How can we do the validation for non visible records in table control.
    Regards,
    Bujji

    Hi,
    try validating material before displaying it in table control...'
    Rgds/Abhhi

  • Selection-screen validation

    Hi Experts,
          Please can any one give me the details ..
      1)What is the actual use of selection screen  validation?
    2) When we use Selection-screen validation?
    3)If we are not written the selection-screen validation is there any effect?
    I know how to write the validation for a selection screen. But why i am asking above questions is I am very new to ABAP .My Functionl people also new to ABAP. They told me one report.I asked me what are the validation for selection screen . At that time they told there is no validation.
         Thats the reason to ask above questions..
      please tell me the details..
    Thanks In Advance..
    Thanks and Regards
    Siri..

    Abhi,
    Selection Screen Validation are used for correct input processing.
    Selection screen elements are used further in select queries to fetch data. if user enters some wrong input
    we will unnecessarily hit the data base with wrong values and select will fail , hence validation of the input
    will avoid unnecessary data base hit.
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 27, 2008 12:26 PM

Maybe you are looking for

  • Itunes CD won't install Quicktime

    Hi! I just bought a Ipod Video 30gb. when I install Itunes, half way through, there comes the screen that says that Itunes has encountered a problem and needs to be closed, then you can choose send or don't send error report. when I look at the techn

  • Use as a pure audio editor?

    The tagging and sorting options appeal to me. It looks like a great way to sift through a lot of audio and do rough mixes to get it ready for Logic. Will it work with .wav, .aiff, flac? I assume apple lossless as m4a is fine? Other than the video pre

  • User Exit for Transaction QM01 & VA01

    Hi experts, I have a requirement such that the newly created QM Notification number(QMNUM) from QM01 will be exported to a memory ID and imported in transaction VA01 such that the Sales order(VBELN) will have the same value of Notification number(QMN

  • PPC G4 iMac with WG111v2 (signal present, no internet in programs)

    So, this computer used to have Tiger installed with a WG111v2 Netgear utility for wireless and worked fine. Since then, we installed Ubuntu on the machine with e17 and the wireless just worked in Linux- no need to install a driver at all. I guess BSD

  • L2TP vpn - broken since 10.4.11

    Hi, i just want to start the thread concering the vpn problem again. Yesterday we updated OS X Server vom 10.4.10 to 10.4.11 and suddenly only connections via PPTP are available from outside. (leopard clients) This issue was also mentioned here befor