How to make plant in shipping cond tab for line item in sales doc mandatory

Hi
How to make plant as mandatory for a sales document say quotation mandatory ? I went to SPRO-> Basic Fucntion - > log of incomplete terms ->  Define incomplete Groups -> B.selected sales -Item -> Created new procedure Z001 with fielda VBAP - WERKS ,selected screen name PDE2 and checked warning check box.
When i goto Assign incompleteness procedures I donot have option to assign it sales document item level procedure i will only get sales doc header procedure to assign it to document type quotation.
How to make plant as mandatory for each line item in quotation?
Thanks,
Vaishnavi

Include: MV45AFZB
Form  USEREXIT_CHECK_VBAP
In our business scenario, we have used the same ,But  Plant is mandatory only for 1st line item-
source code:
IF vbak-vkorg = '1000' OR vbak-vkorg = '2000'.
    IF sy-tcode = 'VA31' OR
       sy-tcode = 'VA11' OR
       sy-tcode = 'VA21' OR
       sy-tcode = 'VA41' OR
       sy-tcode = 'VA01' .
      IF vbap-werks IS INITIAL AND
         vbap-posnr EQ '000010'.
        MESSAGE e398(00) WITH 'Please enter the plant for first line'.
      ENDIF.
    ENDIF.
  ENDIF.
Help:
Through this form exit we are making the "plant' field (for the ist  &*
& line item ) mandatory for the sales document . This interns helps us &
& to create the sales document numner according to the plant (Region)  &
*& of the Plant
Hope it clears. take assistance of your ABAPer.

Similar Messages

  • How to highlight the whole row of a particular line item of sale

    How to highlight the whole row of a particular line item of sales order depending on condition?
    Please help its urgent..
    Looking forward your reply.
    Moderator message: please do more research before asking, show what you have done yourself when asking, do not flag posts as "urgent".
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    Edited by: Thomas Zloch on Aug 9, 2011 9:30 AM

    Any ideas on what would cause this NOT to work? I added this row right after the table is created and populated and it is still not highlighted when I enter the form. The snippet of code that does this is:
    MyTableModel modelS = (MyTableModel)dataModel.get("S");
    jTable1 = new JTable(modelS);
    jTable1.setRowSelectionInterval(0,0);MyTableModel is this:
    class MyTableModel extends DefaultTableModel {
      public MyTableModel(Object[] columnNames, int numRows) {
        super(columnNames, numRows);
      public boolean isCellEditable(int row, int column) {
        if (TableKey == 'S') {
          if (column == 6) {
            return false;
        if (TableKey == 'O') {
          if (column == 0 || column == 4 || column == 5) {
            return false;
        if (TableKey == 'P') {
          return false;
      return true;
    }Can anyone help? Thanks.
    Allyson

  • Time Capsule only works for one device at a time, how to make it capable to be used for multiple devices at times

    Time Capsule only works for one device at a time, how to make it capable to be used for multiple devices at times.
    Please help to set it up, thanks in advance

    You need to give more info..
    Firstly only works for what.. networking.. backup.. wireless. You need more nouns.. more adjectives... describe what you want and what fails.. then we can figure out why.
    Most likely you have bridged it when it should be in router mode..
    Most likely you are using Lion or ML which has the airport utility bridge the TC by default.
    Change it to working as a router. That might help.
    If you press reset button it will default back to router btw.
    If you are on Lion.. use a real utility. http://support.apple.com/kb/DL1547

  • How to make an app a file receiver for images on iOS?

    Hi,
    How to make an app a file receiver for images on iOS?
    I did it for the Android app.xml like this:
    <intent-filter>
            <action android:name="android.intent.action.SEND"/>
            <category android:name="android.intent.category.DEFAULT"/>
            <data android:mimeType="text/plain"/>
        <data android:mimeType="image/jpg"/>
        <data android:mimeType="image/jpeg"/>
        <data android:mimeType="image/png"/>
        <data android:mimeType="image/gif"/>
    </intent-filter>
    How to do it for iOS?
    (I'm using Adobe Air 4.0)
    Thank you!

    What app have you used to create your ibook?  Normally any app will have a menu item like File > Export that will give you the option of PDF, or you can use Print and there will be an option in the Print dialogue to Print to PDF.

  • How to make cell editable alv in WebDynpro for ABAP?

    I make Column editable ALV.(See under source code)
    But I can't make Cell editable ALV.
    How to make Cell editable ALV in WebDynpro for ABAP?
    and..how to get changed data?
    DATA: l_value TYPE REF TO cl_salv_wd_config_table.
      l_value = l_ref_interfacecontroller->get_model( ).
    * { EDITABLE
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings,
            lr_input_field     TYPE REF TO cl_salv_wd_uie_input_field,
            lr_column          TYPE REF TO cl_salv_wd_column.
      lr_column_settings ?= l_value.
      lr_column = lr_column_settings->get_column( 'TOTAL_COUNT' ).
      CREATE OBJECT lr_input_field
        EXPORTING
          value_fieldname = 'TOTAL_COUNT'.
      lr_column->set_cell_editor( lr_input_field ).
      DATA: lr_table_settings TYPE REF TO if_salv_wd_table_settings.
      lr_table_settings ?= l_value.
      lr_table_settings->set_read_only( abap_false ).

    the code seems to be correct....but where are you writing it?
    put the code in the wddoinit method and it should work.
    have a look at this article..
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3133474a-0801-0010-d692-81827814a5a1

  • How to make Adobe as your default viewer for all your PDF file instead of the Preview given? Thanks

    How to make Adobe as your default viewer for all your PDF file instead of the Preview given? Thanks

    you need to "Get Info" on the file first. Select it, right click and select 'Get Info' in the menu.
    In the window that pops up, near the bottom, the "Open With" drop down menu needs changed. If the drop down menu does not present the one you want, select "Other" and find it.

  • How to make dyn/admin not to prompt for username and password?

    Hello all
    How to make dyn/admin not to prompt for username and password? I am writing a selenium job to automate cache invalidation to load test a production issue we are facing. Selenium is opening a fresh firefox session and prompting for username and password every time. I am also trying to modify my script such that it will use the same session again and not prompt for username and password. But I thought of asking this question in the group.
    Your inputs will help a lot.
    Thanks,
    Sundar

    Hi,
    You can set enabled property of /atg/dynamo/servlet/adminpipeline/AuthenticationServlet/ to false. It will not prompt for authentication.
    Gopi

  • How to make fields required in an updateble multi line form?

    How to make fields required in an updateble multi line form?

    You need to create a validation item that is triggered when the user clicks the submit button.
    Set the validation type to "Function Returning Error Text".
    Then add your validation into the "Validation Expression 1" field. Something like:
    BEGIN
    FOR I IN 1.. HTMLDB_APPLICATION.G_F02.COUNT LOOP
    IF HTMLDB_APPLICATION.G_F02(I) IS NULL THEN
    RETURN 'Please enter in a value for xxxxx on line ' || TO_CHAR(I,'0');
    END IF;
    END LOOP;
    RETURN NULL;
    END;
    As long as the function returns a string, an error is generated - as there is no single field where this error can be displayed, it will need to be displayed "On Error Page".
    If the return value is NULL, then the fields are valid and the submit process can continue.
    Andy

  • How to make the line items of sales order cannot be deleted.

    Hi All,
    Is there any Enhancement spots or user-exits which make the line items of sales order cannot be deleted if item category is 'TAN'.
    Thanks in Advance,
    Sudhakar Reddy .A

    Hi All,
    If you doesn't want to delete sales order line items then we have write in the Include Program which has mentioned below and in the form .....endform.
    Program Name :  Include MV45AFZB
    _Example:_
    form userexit_check_xvbap_for_delet using us_error
                                              us_exit.
    IF .......
      US_EXIT = CHARX.
    ENDIF.
    endform.

  • Ship to party at line item using BAPI_BUSPROCESSND_CREATEMULTI

    Hi all,
    I am using BAPI_BUSPROCESSND_CREATEMULTI to create a sales order in CRM. The sales order is successfully generated in CRM.
    I am inputting Sold to party, Ship to part, bill to and payer at header level. I am also inputting different ship to party for each line item.
    But when i create the order, i observe that every line item is having the same ship to party that i provide for order header. i.e ship to party at header is being copied to each line item...but i dont want that to happen..i want to give a different ship to party at each line item.
    I used the crm_order_read report to find out how partner table is filled and incorporated the same in my code....
    still i am unable to populate different ship to party at line item level
    here is my code...i had been trying to figure this out since 3 weeks and i am unable to find out why i am unable to put different ship to party for each line ite m.....
    some one please help me if they encountered this earlier...
    kindly help..this is my sample code
    Ship to at header level
    ls_logical_key-ref_partner_handle        =       '0002'.
          clear ls_input_fields.
          ls_input_fields-ref_guid                 =         lv_guid_h.
          ls_input_fields-ref_handle               =         lv_handle_h.
          ls_input_fields-ref_kind                 =         gc_object_ref_kind-orderadm_h.
          ls_input_fields-objectname               =         gc_object_name-partner.
          ls_input_fields-logical_key              =         ls_logical_key.
    _set_field         ls_partner           REF_GUID                   lv_guid_h.
    _set_field         ls_partner           REF_KIND                   'A'.
    _set_field         ls_partner           KIND_OF_ENTRY              'C'.
    _set_field         ls_partner           PARTNER_FCT                '00000002'.
    _set_field         ls_partner           PARTNER_NO        wa_header-SHIP_TO .                 
    _set_field         ls_partner           NO_TYPE                    'BP'.
    _set_field         ls_partner           DISPLAY_TYPE               'BP'.
    _set_field         ls_partner           MAINPARTNER                 'X'.
    move-corresponding ls_partner to ls_logical_key.
    append ls_partner to lt_partner.
    Ship to at item level
    ls_logical_key-ref_partner_handle        =       '0002'.
          clear ls_input_fields.
          ls_input_fields-ref_guid                 =         lv_guid_i.
          ls_input_fields-ref_handle               =         lv_handle_i.
          ls_input_fields-ref_kind                 =         gc_object_ref_kind-orderadm_i.
          ls_input_fields-objectname               =         gc_object_name-partner.
          ls_input_fields-logical_key              =         ls_logical_key.
    _set_field         ls_partner           REF_GUID                   lv_guid_i.
    _set_field         ls_partner           REF_KIND                   'B'.
    _set_field         ls_partner           KIND_OF_ENTRY              'C'.
    _set_field         ls_partner           PARTNER_FCT                '00000002'.
    _set_field         ls_partner           PARTNER_NO         wa_item-SHIP_TO .      
    _set_field         ls_partner           NO_TYPE                    'BP'.
    _set_field         ls_partner           DISPLAY_TYPE               'BP'.
    _set_field         ls_partner           MAINPARTNER                 ' '.
    Some one please help me and tell me what i am missing...
    regards,
    Jessica Sam
    Edited by: jessica sam on May 10, 2009 10:52 PM
    Edited by: jessica sam on May 10, 2009 10:52 PM
    Edited by: jessica sam on May 10, 2009 10:53 PM
    Edited by: jessica sam on May 10, 2009 10:54 PM

    I know how to trace the Ship to party at line item. When i create an order manually on CRM then the table CRMD_PARTNER has the required entries and the Ship to party at line item is getting populated correctly. Also if i open the order in CRMD_ORDER the ship pto party are being populated correctly at line item..
    But if i am trying to replicate this programatcally using the BAPI, i see that the ship to at header is being copied to each line item and this is not what is expected.
    If i go and check in the CRMD_PARTNER the data is not filled
    correctly as I dont have any ship to party at line item
    So finally I even tried to insert the data manually in the CRMD_PARTNER table using an
    INSERT statement and even that doesnt work...
    https://www.sdn.sap.com/irj/scn/forums
    So i am unable to ficgure out what is going wrong
    Any body if they have any idea on poulating ship to party programatically in
    sales order for each line item please help
    I am unable to figure out how to fill PArtner table of this BAPI to populate ship to at line item level
    Kindly Help..
    Regards,
    Jessica Sam

  • Changing ship to address at line item level in CRM order

    Hi All,
    Is it posible to change the ship to address at line item level in CRM order either at the time of order creation or order change. if yes please let me know if we need to do any settings for this.
    Thanks in advance.
    JM

    I agree with the previous comment, Please go to the Partner Determination procedure attached to the Transaction and in the partner functions associated with the that procedure, find Ship-to-Party and there will be a check box to "make it changeable" once determined. Check that and save it.. You should be all set
    Thanks
    Raj

  • How can we assign different colours to different records(line items) in alv

    how can we assign different colours to different records(line items) in alv reporting?

    Hi Friend,
    Please see this SDN Wiki  for setting the color in ALV :[http://wiki.sdn.sap.com/wiki/display/ABAP/ABAP-DevelopingInteractiveALVReportusing+OOABAP]
    There are so many SDN Wiki's on this  just try with search  Alv Color display in SDN,
    Regards,

  • How to add 100 line item in sales order at one time

    Hello Guru's
    My requirement is to add 100 line items in sales order at once.
    what can be good approach to overcome this situation.Is there some kind of tool which can be useful?
    Let me know your suggestions
    Thanks a lot in Advance

    Hi,
    do configuration for Proposal Items tab - like -
    then create sales order using with Propose items button - VA01 - then system will accept more than 50 line of materials at a time
    Please Use BAPI -- creation of Sales order
    Thanking you
    Regards
    Mahesh

  • How to print vertical lines for line items?

    hi experts,
                    can any one tell me how to print vertical lines for line items in ascript?
    ive tried using sy-vline but its printing jus one line each for each item .i want it in columns ?if there are any control commands plz let me know how to print?
    thanks &regards
    narendar

    hi narendar,
    Welcome to SDN.
       u can go for box command.
    Use the box command with zero width for vertical lines.
    Position the line by x position and y postion.
    syntax :
    BOX <xpos> <ypos>
           <width>
          <height>
          <thickness in twips> twips.
    Regards,
    Arun.
    Reward points if useful.

  • How could i enter 100 materials in the single line item in the repair order

    Hello SD Guru's
    The below requirement is related repair process.Can you please suggest how i can go head.
    I have a one requirement related to repair process in SAP SD. As of now the the repair order creating for only one material in the single line item. But the requirment is if they returned morethan 100 material from same customer, how to process that in systme prospective and standard SAP.
    The standard SAP working based on single material  for each line item so that the repair indicatior is triggered for that single material only. So how cound i enter multiple materials in the single line item and how could i create 100 materilals in the sigle line item and how could the repair indicatior triggered for that line item which is having 100 materials
    Thanks in advnce
    Thanks
    KV

    Hello Chakrapani,
    Thankyou for your quick responce.
    How it could be possible if it is possible in SAP.
    Can you please suggest how can we achive in this scenario.
    Thanks & Regards,
    KV

Maybe you are looking for