Cfinput fields: logic to order of error catch?

I have two <cfinput> tags in my page. First that
appears is the username, then the password, both are required.
When I test the page, however, and leave both fields blank,
the error handling prompts me first for password.
It should be username first. What controls this? Thx! Rick
<CFINPUT style="background-color: ##e8f2f6"
TYPE="text"
NAME="username"
VALUE=""
MAXLENGTH="100"
REQUIRED="Yes"
MESSAGE="Please enter your username.">
<CFINPUT style="background-color: ##e8f2f6"
TYPE="Password"
NAME="password"
VALUE=""
MAXLENGTH="100"
REQUIRED="Yes"
MESSAGE="Please type your Password.">

What version of ColdFusion are you using?
The current CFMX 7 with your code sample returns a dialog
with both fields being required in the expected order of
username/password. The CFFORM scripts have been updated quite a bit
from the earlier versions.
The CFFORM and subtags (html format) generates client side
JavaScript. The functions are prefixed with _CF. Take a look at the
generated page source to fully understand how the scripts are
working.
The format of the function is generated by the order that the
cftags occur. There isn't any specific attribute that you can set
that will set the order that the message occurs other than writing
your own validation routines.
Note: If you are using an older version of CF, think about
upgrading. CFMX 7 supports additional form generation options
including Flash and XML, not to mention all the other benefits of
CFMX 7.

Similar Messages

  • Negative quantity in deliver field in production order - CO02

    Hi All,
    I am doing production confirmation and goods receipt for production order through back ground using standard BAPI.While doing GR for production order in background the following error occured.
      System is throughing dump - Arithmatical logical conversion problem.when we analysed through ST22 we came to know that negative quantity appearing in field of delivered in production order.
      Screen name.............. "SAPLCOKO1"
      Screen number............ 0120
      Screen field............. "CAUFVD-GWEMG"
    As per standard, delivered field in production order is always in display mode only. So there will not be any chance for user to change the delivered field.
    Pls guide me how to overcome the above issue and what is exact root cause for the above problem.
    System is throwing error in change mode ( Co02) and display mode ( CO03 ) for the respective production order number
    Thanks
    P.Srinivasan

    Hi,
    This inconsistency can be solved with the following correction report. If you want to try by yourself, then implement it manually in transaction SE38 and execute in test mode first to check if the inconsistency is found. And obviously, in a TEST system first.
    If you are NOT confident about it, I recommend you to submit a support message for SAP for further investigation since this is a database inconsistency.
    Regards,
    Marcelo
    <pre>
    *& Report  ZPCON_076B                                                  *
    *& This report checks goods receipt quantity (WEMNG) and value (WEWRT) *
    *& of an order item for consistency with the corresponding material    *
    *& documents. In UPDATE mode, the quantity and the value calculated    *
    *& from the material documents will be written to database table AFPO. *
    REPORT  zpcon_076b LINE-SIZE 90.
    INCLUDE lcokotyp.
    TABLES: afpo.
    SELECTION-SCREEN COMMENT /1(80) text1.                      "#EC NEEDED
    SELECTION-SCREEN COMMENT /1(80) text2.                      "#EC NEEDED
    SELECTION-SCREEN COMMENT /1(80) text3.                      "#EC NEEDED
    SELECTION-SCREEN COMMENT /1(80) text4.                      "#EC NEEDED
    SELECTION-SCREEN COMMENT /1(80) text5.                      "#EC NEEDED
    SELECTION-SCREEN ULINE.
    SELECTION-SCREEN COMMENT /1(80) texta.                      "#EC NEEDED
    SELECT-OPTIONS r_aufnr FOR afpo-aufnr.
    SELECTION-SCREEN ULINE.
    SELECTION-SCREEN BEGIN OF BLOCK block WITH FRAME TITLE title."#EC NEEDED
    SELECTION-SCREEN COMMENT /1(72) texty.                      "#EC NEEDED
    SELECTION-SCREEN BEGIN OF BLOCK block2 WITH FRAME.
    PARAMETERS: testmode RADIOBUTTON GROUP mode DEFAULT 'X'.
    PARAMETERS: update RADIOBUTTON GROUP mode.
    SELECTION-SCREEN END OF BLOCK block2.
    SELECTION-SCREEN COMMENT /1(72) textz.                      "#EC NEEDED
    SELECTION-SCREEN END OF BLOCK block.
    DATA: BEGIN OF ls_afpo.
            INCLUDE STRUCTURE afpo.
    DATA: END OF ls_afpo.
    DATA  lt_afpo LIKE ls_afpo OCCURS 0.
    DATA: BEGIN OF ls_mseg.
            INCLUDE STRUCTURE mseg.
    DATA: END OF ls_mseg.
    DATA  ls_mseg2 LIKE ls_mseg.
    DATA  lt_mseg LIKE ls_mseg OCCURS 0.
    DATA  ls_mkpf TYPE mkpf.
    DATA l_initial_ltrmi TYPE co_ltrmi VALUE IS INITIAL.
    DATA l_orders TYPE sytabix.
    DATA l_entries TYPE sytabix.
    DATA l_sum_wemng TYPE wemng.
    DATA l_sum_wewrt TYPE wewrt.
    DATA l_error TYPE xfeld.
    INITIALIZATION.
      text1 = 'This report checks goods receipt quantity (WEMNG) and'.
      text2 = 'value (WEWRT) of an order item for consistency with the '.
      text3 = 'corresponding material documents. In UPDATE mode, the'.
      text4 = 'quantity and the value calculated from the material'.
      text5 = 'documents will be written to database table AFPO.'.
      texta = 'Please specify order numbers of orders to be processed.'.
      texty = 'If TESTMODE is set, no database update will occur.'.
      textz = 'Set radio button UPDATE for updating the database entries.'.
      title = 'Mode'.
    AT SELECTION-SCREEN.
    orders specified?
      IF r_aufnr IS INITIAL.
        MESSAGE e889(co) WITH 'Please specify order numbers'.
      ENDIF.
    START-OF-SELECTION.
    select order items
      SELECT *
             FROM  afpo
             INTO  TABLE lt_afpo
             WHERE aufnr IN r_aufnr
             AND ( dauty = auftragstyp-fert
                OR dauty = auftragstyp-netw
                OR dauty = auftragstyp-inst
                OR dauty = auftragstyp-rma
                OR dauty = auftragstyp-bord ).
      DESCRIBE TABLE lt_afpo LINES l_orders.
    check order items
      LOOP AT lt_afpo INTO ls_afpo.
        REFRESH lt_mseg.
        CLEAR l_sum_wemng.
        CLEAR l_sum_wewrt.
        CLEAR l_error.
        SELECT *
               FROM  mseg
               INTO  TABLE lt_mseg
               WHERE matnr = ls_afpo-matnr
                 AND werks = ls_afpo-pwerk
                 AND aufnr = ls_afpo-aufnr
                 AND aufps = ls_afpo-posnr
                 AND kzbew = 'F'
               %_HINTS ORACLE 'rule'.
        IF NOT sy-subrc IS INITIAL.
        no goods movements --> nothing to do.
          DELETE lt_afpo.
          CONTINUE.
        ENDIF.
        LOOP AT lt_mseg INTO ls_mseg.
          IF ls_mseg-shkzg ='S'.
          inward movement
            IF NOT ls_mseg-dmbtr IS INITIAL.
              l_sum_wewrt = l_sum_wewrt + ls_mseg-dmbtr.
            ENDIF.
            IF NOT ls_mseg-bstmg IS INITIAL.
              l_sum_wemng = l_sum_wemng + ls_mseg-bstmg.
            ELSE.
              IF ls_mseg-erfme = ls_afpo-amein.
                l_sum_wemng = l_sum_wemng + ls_mseg-erfmg.
              ELSE.
                IF ls_mseg-meins = ls_afpo-amein.
                  l_sum_wemng = l_sum_wemng + ls_mseg-menge.
                ELSE.
                  WRITE: 'ERROR - Order', ls_afpo-aufnr COLOR 6.
                  DELETE lt_afpo.
                  l_error = 'X'.
                  EXIT.
                ENDIF.
              ENDIF.
            ENDIF.
            ls_mseg2 = ls_mseg.
          ELSE.
          outward movement
            IF NOT ls_mseg-dmbtr IS INITIAL.
              IF ls_mseg-dmbtr NE ls_mseg-bualt AND
                 NOT ls_mseg-bualt IS INITIAL.
                l_sum_wewrt = l_sum_wewrt - ls_mseg-bualt.
              ELSE.
                l_sum_wewrt = l_sum_wewrt - ls_mseg-dmbtr.
              ENDIF.
            ENDIF.
            IF NOT ls_mseg-bstmg IS INITIAL.
              l_sum_wemng = l_sum_wemng - ls_mseg-bstmg.
            ELSE.
              IF ls_mseg-erfme = ls_afpo-amein.
                l_sum_wemng = l_sum_wemng - ls_mseg-erfmg.
              ELSE.
                IF ls_mseg-meins = ls_afpo-amein.
                  l_sum_wemng = l_sum_wemng - ls_mseg-menge.
                ELSE.
                  WRITE: 'ERROR - Order', ls_afpo-aufnr COLOR 6.
                  DELETE lt_afpo.
                  l_error = 'X'.
                  EXIT.
                ENDIF.
              ENDIF.
            ENDIF.
          ENDIF.
        ENDLOOP. "AT lt_mseg
      only continue if no error in the calculation occurred
        CHECK l_error IS INITIAL.
        IF ls_afpo-wemng = l_sum_wemng AND
           ls_afpo-wewrt = l_sum_wewrt.
        values are correct, no update necessary
          DELETE lt_afpo.
          CONTINUE.
        ENDIF.
        FORMAT: COLOR 1.
        WRITE: / 'Order', ls_afpo-aufnr, 'material', ls_afpo-matnr.
        FORMAT: COLOR OFF.
        WRITE: /3 'Order item data   : quantity',
                  ls_afpo-wemng UNIT ls_afpo-amein, ls_afpo-amein, 'value',
                  ls_afpo-wewrt CURRENCY ls_mseg-waers, ls_mseg-waers.
        WRITE: /3 'Material documents: quantity',
                  l_sum_wemng UNIT ls_afpo-amein, ls_afpo-amein, 'value',
                  l_sum_wewrt CURRENCY ls_mseg-waers, ls_mseg-waers.
        FORMAT: COLOR 2.
        WRITE: /3 'Material doc.  BWART', 30 'stock qty  UoM',
               52 'entry qty  UoM', 77 'value  Curr'.
        FORMAT: COLOR OFF.
        LOOP AT lt_mseg INTO ls_mseg.
          WRITE: /3 ls_mseg-mblnr, ls_mseg-zeile, ls_mseg-bwart,
                   ls_mseg-menge UNIT ls_mseg-meins, ls_mseg-meins,
                   ls_mseg-bstmg UNIT ls_mseg-bstme, ls_mseg-bstme,
                   ls_mseg-dmbtr CURRENCY ls_mseg-waers, ls_mseg-waers.
        ENDLOOP.
        IF NOT update IS INITIAL.
        set delivery date
          IF l_sum_wemng IS INITIAL.
          initial delivery quantity --> initial delivery date
            UPDATE afpo SET   ltrmi = l_initial_ltrmi
                        WHERE aufnr = ls_afpo-aufnr
                          AND posnr = ls_afpo-posnr.
          ELSE.
          read posting date from last valid goods receipt
            SELECT SINGLE * FROM  mkpf
                            INTO  ls_mkpf
                            WHERE mblnr = ls_mseg2-mblnr
                              AND mjahr = ls_mseg2-mjahr.
            IF sy-subrc IS INITIAL.
              UPDATE afpo SET   ltrmi = ls_mkpf-budat
                          WHERE aufnr = ls_afpo-aufnr
                            AND posnr = ls_afpo-posnr.
            ELSE.
            leave LTRMI untouched
            ENDIF.
          ENDIF.
        set quantity and value
          UPDATE afpo SET   wemng = l_sum_wemng
                            wewrt = l_sum_wewrt
                      WHERE aufnr = ls_afpo-aufnr
                        AND posnr = ls_afpo-posnr.
          FORMAT: COLOR COL_POSITIVE.
          WRITE: /3 'Order item data corrected from material documents.'.
          FORMAT: COLOR OFF.
        ENDIF.
        ULINE.
      ENDLOOP. "AT lt_afpo
      WRITE: / 'Number of checked order items     :', l_orders.
      DESCRIBE TABLE lt_afpo LINES l_entries.
      WRITE: / 'Number of inconsistent order items:', l_entries.
      IF NOT update IS INITIAL    AND
         NOT l_entries IS INITIAL.
        WRITE: / 'Inconsistencies were corrected from material documents.'
                  COLOR COL_POSITIVE.
      ENDIF.
      ULINE.
    </pre>
    Edited by: Wilian Segatto on Jan 25, 2011 12:27 PM

  • Sort field in maintenance order

    Hello;
    I want to make sort field in maintenance order as a mandatory field. But if I make it as a mandatory field, system still allows me to save the order as long as I have not clicked 'Location' tab. So there is no positive control over this field. May I know, how do I achieve this? I have even tried to put order type as the influencing field but it does not help.
    Points assured.
    Regards
    Hemant

    Hello Hemant,
    access to the SAP service marketplace via www.service.sap.com to create an OSS message. Choose link "product errors". Therefore you need an OSS user and you have to be authorized to create OSS messages.
    To create an user-exit, you have to go to transaction CMOD. There you have to create a project and assign the enhancement you want to use (I'm not really sure, but I think IWO10009 is the correct one in your case - you can search the user-exits via transaction SMOD - search for IWO*).
    After this you have to implement your coding and then you have to activate the project.
    The implementation of the user-exit should be done by an ABAP developer.
    By the way - I've had a look at the OSS. There's note 768576.
    Reason and Prerequisites
    The problem is caused by a missing function.
    Influences set via field selection will only become effective if a screen with the corresponding fields is processed. You must also refer to the documentation defined in the corresponding Customizing area. For the location & account assignment data, no additional check is (such as with the general order header data) is realised during the saving.
    Prerequisite
    Via field selection you declared fields of the location & account assignment data as mandatory field, and no screen that contains these fields was passed.
    Solution
    By means of the example code, you must implement a corresponding mandatory field check via customer enhancement IWO10009 at the time of the order backup.
    1. Create subroutine Z_IWO10009_GET_DATA_FOR_FAW in program SAPMILA0. It would be best if you create an own include ZMILA0F1 for this so that you will not have any unnecessary expenditure for future Support Packages (via Transaction SE80).
    FORM Z_IWO10009_GET_DATA_FOR_FAW.
      CALL FUNCTION 'CO_IH_GET_HEADER'
           IMPORTING
                     CAUFVD_IMP = CAUFVD.
      CALL FUNCTION 'CO_IH_GET_ILOA'
           EXPORTING
                     CAUFVD_IMP = CAUFVD
           IMPORTING
                    ILOA_WA    = ILOA.
    ENDFORM.                    "Z_IWO10009_GET_DATA_FOR_FAW
    2. Create the following source code in customer enhancement IWO10009:
    STATICS: XTFAWF LIKE TFAWF OCCURS 0 WITH HEADER LINE.
    tables:  tfawf.
    DATA: wa_screen    LIKE screen.
    FIELD-SYMBOLS:  'A'.
      perform Z_IWO10009_GET_DATA_FOR_FAW(SAPMILA0).
      if xtfawf[] is initial.
        SELECT * FROM TFAWF INTO TABLE XTFAWF
                 WHERE PROG = 'SAPMILA0'.
      endif.
      LOOP AT XTFAWF WHERE CUST_M = 'X'.
        CALL FUNCTION 'FIELD_SELECTION_INFLUENCE'
             EXPORTING
                  dynprogruppe = '7   '
                  mode        = 'C'
                  modulpool    = 'SAPMILA0'
                  fieldname    =  XTFAWF-MFELD
             IMPORTING
                  input        = wa_screen-input
                  output      = wa_screen-output
                  active      = wa_screen-active
                  required    = wa_screen-required
                  intensified  = wa_screen-intensified
                  invisible    = wa_screen-invisible
             EXCEPTIONS
                  OTHERS      = 1.
        if wa_screen-required = 1.
          clear lv_mfeld.
          lv_mfeld = 'CAUFVD_IMP-'.
          case XTFAWF-MFELD.
            when 'ILOA-AUFNR'.
              lv_mfeld+11 = 'IAUFNR'.
            when 'ILOA-KOKRS'.
              lv_mfeld+11 = 'IKOKRS'.
            when 'ILOA-BUKRS'.
              lv_mfeld+11 = 'IBUKRS'.
            when 'ILOA-GSBER'.
              lv_mfeld+11 = 'IGSBER'.
            when 'RILA0-ARBPL'.
              lv_mfeld11 = xtfawf-mfeld6.
            when others.
              lv_mfeld11 = xtfawf-mfeld5.
          endcase.
          ASSIGN (lv_mfeld) TO  IS INITIAL.
            Message E461(IW)
            with 'Mussfelder der Standort&Kontierungsdaten füllen'.
            EXIT.
          ENDIF.
        endif.
      endloop.
    endif.
    3. Activate the changes
    Correspondingly you can implement this solution also for the order release, for example, via customer enhancement IWO10002.
    Bear in mind that this is a source code proposal. It might be useful or necessary to adjust this source code to special applications.
    Best regards
    Stephan
    Edited by: Stephan Theis on Jan 5, 2008 11:20 AM

  • Create a new field in sales order

    HI folks i want to create a new field in sales order item level how can i create

    Hi,
    Hope this will help you,
    User exits in the screens
    Additional header data is on screen SAPMV45A 0309, additional item data on screen SAPMV45A 0459. These screens contain the Include screens SAPMV45A 8309 or SAPMV45A 8459 as user exits.
    Fields which are also to be included in the sales document for a specific installation should be included on the Include screens for maintaining. If an application-specific check module is needed for the fields, this can be included in the Include MV45AIZZ. The module is called up in the processing logic of the Include screens.
    For field transports, you do not have to make changes or adjustments.
    Example
    A new field, VBAK-ZZKUN, should be included in table VBAK.
    If the check is defined via the Dictionary (fixed values or check table) the field must be included with the fullscreen editor in the Include screen SAPMV45A 8309. In this case, no change has to be made to the processing logic.

  • Validation to check a field in Purchase Order.

    Dear friends ,
    Could we create an Validation to check a field in tcode ME21N, and this validation must check if field (header) is empty if yes when SAVE send error message"You could not create PO without release strategy , please contact IT area! "
    Rule to check it.
    Tcode ME21N
    if field EKKO-FRGSX or EKKO-FRGKE without value when Saving document so send an error message as discribed above not allowing user to save and create PO.
    Best regards
    Ale

    hi Amams
    check this link
    Adding Fields to Sales order
    i think it may give u some idea
    Regards,
    Naveen

  • CRM orders with error "Do not enter a business agreement for sold-to party"

    Dear SDN'ler,
    after creating orders in SAP CRM via ISA (CRM 4.0) and uploading them to R/3 all orders are created successfully in R/3 but an error message is sent back to SAP CRM in case of ALL orders.
    Error message is the following:
    "Do not enter a business agreement for sold-to party xyz"
    Message no. CRM_BILLING011
    Diagnosis
    The field "FI-CA active" is not selected for the sold-to party 6000201 in the business master record. Since the business agreement is used in the component FI-CA, excluding the control of processes, it makes sense to enter a business agreement.
    Procedure
    Delete the entered business agreement.
    ==> Could someone please give me some more information about the mentioned "business agreement"? Where do I find field "FI-CA active" (in R/3 or CRM customer master data?)?
    ==> And how can I eliminate this error message for CRM orders in SAP CRM?
    Thanks a lot.
    Best Regards,
    Rainer Gryschka

    Please check the customising setting under following path:
    SPRO --> Customer Relationship Management --> Master Data --> Business Partner -- > Business Agreement --> Define Basic Settings
    Alternatively you may also check following customisation table using SM30 --> CRMC_BUAG_ACTV

  • How to add a field in sales order

    Dear All,
    First I created a ZTable in which there are 15 fields exist then I append structure in ZVBAP which contain only one field from this ZTable. Now I place this field in the Subscreen 8459 of Sales Order under "Additional Data B" by using access key. Also i have Access to edit the module MV45AFZZ.
    Then I wote the code in the
    FORM userexit_save_document_prepare.
    IF XVBAP-ZZSPENR = ''.
    MESSAGE 'SPECIFICATION NO. IS NOT SPECIFIED' TYPE 'E'.
    ELSE.
    VBAP-ZZSPENR = ZSPEC-ZSPENR.
    ENDIF.
    ENDFORM.    
    so that while saving it Checks that field in screen and then if it has value then save it to in the VBAP Table.
    I think I have to write the code into the module
    FORM userexit_move_field_to_vbap.
    VBAP-zzfield = xxxx-zzfield2.
    *{   INSERT         ID3K908846                                        1
      DATA: zlgort LIKE vbap-lgort.
      IF vbap-pstyv EQ 'ZWP'.
        CHECK vbap-lgort IS INITIAL.
        GET PARAMETER ID 'LAG' FIELD zlgort.
        vbap-lgort = zlgort.
      ENDIF.
    *}   INSERT
    WA_XVBAP-ZZSPENR = xvbap-zzspenr.  "but this line gives * me error cause I have to move the screen fields into  * the VBAP Table. So that after this it checks in internal table XVBAP that the field ZZSPENR has value or not ?
    ENDFORM.
    But when I checks XVBAP TAble it shows all entries that I fill in Sales Order except ZZSPENR (My  Field)
    Thanks in advance.
    Regards.
    Adams.
    Helpful answer will be appretiated.

    hi Amams
    check this link
    Adding Fields to Sales order
    i think it may give u some idea
    Regards,
    Naveen

  • Sales Order form error  "Not able to retrieve Display values for Service"

    Hi,
    Few of our orders flash the below error message when the order is queried
    "Not able to retrieve Display values for Service"
    Below are the points I observed
    1.The orders I am referring to are imported order via EDI interface.
    2.The service reference type code has value of ORDER, however no other service related fields (like service reference line id) have any values.
    3. The item is not a service item (service tab in Item setup is disabled)
    4. Same item when imported with value of "Customer Ordered" in "service reference type code" field, does not throw an error.
    5. If I update "service reference type code" with value null or change it to CUSTOMER_PRODUCT, the error disappears.
    Can someone explain the significance of this column value and what could have been causing this error message?
    May be there are some dependent fields/setups which must have a value when service reference type code =ORDER.
    Thanks in advance,
    JC
    Edited by: user10174990 on Oct 25, 2012 10:58 AM

    Hi,
    Maintain the dafault values using Tcode OISF with respective to Planning Plant you have to maintain the following values like Order Type, Main Work Center, Maint. Plant,Group,Group Counter,Business Area & Task List type.
    or
    Apply these OSS note 150732 / 195993.
    regards,
    Venkatesan Anandan

  • Addtion of new custom field in PP order

    Hi All,
    I am looking forward to add a new custom field in PP order and to link it with table AUFK in the existing tabs of PP order.
    I dont want to use any existing field. Also I have only have an option of having a new custom tab with the new field altogether which I dont want to use.
    Please help if possible how can I accomplish it.
    Rg,
    Vipul

    Hi Vipul,
    Nobody works in all areas and nobody gives instant solutions to each problem. I told you in my first reply that we have done similar devlopment in material master..not in prod order and i clearly mentioned that possibilty is there.
    Your Abaper might not be able to develop this because this is not easy and you also might not be able to give correct functional logic.
    Regards
    Tajuddin

  • Prevent unauthorised changing of 'Ship to' field of Purchase order

    Hi experts
    I am trying to prevent users from changing 'Ship to' field of Purchase Order without authorisation. OPOR.Address2
    I am thinking to do this I should use a Stored Procedure which cause error if a condition is not met?
    First I am trying to prevent any change of this field:
    SP attempt:
    --No changing of ship to address on PO
    IF @object_type = '22' AND @transaction_type IN ('U','A')
    BEGIN
    IF EXISTS (SELECT T0.Address2 FROM dbo.OPOR T0 WHERE T0.Address2 <> (SELECT T1.CompnyAddr FROM dbo.OADM T1) AND T0.Address2 = @list_of_cols_val_tab_del)
    SELECT @error = 1, @error_message = N'Direct shipment requires authorisation'
    END
    The above does not work - please can someone assist?
    If there is better way to achieve my required outcome please advise me.
    Thanks
    Karen

    Hi,
    Try this:
    IF @object_type = '22' AND @transaction_type IN ('U','A')
    BEGIN
    IF EXISTS (SELECT T0.[Docentry] FROM OPOR T0 WHERE T0.[Address2]  <> ( select T0.[CompnyAddr] from OADM T0) AND T0.docentry = @list_of_cols_val_tab_del)
    SELECT @error = 1, @error_message = N'Direct shipment requires authorisation'
    END
    Thanks & Regards,
    Nagarajan

  • Need to copy a custom field from sales order to billing document

    Hi All,
    I have a requirement, I need to add a new field in the sales order header part and even a field in the billing document, once i add this field up in both the documents in the header part i need to create a copy routine using the VOFM tran, can any body help me on what's the procedure to add a field in billing document and does the copy routine transfer the data ( Custom Field ) from Sales Order to the Billing Document, if yes can somebody help me with the procedure on how to and code of it.
    solved it myself ....
    Regards.
    Message was edited by: seshi
            seshi

    Hello,
    Regarding item 1, is it in the region of the global links (ie logout, home, preferences, etc.)? If not, have you tried creating a link via personalizations to the region you wish to have the link displayed (item type = link, destination = fully qualified name of your .xml page/region?
    Regarding item 2, you may have to create the custom subtab programatically using the controller for the region of the current subtab layout.
    Regarding item 3, you can also add a submit button to the page button bar region via personalizations. You can then add any logic you want to the button in the controller for the page.
    Hope this helps.

  • Purchase Order/Item error

    Can anyone tell me which fields I should check if I'm receiving the following error on a Standard Purchase Order Import:
    Error: ITEM ID (VALUE =XX) is not a valid purchasable item.
    I have checked that it is enabled, stock enabled, purchasing enabled. Are there other fields I should check as well?

    Hi there,
    I have no idea what you are asking with the limit po?
    Lynton

  • When i save sales order, Getting error.......

    Hi expert,
    I have created my own standard order (from company code to master data maintenance and Pricing Procedure).
    1. Here the problem is that when i save the sales order, getting message/error is that Financial document: No financial document assigned.
    2. If click "Header Output Preview Icon (ctrlshftF1)" in the sales order,getting error/message is that No Output has been Selected for Printing.
    Please help me out from this problem.
    Looking forward to hearing from Expert soon.
    Thanks in advance

    Dear Kaviya
    1)  Probably you are trying to create an export order for which the field "Financial Doc" is made mandatory. 
    As you may be aware, few export orders are to be executed against Letter of Credit which should be created through VX11N.  Once all the required datas are given in vx11n while saving, a document reference will be generated.  This reference you should assign in sale order.  To do the same, after giving the datas in sale order, select "Goto --> Header --> Billing Document".  Here at the bottom screen, there is a field "Financial doc no".  Assign the reference you got in vx11n.  Now try to save the order.
    2)  I dont know why you are trying to print the sale order.  Is it necessary.??
    thanks
    G. Lakshmipathi

  • Create sales order with error "Item has no open quantity"

    Dear all,
    When I create sales order, an error pop up says: Item has no open quantity.
    The F1 help says:
    "Procedure
    If you want the item to receive a confirmed quantity after all which can be delivered later, you should de-activate the fix quantity indicator."
    But where can I find the indicator? I do not know how to open the item quantity.
    Thanks

    Hi,
    Please check in IMG>SD>Basic Function-->Avaliability check and TOR >Avaliability check>Avaliability check with ATP Logic-->Default settings.
    remove the check mark before particular sales area for Fixed date and quatity.
    Hope this would help you.
    Please reward points if helpful.
    Regards,

  • Date field (not required) causing an error...Please assist!

    Hello, I am a beginner when it comes to ColdFusion could someone please assist with this issue?
    I have a date field in my application that is not required, I want users to have the choice to leave this field blank.
    Below is a breakdown of what I have going on:
    On Add/Edit page:
    <cfinvoke component="test"
               method="get"
               ReferenceNumber="#URL.RefIDNum#"
               returnvariable="record">
    <cfset ThisIsTheDateField=DateFormat(record.ThisIsTheDateField, "MM/DD/YYYY")>
    <cfform action="process.cfm">
       <cfinput type="Text"
                name="ThisIsTheDateField"
                value="#ThisIsTheDateField#"
                message="ThisIsTheDateField must be a valid date"
                required="no"
                                            validate="date"
                validateAt="onSubmit"
                size="50"
                maxlength="10">
    On process.cfm:
    <cfinvokeargument name="ThisIsTheDateField"
                       value="#DateFormat(FORM.ThisIsTheDateField)#">
    On CFC Page:
    <!--- Method arguments --->
    <cfargument name="ThisIsTheDateField"
                  type="date"
                  required="no"
                  hint="ThisIsTheDateField field">
    Query Value for this field:
    #CreateODBCDate(ARGUMENTS.ThisIsTheDateField)#,
    The error I get is:
    Error Occurred While Processing Request
    The THISISTHEDATEFIELD argument passed to the add function is not of type date. 
    If the component name is specified as a type of this argument, it is possible that either a definition file for the component cannot be found or is not accessible. 
    The error occurred in E:/site/test.cfc: line 56
    54 :
    55 :  <!--- Add a record --->
    56 :  <cffunction name="add"
    57 :              returntype="boolean"
    58 :              hint="Add a record">
    I need a way to make this field accept blank entries... when I leave it blank I get the above error!
    Thank you!

    The cfif does not surround the cfargument.  Put your cfargument for ThisIsTheDateField the same way you have it for your First/Second/Other Thing cfargument.  Then, understand that even though you have a cfargument tag that is named "ThisIsTheDataField", that the variable "arguments.ThisIsTheDataField" doesn't necessarily exist (because you have defined the argument as optional).  If it doesn't, you can't use it, otherwise you will get
    Element THISISTHEDATEFIELD is undefined in ARGUMENTS.
    So for the parts of your function where you will want to do something specific if the ThisIsTheDataField was passed to your function, you have to check using IsDefined("argument.ThisIsTheDataField") to determine if that variable exists or not.  SO, to summarize using the example you supplied above:
    <cffunction name="add"
                 returntype="boolean"
                 hint="Add a record">
      <!--- Method arguments --->
      <cfargument name="FirstThing"
                  type="string"
                  required="no"
                  hint="First Thing">
      <cfargument name="SecondThing"
                  type="string"
                  required="no"
                  hint="Second Thing">
      <cfargument name="ThisIsTheDateField"
                  type="date"
                  required="no"
                  hint="ThisIsTheDateField field">
      <cfargument name="Fourth Thing"
                  type="string"
                  required="no"
                  hint="Fourth Thing">
    <cfif IsDefined("arguments.ThisIsTheDateField")>
       <!--- operations that happen if ThisIsTheDateField was passed to the function
    <cfelse>
        <!--- operations that happen if ThisIsTheDateField was not passed to the function --->
    </cfif>
    As an example, let us say that you want to have the date be a default value (say, today's date), if the date isn't passed to the function.  You could do:
    <cfif IsDefined("arguments.ThisIsTheDataField")>
        <cfset TheDateField = arguments.ThisIsTheDataField" />
    <cfelse>
        <cfset TheDateField = Now() />
    </cfif>
    At the end of this code, the variable "TheDateField" will be guaranteed to have a date, and the date will be the date passed to the function if one was passed, or otherwise today's date if not.
    I hope that clarifies everything!

Maybe you are looking for

  • My HDD is full...but i dont know why

    I just got this T400 less than a month ago and already the HDD is full, but i dont know what its full with. Everything thats installed now either came with the laptop, or isn't big enough to fill up a 140 gig hard drive. The amount of free space seem

  • Converting lines to fills

    A client of mine has all these product logos that have a thick 10-point outline around the text. When I import these logos into Flash I always want to convert the outline to a fill, because otherwise when I use alpha to fade the logo in and out durin

  • Downloading quicktime updates

    No high speed where I live so I download my updates on a windows computer onto a flash drive to my Mac. all works fine except quick time. I get to the right download site, click on download and end up on a quick time for windows site. Any ideas on ho

  • Steps to create help document

    Hi All, I have developed set of new pages in OAF. For my pages i need to give the help documentation. I have seen the seeded pages and developer guide also. There i found that we have to set "Help Target" for our pages to set our help document. I hav

  • Queues in SAP XI and R/3

    Can anyone give me an idea of all the Qs in SAP XI and R/3. -Naveen.