Validation in iw31

Dear expert,
in iw31/iw32 I want to validate plant section field under location tab with recipient field in component tab.that means when user create order with material he will enter recipient as a plant section . & if this two field are not equal reservation should not generate or give error message .
I had checked for user exit and BADI but no suitable found.
please suggest.
Regards,
Prasad

hi
i think you can use IWO10009,which is performed during order saving .maintain the condition as recepient should be same as plant section .
or check CNEX0026 in which you can use the same logic which validates during material create or change .
kindly consult with your technical team
regards
thyagarajan

Similar Messages

  • Error "no valid screen name" for FM DYNP_VALUES_READ

    Hi PM Experts and ABAPers,
    I have a requirement to fetch Operation tab details dynamically while creating a order through IW31 transaction.
    I have tried using Function module  DYNP_VALUES_READ to fetch the screen field values dynamically to read the Work centre field value from operations tab.
    Please look at the code i have used.
    DATA: gv_program_name TYPE D020S-PROG VALUE 'SAPLCOIH',
                 gv_screen_no    TYPE D020S-DNUM VALUE '3010',
                 gs_dynpread     TYPE DYNPREAD,
                 gt_dynpread     TYPE TABLE OF DYNPREAD.
    clear gs_dynpread.
    gs_dynpread-fieldname = 'AFVGD-ARBPL'.
    APPEND gs_dynpread TO gt_dynpread.
       CALL FUNCTION 'DYNP_VALUES_READ'
         EXPORTING
           DYNAME                               = gv_program_name
           DYNUMB                               = gv_screen_no
         TABLES
           DYNPFIELDS                           = gt_dynpread
    - The function module has returned a dump with error 'No valid screen name'.
    Can anyone help me in reading the work centre ( ARBPL)  value directly from screen.
    Thanks in advance,
    Sreenivas

    Hi Sreenivas,
    Kindly check whether field-symbol is assigned before using for preventing the run-time error.
    ASSIGN('(MP000800)TBLGART[]')TO<tblgart>.
    "Check Whether the field-symbol value is assigned or not
    IF <tblgart> IS ASSIGNED.
    CREATE DATA obj_tbl LIKE LINE OF <tblgart>.
    ASSIGN obj_tbl->* TO <wa_tblgart>.
    ENDIF.
    In CREATE DATA statement we are assigning the structure, if you know the structure name, it is better use TYPE statement instead of LIKE statement as shown below.
    CREATE DATA obj_tbl TYPE STRUCTURE_NAME.
    Regards
    Rajkumar Narasimman

  • Check on Settlement Rule in IW31

    Hi,
    I have to keep check on Settlement Rule in IW31. i have to compare the first four characters of Settlement rule with that of Planning Plant. If both are not equal an error message should be raised.
    For example Settlement Rule--->1600009  and if plant = 1500 an error message should be raised.
    Please suggest any suitable BADI or User Exit for this. I have tried many options like CL_EXITHANDLER  for BADIs. But the tables in them are not giving both Plant and Cost Center(Settlement Rule) values.
    Please help.
    Thanks
    K Srinivas

    Have a look at  exit IWO10009
    * get settlement rules from ABAP memory
      call function 'K_SETTLEMENT_RULE_GET'
        exporting
          objnr     = p_caufvd_imp-objnr
          x_all     = ' '
        tables
          e_cobra   = lt_cobra
          e_cobrb   = lt_cobrb
        exceptions
          not_found = 1
          others    = 2.
      if not sy-subrc = 0.
    * if not found, then go to database for settlement rules
        call function 'K_SRULE_READ_ARCHIVE'
          exporting
            i_archive_handle1 = 0
            i_objnr          = p_caufvd_imp-objnr
            i_append         = ' '
          tables
            t_cobra          = lt_cobra
            t_cobrb          = lt_cobrb
          exceptions
            not_enough_info  = 1
            others           = 2.
      endif.
    Make the validations you need.
    Hope it helps, saludos!

  • IW31 - Modify Basic Finish Date

    Hi Gurus,
    I'm looking for a badi or user exit that allows me to modify the Basic Finish Date in the IW31/IW32 transactions just before saving.
    I've tried the following ways without any succes:
    - IWO10009 - Function Module --> EXIT_SAPLCOIH_009
    This user exit is treggered before saving (as I would like to) but I'm not able to modify any field. It is used to active the automatic order release when saving the order.
    - IWO10012 - Function Module --> EXIT_SAPLCOIH_012
    It allows me to modify the CAUFVD-GLUZP, CAUFVD-GLTRP fields, but this user exits is triggered when the priority field is modified.
    - BAdi WORKORDER_UPDATE --> I've tried to implement this BAdi but all parameters in the methods AT_SAVE, BEFORE_UPDATE are type = IMPORTING so SAP does not allow to modify them. I've tried it using field symbols but I thing that I've done something wrong.
    Is there another way to do it?
    Thanks and regards,
    Sergi.
    P.D.: I've looked for it in the forum threads but I could not find any valid answer.

    You can use function module CO_IH_SET_HEADER in user-exit IWO10009 (at save).
    Search for more details using "CO_IH_SET_HEADER"
    Be very careful when using this technique as it caould cause data inconsistencies.
    PeteA

  • Problem in Settlement Receiver during Settlement Rule in T.code IW31/32

    Hi,
    We have created an Equipment Number 11001212 with Business Area 1451 / Cost center 145130100. After that when are create Order in respect to that Equipment Number through IW31.
    During Settlement Rule, when we select Account assignment category CTR - Cost Center...and press F4 on Settlement Receiver column, it shows the value in respect to all Cost Centers. 
    We want that in settlement receiver column, values should show in respect to related cost center. (defined as per Equipment Master).
    Please guide...

    Hi,
    Pass the Order number in AFIH to get Equipment Number (EQUNR) value.
    Pass the Equipment No in V_EQUI table with Valid to date (DATBI) as 31.12.999 & get the value of ILOAN value.
    Pass this value in ITOB table & get Cost Center KOSTL value.
    In IWO10027 user exit, in F4 possible entry option, ABAP people can restrict the required cost center.
    IWO10009 PM Order: Customer Check for 'Save' Event
    Even though the user enters manually some other cost center without going for F4 option, by check that value, you can give the error message, while saving the order.
    Pass the Order number in AUFK table to get Object Number (OBJNR).
    Pass OBJNR value in COBRB table to get KOSTL value.
    Compare both the value & you can give the error message.
    Give these tables, fields & user exits to ABAP people. They can form the correct logic.
    Incorporate both the logic.
    Regards,
    Maheswaran.

  • Settlement order in iw31 / iw32

    Hi all,
    I am working on work order validation during release.
    Using iw31/iw32, without selecting release button or additional data ;i am not able to get details of Settlement rule for a work order.
                My requirement is to check this settlement rule before saving the work order.Since settlement rule is generated and saved in table COBRB only if i select RELEASE , i am not able to check the work order if it is not released. Kindly provide me a solution for the same.
    Anil..

    Hi,
    Search is there any BADI/USER EXIT which triggering before clicking save button.
    Hope this helps u.
    thanks.

  • View data in client B from client A in the same SID without a valid logon?

    Hi Folks
    We are planning on upgrading our 4.6C system to ERP 6.0, and are initialy considering having two clients in the same sandbox SID.  One would be for the developers to perform code remediation checks (client A), and one would contain a copy of production data for performing testing of functionality over live data (client B).
    Would it be possible to view data in client B from client A in the same system without a valid logon to client B or RFC connection to client B from client A?   For example via the use on an ABAP program to SQL the database?
    I know one can use transactions like SM30/SM31 to view, compare, and adjust data between clients, but this requires an RFC connection and valid logon to the target client.
    Regards
    Kevin.

    Hi Kevin.
    >
    Kevin McLatchie wrote:
    > Would it be possible to view data in client B from client A in the same system without a valid logon to client B or RFC connection to client B from client A?   For example via the use on an ABAP program to
    Short answer: yes.
    If someone has the right to write and execute ABAP reports on the system he is able to access the data of all clients. So I don't think that this setup is advisable. Don't mix development and production data in one system.
    Best regards,
    Jan

  • DEVOLUÇÃO DE EXPORTAÇÃO - CFOP 3201 - GRC VALIDA DADOS DI.

    Boa tarde a todos!
    Estamos em um projeto de NFE XML 2.00 e nos deparamos com o seguinte erro:
    Ao emitirmos um NF-e de devolução da mercadoria que se encontrava no Porto (devolução de exportação - CFOP 3201), a validação do monitor GRC informa que é necessário constar os dados de importação, apesar deste processo não se tratar de importação. Os seguintes logs de validação são gerados:
    Erro de validação: campo Código do fabricante estrangeiro no sistema. Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_ADI-CFABRICANTE, ID campo I028)
    Erro de validação: campo Nº da adição. Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_ADI-NADICAO, ID campo I026)
    Erro de validação: campo Nº sequencial do artigo na adição. Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_ADI-NSEQADIC, ID campo I027)
    Erro de validação: campo . Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_IMP-CEXPORTADOR, ID campo I024)
    Erro de validação: campo . Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_IMP-DDESEMB, ID campo I023)
    Erro de validação: campo . Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_IMP-DDI, ID campo I020)
    Erro de validação: campo . Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_IMP-NDI, ID campo I019)
    Erro de validação: campo . Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_IMP-UFDESEMB, ID campo I022)
    Erro de validação: campo . Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_IMP-XLOCDESEMB, ID campo I021)
    Estamos no SAPK-10015INSLLNFE e as seguintes notas relacionadas a validação estão aplicadas:
    1493980     Validation for field xJust in cancel and skipping messages
    1499921     Problem with validation after implementing SP15
    1500046     Upgrade validation rule for field ID for version 2.00
    1500742     Adjust validation for field NADICAO and NSEQADIC layout 2.00
    1502217     Extend validation rules for , layout 2
    1504379     Adjust validation for field X_CLISTSERV
    1511291     Update allowed values for field E1_CPAIS for validation
    1511577     Update validation rules for field VUNCOM_V20
    1520861     Update validation rules for OIL_CPRODANP and OIL_UFCONS
    Não encontrei nenhuma nota SAP recente para o componente SLL-NFE que seja relacionada a este problema.
    Desde já agradeço pela ajuda.
    Sds / Renato Penido.

    Boa tarde, Fernando,
    Obrigado pela pronta resposta.
    Debugamos a BADI e descobrimos que os dados de importação estão sendo gravado "em branco", gerando o erro de validação no GRC, tal qual dito por você.
    Aprimoramos a lógica da BADI para que a tag de importação não seja preenchida indevidamente para as notas de devolução do porto e as notas foram aprovadas.
    Muito obrigado,
    Renato Penido.

  • How do i open a web page with VeriSign Class 3 Extended Validation SSL SGC SS CA certfificate i can't open web pages with this, how do i open a web page with VeriSign Class 3 Extended Validation SSL SGC CA certfificate i can't open web pages with this

    how do i open a web page with VeriSign Class 3 Extended Validation SSL SGC SS CA ?

    Hi
    I am not suprised no one answered your questions, there are simply to many of them. Can I suggest you read the faq on 'how to get help quickly at - http://forums.adobe.com/thread/470404.
    Especially the section Don't which says -
    DON'T
    Don't post a series of questions in  a single post. Splitting them into separate threads increases your  chances of a quick answer.
    PZ
    www.pziecina.com

  • When i login it says my apple id is valid but its not an icloud id

    when I try to login i get a message telling me my apple id is valid but its not an icloud id .I dont have any apple mobile priducts so i have no idea what to do.Any advice would be greatly appreciated.

    You are getting this message because you are trying to create an iCloud account on a PC by signing with your Apple ID.  You can only sign into an existing account on a PC.  You first have to create iCloud account on an iOS device (iPhone, iPad or iPod Touch) running iOS 5 or higher, or on a Mac running OS X Lion (10.7.5) or higher.  After creating your account on one of these devices you will then be able to sign into the account using this ID on your PC.

  • HT204053 Dear Support Team, every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud???

    Dear Support Team,
    Every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud?
    Thanks

    It is not possible to create a new iCloud account using a Windows machine. You must create the account using a Mac (10.7.5 or more) or an IOS device (iPhone etc). Once that is done you can sign into and use the account on your Windows machine.

  • TS1368 When I try to make a purchase at the App Store or iBook Store or iTunes an error message tells me my account is not valid at the UK store. I live in Canada so how did I get to be connected to the UK and how can I get back to Canada?

    When I try to make a purchase at the App Store or iBook store or at iTunes an error message tells me my account is not valid for the UK store. I've no idea how I got connected there and I'd like help getting back to Canada where I live. Any suggestions?

    Change App Store
    1. Tap "Settings"
    2. Tap "iTunes & App Stores"
    3.Tap "View Apple ID"
    4. Enter your user name and password.
    5. Tap "Country/Region."
    6. Tap "Change Country/Region"
    7. Select the region where you are located.
    8. Tap "Done".

  • Creating Master to show only rows for which valid entries exist in Detai

    I have created a Master-Detail Form in my Apex application based off of views to tables in a private remote Database.
    In the Master-Detail Creation Wizard, at the "Link Master and Detail" page, I specified that the defined Primary Key in the Master Column should be equal to the corresponding Foreign Key in the Detail Column.
    My goal is to have my Master Form only display rows for which a valid corresponding entry exists in the Detail Form. Yet, the above setup returns all of the rows from the Master Table, even where the corresponding Detail entry is blank.
    Can you provide some light on what I'm doing wrong, and how I can accomplish what I want to do?
    Thank you!

    I have created a Master-Detail Form in my Apex application based off of views to tables in a private remote Database.
    In the Master-Detail Creation Wizard, at the "Link Master and Detail" page, I specified that the defined Primary Key in the Master Column should be equal to the corresponding Foreign Key in the Detail Column.
    My goal is to have my Master Form only display rows for which a valid corresponding entry exists in the Detail Form. Yet, the above setup returns all of the rows from the Master Table, even where the corresponding Detail entry is blank.
    Can you provide some light on what I'm doing wrong, and how I can accomplish what I want to do?
    Thank you!

  • Validating records into a maintenance view

    Hi folks!
    I have a simple Z table (say ZTABLE) and a Z view based on it with some related description (say ZVIEW).  The ZTABLE has a DEC field (called COEF) with 2 decimals and it should have only numbers between 0 and 1.
    I set the valid interval from 0 to 1 but, as help says, it's only checked for CHAR, NUMC, DEC, INT1, INT2 and INT4 data types.  Not for DEC.
    Then I use an event on ZVIEW.  On SE11 I went to "Table maintenance generator" - Environment - Modification - Events.  So there I put the 05 event (Creating a new entry) and I programed the check.  It works fine for new entries, but if you have a record on table and you want to change the COEF field you can put there any number, even outside the 0-1 range.
    I tried with the 01 event (Before saving the data in the database) but it seams to be called only for last record.
    Could anybody tell me what can I do?
    Thanks!

    Hi,
    Since it is a Z TABLE..
    You can directly modify the flow logic in SE51.
    Go to SE51
    Give the program name - SAPL + Function group name
    Screen number
    Press change..
    In the flow logic..
    Add a module after the FIELD ztable-number, in the PAI event..
    Ex..
    FIELD ZTABLE-NUMBER MODULE NUMBER_CHECK.
    And in the module validate the number..
    MODULE NUMBER_CHECK INPUT.
      IF ZTABLE-NUMBER <> '0' OR
          ZTABLE-NUMBER <> '1'.
         MESSAGE E208(00) WITH 'Not a valid number'.
      ENDIF.
    ENDMODULE.
    Thanks,
    Naren

  • Mandatory item validation at a page level?

    Hi,
    We have a page where the list of mandatory items changes according to how some 'key' items are set by the user e.g. if they select option 1 on item 1 we need a different set of mandatory fields than if they set option 2 - setting option 1 in item 4, may imply that some further items are mandatory, In addition, some items become mandatory due to circumstances known only on the database. We have in excess of 40 items on this page. Once all mandatory items are complete, the status of the page is saved as 'complete' - the user can always save the page as 'incomplete'.
    We already have a database package that can check a table row to see if it is 'complete', it knows all the circumstances for when an items becomes mandatory and can produce a list of fields and the reasons why they have failed validation.
    Is it possible to call this db package during page validation and use it to perform 'item' validations i.e. identify the invalid items and place the appropriate message inline with them?

    Hi,
    You can create a pl/sql page validation where you call you procedure.
    begin
    package_k.proc_p(item1,item2,...,itemN);
    end;
    You should define the type of the validation, but it is very straight forward,
    Regards,
    Max.

Maybe you are looking for

  • Web Filtering on a Cisco 891 Router

    I am looking for a new method of filtering our internet. We currently have 1200+ sites utilizing cisco 891 and 891w routers for their external connection to the internet. Our current method of filtering them is utilizing whitelisting for http(80) tra

  • Need inputs : PO Smartform in Bulgaria language

    Hi Experts, I need a couple of suggestions and guide lines for PO print out Smart form. We have requirement for PO, print  out should print in Bulgaria language if the PO Vendors is from Bulgaria country. And if the vendor is other than Bulgaria coun

  • Accounts on iphone 5 is not active icloud

    Help me!    Iphone icloud accounts is ****** IME But not active iphone help me. IME ***** <Personal Information Edited By Host>

  • View Objects , whereclauseparam and PERFORMANCE in JSP

    We experience that using the method setWhereClauseParam gives VERY BAD performance in our JSP applications. According to JDev team and others, "best practice" is to use setWhereClauseParam(s), so we wonder why the performance degrade significantly co

  • Trying to append date information to a PHP subject - formmailer

    I'm trying to append date information to a subject. Here's my code so far (doesn't work)     $subject[0]='"Note from my web site"." ".$time()'; I would like for the output to be formatted so that the 'Subject' of the resulting email is something like