Clear PARAMETERS field

Hi. I have a small question. I have a PARAMETERS on my SELECTION-SCREEN. I'd like to set them emty when program ends and backs to SELECTION-SCREEN. How to do this? Greetings. P.

I try but there's no effect. Maybe it's connected with my program structure below.
REPORT zgr_package .
TABLES: zpackage.
DATA: adrnr TYPE adrnr.
DATA: internalname TYPE rs38l_fnam.
DATA: control_parameters  TYPE ssfctrlop.
INCLUDE <ICON>.
SELECTION-SCREEN begin of block b1 with frame.
  PARAMETERS werks LIKE zpackage-werks OBLIGATORY.
  PARAMETERS datum LIKE zpackage-datum  OBLIGATORY.
  PARAMETERS vendor LIKE zpackage-vendor  OBLIGATORY.
  PARAMETERS pack LIKE zpackage-pack  OBLIGATORY.
  PARAMETERS note LIKE zpackage-note.
SELECTION-SCREEN END OF BLOCK b1 .
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
  SELECTION-SCREEN COMMENT 01(20) v_icon FOR FIELD print.
  PARAMETERS: print as checkbox.
SELECTION-SCREEN END OF BLOCK b2.
INITIALIZATION.
  GET PARAMETER ID 'WRK' FIELD werks.
  datum = sy-datum.
  v_icon = '@2P@'. "icon_test.
START-OF-SELECTION.
  AUTHORITY-CHECK OBJECT 'M_BEST_WRK' ID 'WERKS' FIELD werks.
  IF sy-subrc NE 0.
    MESSAGE e398(00) WITH text-001.
  ELSE.
    SELECT SINGLE * FROM zpackage WHERE
    werks = werks AND pack = pack.
    IF sy-subrc = 0.
      MESSAGE i398(00) WITH text-002.
    ELSE.
      zpackage-werks = werks.
      zpackage-datum = datum.
      zpackage-vendor = vendor.
      zpackage-pack = pack.
      zpackage-uname = sy-uname.
      zpackage-note = note.
      IF print = 'X'.
        PERFORM PREPARE_ADDR.
        PERFORM PRINT_DOCUMENT.
      ENDIF.
      INSERT zpackage.
      MESSAGE s398(00) WITH text-003.
    ENDIF.
  ENDIF.
END-OF-SELECTION.
  CLEAR vendor.
  CLEAR note.
  pack = ''.

Similar Messages

  • Is there an option to Auto clear search fields?

    I have noticed when going into the app store, or our own app, Optmobile, that when I search for something that search stays in the field unless I manually press the X to clear it. Is there an option to clear this field after I press search or enter? I dont want to have to keep clearing the field before entering in a new search, I want it to automatically clear it.

    Yes. But if you will have download the linked form and open it up to be able to see all of the code, settings, actions, and document level function needed to make it work.
    The note from the form:
    "These three fields "auto-tab" to the next field when they reach their character limit.
    They use the document level script AutoTab that takes three parameters. The first is the current document, the second is the event object, and the third is the name of the field to tab to.
    This sample will only work in Acrobat 4.05 and greater which exposes the setFocus() method for the field object."
    The script for the 'custom keystroke' for field 'Text1' is
    AutoTab(this, event, "Text2");

  • I would like to be able to start typing a URL directly (with no need to clear the field first) after opening a new tab with my homepage...

    I've just installed the newest desktop version of the Firefox browser because my Opera doesn't feel very well these days. I'm trying to become friends with Firefox, and that's why I've changed the new tab settings in order to have my offline homepage loaded every time I open a new tab. There is an inconvenience — when I press Ctrl+T, the cursor appears at the end of the URL. It means that when I start typing, the letters show in the address bar after the URL of my homepage, so what I need is to clear the field first.
    Is there a way to get rid of this? (If it helpes, I'm currently using Windows 7.)
    I would appreciate if I could just press Ctrl+T, type a URL, and press Enter when I want to go to a website different from my homepage. Thank you for your replies!

    Then you can use (Ctrl+L and) Ctrl+A to select all the text in the location bar or Shift+Home/End.

  • Clear WBS field in sales order using bapi_salesorder_createfromdat2.

    Hi,
    Situation is this, I have a sales order, where the WBS element in the line item is populated. I want to clear that field to blank and save the sales order.
    When I try to do that using the bapi_salesorder_createfromdat2, it says that it is successful, but when I go back to the sales order and see that field is still populated and not cleared. But the same field if I clear it through VA02 it works fine.
    Header level update flag is set as 'U'.
    I have tried setting up 'D' 'U' and 'I' for the update flag for the line item. Still no luck.
    Given below is the sample code, did anybody else also faced the same issue.
    Data Section.
    data : sal_t_in type standard table of BAPISDHD1,
           sal_s_in like line of sal_t_in.
    *data : sal_t_in type standard table of BAPISDH1,
    *       sal_s_in like line of sal_t_in.
    data : ret_t type standard table of bapiret2,
           ret_s like line of ret_t.
    data : partner_t type standard table of bapiparnr,
           partner_s like line of partner_t.
    data : item_t type standard table of bapisditm,
           item_s like line of item_t.
    data : item_t_inx type standard table of BAPISDITMX,
           item_s_inx like line of item_t_inx.
    data : schdl_t type standard table of BAPISCHDL,
           schdl_s like line of schdl_t.
    data : schdl_t_inx type standard table of BAPISCHDLX,
           schdl_s_inx like line of schdl_t_inx.
    data : ord_view type order_view.
    data : sal_t_key type standard table of sales_key,
           sal_s_key like line of sal_t_key.
    data : ord_t_hdr type standard table of bapisdhd,
           ord_s_hdr like line of ord_t_hdr.
    data : ord_t_itm type standard table of bapisdit,
           ord_s_itm like line of ord_t_itm.
    data : hdr_inx type BAPISDHD1X.
    data : hdr2_inx type BAPISDH1X.
    data : qty type DZMENG.
    data : logic_switch type BAPISDLS.
    data : sd_doc_out type BAPIVBELN-VBELN.
    data : sd_hdr_out type BAPISDHD.
    data : sd_hdr_stat type BAPISDHDST.
    Logic Section.
    sal_s_in-doc_type = 'ZOR'.
    hdr_inx-updateflag = 'U'.
    ord_view-header = 'X'.
    ord_view-item = 'X'.
    sal_s_key-vbeln = '0000001067'.
    append sal_s_key to sal_t_key.
    call function 'BAPISDORDER_GETDETAILEDLIST'
      exporting
        i_bapi_view                   = ord_view
    *   I_MEMORY_READ                 =
      tables
        sales_documents               = sal_t_key
       ORDER_HEADERS_OUT             = ord_t_hdr
       ORDER_ITEMS_OUT               = ord_t_itm
    *   ORDER_SCHEDULES_OUT           =
    *   ORDER_BUSINESS_OUT            =
    *   ORDER_PARTNERS_OUT            =
    *   ORDER_ADDRESS_OUT             =
    *   ORDER_STATUSHEADERS_OUT       =
    *   ORDER_STATUSITEMS_OUT         =
    *   ORDER_CONDITIONS_OUT          =
    *   ORDER_COND_HEAD               =
    *   ORDER_COND_ITEM               =
    *   ORDER_COND_QTY_SCALE          =
    *   ORDER_COND_VAL_SCALE          =
    *   ORDER_CONTRACTS_OUT           =
    *   ORDER_TEXTHEADERS_OUT         =
    *   ORDER_TEXTLINES_OUT           =
    *   ORDER_FLOWS_OUT               =
    *   ORDER_CFGS_CUREFS_OUT         =
    *   ORDER_CFGS_CUCFGS_OUT         =
    *   ORDER_CFGS_CUINS_OUT          =
    *   ORDER_CFGS_CUPRTS_OUT         =
    *   ORDER_CFGS_CUVALS_OUT         =
    *   ORDER_CFGS_CUBLBS_OUT         =
    *   ORDER_CFGS_CUVKS_OUT          =
    *   ORDER_BILLINGPLANS_OUT        =
    *   ORDER_BILLINGDATES_OUT        =
    *   ORDER_CREDITCARDS_OUT         =
    *   EXTENSIONOUT                  =
    loop at ord_t_itm into ord_s_itm.
    move-corresponding ord_s_itm to item_s.
    call function 'CONVERSION_EXIT_ABPSP_OUTPUT'
      exporting
        input         = item_s-WBS_ELEM
    IMPORTING
       OUTPUT        = item_s-WBS_ELEM
    *move space to item_s-WBS_ELEM.
    append item_s to item_t.
    endloop.
    clear item_s_inx.
    item_s_inx-updateflag = 'D'.
    item_s_inx-wbs_elem = 'X'.
    append item_s_inx to item_t_inx.
    call function 'BAPI_SALESORDER_CREATEFROMDAT2'
      exporting
        SALESDOCUMENTIN               = '0000001067'
        order_header_in               = sal_s_in
        ORDER_HEADER_INX              = hdr_inx
    *   SENDER                        =
    *   BINARY_RELATIONSHIPTYPE       =
    *   INT_NUMBER_ASSIGNMENT         =
    *   BEHAVE_WHEN_ERROR             =
    *   LOGIC_SWITCH                  =
    *   TESTRUN                       =
    *   CONVERT                       = ' '
    * IMPORTING
    *   SALESDOCUMENT                 =
      tables
        RETURN                        = ret_t
       ORDER_ITEMS_IN                = item_t
       ORDER_ITEMS_INX               = item_t_inx
        order_partners                = partner_t
    *   ORDER_SCHEDULES_IN            =
    *   ORDER_SCHEDULES_INX           =
    *   ORDER_CONDITIONS_IN           =
    *   ORDER_CONDITIONS_INX          =
    *   ORDER_CFGS_REF                =
    *   ORDER_CFGS_INST               =
    *   ORDER_CFGS_PART_OF            =
    *   ORDER_CFGS_VALUE              =
    *   ORDER_CFGS_BLOB               =
    *   ORDER_CFGS_VK                 =
    *   ORDER_CFGS_REFINST            =
    *   ORDER_CCARD                   =
    *   ORDER_TEXT                    =
    *   ORDER_KEYS                    =
    *   EXTENSIONIN                   =
    *   PARTNERADDRESSES              =
    call function 'BAPI_TRANSACTION_COMMIT'
    * EXPORTING
    *   WAIT          =
    * IMPORTING
    *   RETURN        =
    Result I get when I execute is
    S     V4     233     SALES_HEADER_IN has been processed successfully     VBAKKOM
    S     V4     233     SALES_ITEM_IN has been processed successfully          VBAPKOM     000001
    S     V1     311     Standard order 1067 has been saved          Standard order     1067
    Which means it says it save successfully..but data is not changed.
    Any Ideas??
    Thanks and Regards,
    Mahesh.

    Hi,
    The problem is fixed. The item inx table I was not passing the item number field, so the bapi was not knowing which line item to update.
    It was a stupid overlook on my part.
    Thanks and Regards,
    Mahesh.

  • Clearing Network field in shopping cart using BBP_PD_SC_GETDETAIL

    Hi,
    in  Doc_Change badi to clear out the Network value from BBP_PDS_ACC-NETWORK field whenever user enters some value using the Activity Search help.
    i think code has to be written using fm BBP_PD_SC_GETDETAIL but who can we clear network field based on search help.
    Thanks ,
    Goutam.

    Hi Pradeep,
    I still cant find the deduct_ind. How could this happen, the DEDUCT_IND field is not in E_item?
    CALL FUNCTION 'BBP_PD_SC_GETDETAIL'
          EXPORTING
            i_guid    = iv_doc_guid
          IMPORTING
            e_header  = lt_sc_header
          TABLES
            e_item    = lt_sc_item
            e_account = lt_sc_account.
         LOOP AT lt_sc_item INTO ls_sc_item
          WHERE del_ind IS INITIAL AND deduct_ind IS INITIAL.
        ENDLOOP.
    Error: No component exists with the name "DEDUCT_IND", but there is a component with a similar name "DEL_IND".
    Appreciate helps!
    Thanks.

  • Clearing Network field in shopping cart

    Hi,
    in Doc_Change badi to clear out the Network value from BBP_PDS_ACC-NETWORK field whenever user enters some value using the Activity Search help.
    i think code has to be written using fm BBP_PD_SC_GETDETAIL but who can we clear network field based on search help.
    Thanks ,
    Goutam.

    Hi,
    Add the fields into the below structures-
    1- INCL_EEW_PD_ITEM_CSF_SC  (For Item Level)
    2- INCL_EEW_PD_HEADER_CSF_SC (For Header Level)
    And then activate the BADI "BBP_CUF_BADI_2".
    and manage the fields in this badi for display or hide.
    Regards,
    Sachin

  • Using enhancement COPA0001 in a derivation to clear value fields

    Dear colleagues,
    In our sales process, freight is added as an item of the sales order, which means we maintain different freight types as materials (mat type ZFRE - "Freight") and we create cost estimates, so that this cost can be valuated into COPA.
    Our problem is that we do not want to capture the cost of goods sold and the cost of sales for those materialss, as they only represent the freight cost that is paid by us and reimbursed by our customers. In addition, I we would like to move the value of the revenue value field to another value field (Freight sales).
    I am trying to accomplish this by using enhancement COPA0001 - I created an enhancement step and I added a code to include ZXKKEU11 which specifies the "clear" of 2 value fields and the "move" of the revenue to another value field.
    I had done this in the past to clear quantity fields, but I am testing this new config and it doesn't work.
    When testing the derivation analyzer tells me that "Derivation was not carried out. Reason: None of the target fields are to be derived".
    I looked in the known resources, but couldn't find any valuable information about such an issue. I did see in the SAP library that target fields can be "All quantity unit fields" , but value fields are not mentioned.
    Did anyone have a similar experience or knows if what I'm trying to do is possible?
    Thanks,
    Yoel.

    Hi
    You can try with exit COPA0005 as Christian mentioned...
    But, I would like to know your process in ddetail to see if any standard mechanism is possible...
    1. What does your sale order look like? Does it has one saleable material + Multiple freight materials?
    2. What purpose these freight materials serve? Do they have a revenue as well as cost in the sale order pricing procedure?
    3. Can you explain your total scenario with accounting entries? and what exactly are you looking at
    Regards
    Ajay M

  • Adobe Acrobat Version 9.0 & X are not showing "Clear Signature Field" with Custom e-sign plug-in

    Hi...
    We have created Custom PDF signature plug-in using Adobe X SDK.
    Earlier we had the same Custom PDF signature plug-in with Adobe 7.0 SDK and it used to show "Clear Signature Field" in context menu of digital signature placed on PDF.
    After upgrading the Custom signature plug-in to Adobe X SDK (complied again with SDK X, earlier it used to be 5.0 SDK) to support Acrobat 9, X and XI for digital signature, the "Clear Signature Field" option is appearing in context menu of digital signature box. Even the "Clear Signature Field" option is not shown for the user who has signed the document.
    "Clear Signature" option is available for Adobe Default Security signature.
    We have not changed anything in our plug-in code apart from recompiling it with Adobe X SDK.
    This is a critical issue for us.
    Here is the screen-shot from signed PDF having Adobe Default signature as well as our Custom plug-in signature.
    Here it clearly shows that "Clear Signature" option is not present in signature placed by Custom plug-in.
    Please let us know if anyone else has faced this type of issue earlier and has a resolution.
    Thanks In Advance...
    Waseem

    I am still not getting the Clear signature option for the user who has signed the PDF using Custom PDF Signature plug-in but the same is available for Acrobat Default security signature.
    Custom plug-in is compliled with Adobe X SDK and we have not made any code change to hide the Clear Signature option.
    I found a related posts where Clear Signature option is not shown:
    http://forums.adobe.com/message/5092195

  • How to clear the fields within copy routines in the copy contorl

    HI Gurus,
    I need to clear  the fields VBP-VBELV and VBAP-PSSNV within the copy routines 303 in the copy control between quote item and sales order item. I am not sure how to do that... Can some body please help.
    This is required because we had sales order and quote using the same requirement type which controls the special stock indicator. This leads to the stock getting update in quotation instead of the sales order, because the quotation is initiating document (collecting all cost etc).Now i know requirement should only be passed to production from sales order and not from quotation so i changed the config but there are some existing documents using same requirement type on both quotation and sales order and to correct those i need to clear fields VBP-VBELV and VBAP-PSSNV within the copy routines 303.
    Please help!
    Regards,
    Sam

    Hi ,
    just use this code in ur save button action handler , this will clear the field after entered in to the database and will ready for the next set of data.
    String password=wdContext.currentContextElement().getpwd();
    try{
         InitialContext ctx=new InitialContext();
         DataSource ds=(DataSource)ctx.lookup("jdbc/SAPJ2EDB");
         Connection con=ds.getConnection();
         con.setAutoCommit(false);
         Statement stmt=con.createStatement();
         int retIns = stmt.executeUpdate("insert into TMP_NEWUSERDETAIL(PASSWORD) values("password")");
         con.commit();
         con.setAutoCommit(true);
         wdContext.currentContextElement().setpwd(null);
    or use a seperate button to clear the field.
    wdContext.currentContextElement().set<Attributename>(null);
    Regards
    Vijayakhanna Raman

  • How system will automatically populate clearing date field for invoices paid similar to when payments are made to the vendors

    Hi SAP Gurus,
    Could you help me on this, How system will automatically populate clearing date field for invoices paid similar to when payments are made to the vendors.
    Regards
    Mohan

    Hi Ramakrishnappa,
    If you clear the invoice against payment, then the invoice clearing date would be payment document posting date.
    Regards,
    Mukthar

  • Clearing form fields in a PDF

    I am using Microtype's TimeSavers and SP Form assistant to create forms and calculators in my FrameMaker documents. Is there a way to add an extendscript that will reset/clear the fields when the PDF is opened each time? It is going to be part of a book PDF on a server, so it's going to be accessed by many people. I need any fields to be cleared/reset on open so that each time it will be cleared for the person opening the PDF.
    Thanks, Gary

    Gary,
    I think that you'll have to do this on the Acrobat side by embedding a javascript routine in your form(s).
    There's an overview tutorial at AcrobatUsers on using Javascript with Forms, see: http://acrobatusers.com/tutorials/using-acrobat-javascript-with-forms
    IIRC, you'll need to create a "Document Level Script" (see: http://acrobatusers.com/tutorials/js_document_scripts) that contains:
    // reset the form
      this.resetForm();
    For more PDF scripting tips, check out Thom Parker's PDF scripting site: http://www.pdfscripting.com/public/main.cfm

  • How to calc load parameters field for INSTALL for LOAD command

    Hi everyone ,
    I'll appreciate it if anyone could help me to find out how to calculate load parameters field for Install for Load Command .
    (which tags and parameters I should use to make this field )
    Best Regards,
    SHKas

    SHKas wrote:
    I'll appreciate it if anyone could help me to find out how to calculate load parameters field for Install for Load Command .
    (which tags and parameters I should use to make this field )Hi SHKas,
    The field is deffined in the GP card spec 2.1.1 under 9.5.2.3.6 INSTALL [for load] and INSTALL [for install] Parameters. The section of text explains what each field is and the tag to use to encode. Each value is a two byte short.
    Cheers,
    Shane

  • Does anyone know how to clear the fields between uses of a form used in Adobe Reader on an iPhone?

    The iPhone app for Adobe Reader is automatically saving the form each time it is filled out.  (Windows Adobe Reader does not do this.)  This means that you have to manually clear each field before you can use the form again.  Does anyone know a work-around?
    Thanks,

    Hi,
    Please post your question to the Adobe Reader for iOS user forum:
    http://forums.adobe.com/community/adobe_reader_forums/ios
    Regards,
    Brian

  • Dispute Case - Paid amount shown in 'Cleared Manually' field

    Hi
    I am configuring dispute mnagement. When I pay an invoice using standard incoming payments transaction F-28, then the dispute case status changes to CLOSE, but the amount paid is being shown in the 'Cleared Manually' field rather than 'Paid' field. What is the cause of this issue and how can this be fixed?
    Thanks

    I used case record model UDM_DISPUTE as a copy template. It had following structure nodes: Business partner, Disputed objects;Resolved objects;Items assigned during clearing; Other objects;and Various.
    Now, amongst these I cannot see anything which says 'Paid' and Cleared Manually' . Could you elaborate which values would have been copied incorrectly in your opinion?I am testing a full payment scenario and not Residual or Partial payment.

  • "Master Data Read Class Parameters" field is disabled

    Hi.
    While creating infoobject I switch master data access from Default to Own implementation,
    after this screen is redisplayed  and only Name of Master Data Read Class field become enabled.
    I need  Master Data Read Class Parameters field, but it is disabled and button near this field has the same status.
    Why? How to make them active?

    Hi,
    I think it is not possible to add own Master Data Class if the reference is 0DATE or if the type is DATS.
    So may be you can create your infoobject as Type CHAR, Length 8.
    May be you can add a Conversion Routine for the required format of date to be displayed.

Maybe you are looking for