Dunning form - change field data in STD form

Dear all,
  I have a request for dunning form (ex.F150_DUNN_01).If I want to get data which can't get from table/structure MHND,F150x(ex. Sales order).I want to make a code in text element like:
/:  SELECT * FROM VBRP WHERE VBELN = &BKPF-XBLNR&
Is it possible to do this? else I will need to change dunning program to add this selection code...right?
BR
Regina

I know that you can't do a SELECT statement in the sapscript form.  You can however do a PERFORM statement.
You can call a subroutine of a program passing values to it and getting values back out. 
In the sapscript.....
/:   PERFORM 'NOT_PICKED' IN PROGRAM 'ZSD_RVADIN01'               
/:   USING &VTRLK-VBELN&.                                         
/:   USING &VTRLP-POSNR&                                          
/:   CHANGING &WK_NOT_PICKED&                                     
/:   ENDPERFORM                                                   
Notice that the sapscript form is sending VBELN and POSNR
and getting back WK_NOT_PICKED.
In the program......
form not_picked tables co_sym_using   structure itcsy
                       co_set_symbols structure itcsy.
* Pass from layout set
  clear: wk_vtrlk_vbeln, wk_vtrlp_posnr,
* Pass to layout set
         wk_not_picked.
* get value of variable &VTRLK-VBELN&
  read table co_sym_using with key name = 'VTRLK-VBELN'.
  check sy-subrc eq 0.
* convert into alpha format  (Not necessary all 10 characters used)
  wk_vtrlk_vbeln = co_sym_using-value.  "( need zero's )
  call function 'CONVERSION_EXIT_ALPHA_INPUT'
       exporting
            input  = co_sym_using-value
       importing
            output = wk_vtrlk_vbeln
       exceptions
            others = 1.
  check sy-subrc eq 0.
* get value of variable &VBDPR-POSNR& (INVOICE Item#)
  read table co_sym_using with key name = 'VTRLP-POSNR'.
  check sy-subrc eq 0.
  wk_vtrlp_posnr = co_sym_using-value.
* Send out "NOT"
      wk_not_picked = 'NOT'.
**  transfer variable &WK_NOT_PICKED&
  read table co_set_symbols index 1.
  co_set_symbols-value = wk_not_picked.
  modify co_set_symbols index 1.
endform.                    " NOT_PICKED
Regards,
Rich Heilman

Similar Messages

  • Formscentral - how do I change required date format to long date (e.g. January 2, 2014) in a form field?

    Formscentral - how do I change required date format to long date (e.g. January 2, 2014) in a form field?  I can't seem to change it from the short date format.

    Hi,
    I would suggest you to change the form language to English (UK), Here are the steps:-
    1. Open your form in FormsCentral
    2. Clik on Options tab
    3. Click on Language and Formatting and check out the selection for Form Language and make sure English (U.K.) is selected and the default date format should be day/month/year.
    Regards,
    Nakul

  • Submit pdf form fields data as customized template

    Hi
    Is it possible to submit pdf form fields as a customized template?
    when the form is submited, I want it to be emailed to me as text form and the form field data would be autopopulated into the text template.
    Im not sure but is this how fdf works?
    if so, how do i get my form to be submitted as fdf?
    please help.
    thanks.

    Here you go .....the 3 fields at the top are where you enter data. The allfields field is the field that creates your special format and teh submitted data field is what you woudl recieve in the email. Note that i changed th ebinding for the first three fields so that they are not included as separate items in the data file. This shoudl simplify what you recieve. I cam change the format of what is written to the allfields if you need a different distinction. In this example I hardcoded everything ....depending how many fields there are on yours i woudl use a different approach (using some complicated code) but the concept woudl be the same. I woudl find all of the fields on your form and loop through all of these objects in a for loop construct this will reduce th eamount of code dramatically and also allow you to modify the form to add or remove fields as you see fit without having to change the code.
    Make sense?
    Paul

  • Changing field entries each time the form is sent

    I am trying to create a document that I an fill out certain details and then send them to my clients for them to fill out their part. Each form will have the same questions, but the answers on my side will change depending on the client. So I need to be able to cater each one to the client. Is that possible?
    Its for wedding/event agreements. So I will say here is the details of your services and then they will fill our their contact info and other items....The form fields will remain the same. But the part I'm filling ot will be different each time...Hope that makes sense

    You can do this if you use a PDF form. You would have to add your information with Acrobat and then set those fields to read-only or flatten them so that the recipient won't be able to change the data. You'd then have to distribute the form with FormsCentral and send it out, assuming you need to collect the data with FormsCentral. The alternative is enabling the document with Acrobat and requesting that they email the completed form back to you. You lose the security that FormsCentral provides however.

  • HT4356 Fillable pdf in Adobe Acrobat Professional X but when I try to use the Airprint feature the form print minus the field data, have anyone been able to resolve this issue?

    I have developed a fillable pdf in Adobe Acrobat Professional X but when I try to use the Airprint feature the form print minus the field data, have anyone been able to resolve this issue?

    Hi,
    I had a similar problem and found help for it. Go to the "Advanced" menu and select Extend features in Adobe Reader. That will enable rights which may resolve your problem. If that doesn't work, there is a really helpful guy in here, Robert Levine. You may want to ask him directly.
    Good Luck

  • Exporting one specific pdf form field data to a specific webpage field

    Hello there.
    I am currently creating a form in which I need to export one specific pdf form field data to a specific webpage field to avoid typing it again or hitting ctrl+c and then ctrl+v to the webpage, as there are several records that need to be copied and pasted.
    I read that there is no access to the clipboard within pdf therefore, would like to know if there is any way to do that without accessing the clipboard.
    I am a newbie and have been learning by searching the forums and Google, therefore, would appreciate any insight on whether or not this is possible using javascript or the "submit form" funcion.
    Any help is greatly appreciated!

    Hi George, thanks for your response!
    The main issue I have is that this web page is in fact a government page in which I have to manually copy and paste information.
    I have no idea how to automate this process - I have access to the scripts on the page to see what I am able to do, but since I do not have much experience (only very basic javascripting), any other insight would be great!

  • How to change the date format in xml form?

    hi,
    How to change the date format in xml form?
    For example:  11/20/2008 3:00:03 PM    ->   11-20 03:00
    Any opinions greatly appreciated!
    Thanks.
    Edited by: ke wenxing on Dec 2, 2008 8:33 AM

    You could go to System - User Profile - Own Data would take you to the "maintain user profile screen"
    Click the defaults button and change the date format.This changes date format for all the dates in your login.

  • Export just certain form field data

    Is it possible, using form fields created in Acrobat XI Pro, to export only certain form field data to a spreadsheet while other form field data is not exported?

    I couldn't find an example form using exportAsText, but as a noobie it would be very helpful to see one.
    Would the code look something like this?
    exportAsText ("field1", "field 2", "field 3")
    Could I put this code into a button that the user can click to implement it? If not, where does the code need to be?

  • Options for read/write form field data with VBA/Reader

    I have a project which requires reading and writing field data to a PDF form using VBA in PowerPoint. The code I have works properly with the full version of Acrobat, but the client this project is for will be using Reader. I'm looking for suggestions to what options I have to be able to access the form field data (I don't need any other features other than access to the field data). Ideally, I would love a solution which doesn't require the client to install anything extra for this to work, but I'm assuming that this isn't possible without an extra install.
    Is there a library that exists in Reader (or could be licensed to be installed on the client's machine) that would allow the data to be read without needing the full version of Acrobat?
    Does a plug-in exist for Reader, or could be written, that would allow this? Writing a plug-in would certainly be beyond my current capabilities, but I am interested in knowing every and any choices that are available.
    Are there any other options to do what I need to do?
    I had originally thought about exporting the form data and parsing it in the VBA program, but this would take a bit more work to write the parsing routine instead of accessing the fields directly. Plus, it appears to me that Exporting is not enabled in Reader.
    Thanks for any insight you may be able to provide.

    Thanks for the response; this was my original suggestion, but I don't think this is feasable for our client. I suggested to our account people that this might be the only way to do this (and the easiest, although possibly the costliest since it would have to be purchased for their entire sales force) and they initially said that this would not be an option, so I wanted to be able to cover all the bases, and explore any other ways that they could do what they want. Is this the absolute only option to do this?
    Someone also suggested to me that licensing the Acrobat PDF Library SDK might be a way to do this, or that it could possibly be done with a plug-in for Reader (although from what I have found, Reader plug-ins would have to be approved by Adobe). These options, if possible, are beyond my current knowledge but I do want to be able to give them a complete list of possibilities.
    Thanks again.

  • Add body text / change subject to dunning form

    Hello,
    We are trying to e-mail the dunning forms we send using transactions FPVA / FPVB / FPCOPARA. At the moment the smartform is attached as PDF file without a body text.
    The PDF file we want to keep but we also want to add a body text to the e-mail. Preferably we would also add a variable text to the subject of the e-mail.
    What I found on SDN was to set the u201CSAP Smart Forms Output Typeu201D to u201CXSF Output + HTMLu201D but then the smartform was still attached as PDF and not as body text.
    Can anyone please help me on how to add a body text to the generated e-mail and how to change the subject of the e-mail.
    Thanks a lot,
    Kind regards,
    Lukas Molenaar

    Hello Prashant,
    Please see post:
    http://scn.sap.com/thread/1316583
    I hope that helps.
    Greetings Lukas

  • Text field data in the Interactive adobe form to long text

    Hi Expert,
    I have a text field(allow multiple line) in the interactive adobe form which has been binded to table type(char132) field of the context element.
    Now I want the save text field data as a long text using SAVE_TEXT.
    When I enter some value in the text field and trigger SUBMIT event then it is going to dump.
    I am unable to trace out what is wrong, since control is not reaching to INIT method of the view.
    please help.
    Regards,
    Rajesh.

    Hi,
    what is in ST22 for this problem?
    Regards Jiri

  • Calculation of values in a dunning form (SAP Script)

    Hi Experts!
    I want to add values to a sum (dunning-amount + dunning-fee + interest) in a dunning form (SAP Script; Z150_DUNN_02).Therefore I'm using a subroutine (Z_FI_KX_DUNN_02_INTEREST) to summarize. Problem is the format of the output-field &Z_FAEBT&. It's not similar to field &MHNK-FAEBT& which was formerly printed (without calculation of interest and dunning-fees.
    /:   DEFINE &Z_FAEHW& := &MHNK-FAEHW&                 
    /:   DEFINE &Z_ZINHW& := &MHNK-ZINHW&                 
    /:   DEFINE &Z_MHNGH& := &MHNK-MHNGH&                 
    /:   DEFINE &Z_FAEBT& := &MHNK-FAEBT&                 
    /:   PERFORM ZFAEBT IN PROGRAM Z_FI_KX_DUNN_02_INTEREST
    /:   USING &Z_FAEHW&                                  
    /:   USING &Z_ZINHW&                                  
    /:   USING &Z_MHNGH&                                  
    /:   CHANGING &Z_FAEBT&                               
    /:   ENDPERFORM                                       
    /:   ENDIF                                            
    A3   &MHNK-WAERS& &Z_FAEBT(C)&       
    It would be fine to get a hint how to format the field &Z_FAEBT& correctly. Must be done in the subroutine Z_FI_KX_DUNN_02_INTEREST by a special WRITE-command? Is it possible to add these values only in the form?
    Thanks for support!
    Regards, Bernd

    hi!
    I defined the field like you said! After moving this field to a numeric field to add the different amounts the
    following error occurred:
    Runtime errors         CONVT_NO_NUMBER           
    Exception              CX_SY_CONVERSION_NO_NUMBER
    Occurred on     16.06.2009 at   15:15:25  
    Unable to interpret " 1.316,59" as a number.     
    Definition:
    FORM zfaebt TABLES in_par STRUCTURE itcsy
                       out_par STRUCTURE itcsy.
      TABLES: mhnk.
      DATA: z_faehw_num LIKE mhnk-faehw,
            z_zinhw_num LIKE mhnk-zinhw,
            z_mhngh_num LIKE mhnk-mhngh,
            z_faebt_num LIKE mhnk-faebt.
      DATA: z_faehw TYPE string,
            z_zinhw TYPE string,
            z_mhngh TYPE string,
            z_faebt TYPE string.
    statement:
      READ TABLE in_par WITH KEY 'Z_FAEHW'.
      CHECK sy-subrc = 0.
      z_faehw = in_par-value.
      z_faehw_num = z_faehw.
    I suppose a type-conflict.
    Regard, Bernd

  • SAP Script Dunning form F150

    Hi Friends,
    My requirement is that the client wants to print RMWWR from BSID table in the dunning form.
    I copied the standard layout of F150_DUNN_01 to ZF150_DUNN_01 and made all the necessary modifications to the form as per their requirement but I have to display this field as pending balance in between the text of the dunning form, I tried to create a subroutine for fetching the data depending on date, customer and company code from bsid table. But how to pass these parameters from an standard program to this subroutine in order to detect during runtime.
    Can anybody suggest the way to come out of it. Your help is appreciated.
    Thanks in advance.
    Murali.

    Hi,
    You can create another program called F_DUNNING Forms and create a subroutine which does all the steps for you. And call this subroutine from the Sapscipt in case you have all the fields.Otherwise, you'll need to create a custom program to achieve the same.
    Thanks
    Nidhi

  • Can we change the data type of a field based on the value of the field

    HI Gurus,
    My Requirement is as below -- Could you please guide me
    in the Printable Adobe form -- for ex - as usual for dates fields in the Object Pallette the object type is a date/time field  and for quantity/currency fields corresponding fields are taken
    now in case the either the date, quantity or currency is initial in place of displaying 0.00 or empty date we need to display N/A (Not Applicable)
    for this I would like to change the data type of the field
    to put it simply --
    we need to change the data type of date field from DATE&TIME to Char type to hold N/A or  Quantity field to Char field to hold N/A
    how can we realize this in SAP adobe forms
    Thanks in Advace
    Ramchander Rao.K

    Hello Ramchander,
         You cannot change the data type of the field at run time in Adobe forms because the type of field you choose at the time of design level is associated with the data type itself.
    If you want to achieve your requirement, then your main idea should be to set the data type as CHARACTER itself while designing the field in the adobe form itself. CHAR field will comfortably hold the value of Calculation/amount field, Currency field, Amount, Date, Time HHMMSS, Unit Accuracy, Currency key, Floating point number, Numeric text, Client, Language and many other data types.
    After designing the field as TEXT field in Adobe form you have two options.
    Option 1:
    Select the Date field initially as type TEXT field or CHAR field in Adobe forms.
    Suppose the name of the field is TEXTFIELD1, then write the Javascript code on this field in Initialize event as below.
    if ( this.rawvalue == null )
         this.rawvalue = "N/A";
    If the field is not blank, then it will show the date. Else it will show "N/A".
    Option 2:
    Select the Date field initially as type TEXT field or CHAR field in Adobe forms. Do the formatting part in ABAP itself. It will increase the performance. Avoid Javascript as much as possible.
    Suppose you have a DATE variable l_dats of type DATS. Then take another variable l_date of type CHAR. Then write the below ABAP code.
    MOVE l_dats TO l_date.
    IF l_date IS INITIAL.
         l_date = 'N/A'.
    ENDIF.
    Bind the l_date to the TEXT field in the form.
    Even in this case, if the field is not blank, then it will show the date. Else it will show "N/A".
    But I will suggest you to use Option 2 of keeping the AMOUNT, QUANTITY, DATE, TIME fields etc as CHAR or TEXT fields in Adobe form and do the required formatting in ABAP itself.

  • Need help regarding the dunning form

    Hi,
    I have to display all the sales and payments of a cusomter for all the periods that are older than the run date in a dunning form. (i.e) if the run date is 04-aug-05 and if the slaes are there in 3 months(april, May, july) then i have to display three line items with sales and payments for that corresponding three months in the line items. As this is a dunning form i cannot change the print program. any table which have all the sales for a period which i can access directly in the script. can anyone suggest how to handle this.
    regards,
    Asha

    Hi,
    You can call a subroutine within a program (your z program)
    /:   PERFORM ADD_AMOUNT IN PROGRAM SAPLZFTP_F150
    /:           USING &W_AMOUNT&
    /:   ENDPERFORM
    In the z program create this subroutine.
          Form ADD_AMOUNT
         -->FT_INVAR  Text Symbol table for input  variables
         -->FT_OUTVAR Text Symbol table for output variables
    FORM add_amount TABLES ft_invar   STRUCTURE itcsy
                           ft_outvar  STRUCTURE itcsy.
      STATICS:
        w_value_l    TYPE  f150d-salfw.
            READ TABLE ft_invar INDEX 1.
            IF sy-subrc IS INITIAL.
    you can check all this part of the code how you want to
    process your data whether its numeric or character or
    whatever
               w_value_l = w_value_l + ft_invar-value.
            ENDIF. "IF sy-subrc IS INITIAL.
    ENDFORM.                    " ADD_AMOUNT
    TO BESPOKE THE PRINT PROGRAM FOR THE DUNNING
    Dunning outputs use the function module FI_DUNNING_PRINT_NOTICE. You can copy this to a Z function module and make some changes to the data selection. You will have to look into the code and decide what changes you need.
    The process to use a bespoke program to do the dunning print is as follows:
    UNDER FI GLOBAL SETTINGS in the configuration,
    There are Business Transaction Events. Within that you can configure the same to enable a Z function module in place of the standard function module (from the FUNCTION GROUP F150)
    • Create function group ZFTP_F150
    • Copy standard function module FI_PRINT_DUNNING_NOTICE of function group F150 to ZFTP_FI_PRINT_DUNNING_NOTICE in function group ZFTP_F150
    • Copy standard function module PRINT_DUNNING_NOTICE of function group F150 to ZFTP_PRINT_DUNNING_NOTICE in function group ZFTP_F150
    • Within the function module ZFTP_FI_PRINT_DUNNING_NOTICE, change function module call for PRINT_DUNNING_NOTICE to ZFTP_PRINT_DUNNING_NOTICE
    • Create a new include ZFTPI_ROUTINES within the function group and copy the subroutines LOG_MSG, LOG_MSG_TAB, & LOG_SYMSG from the function group F150 to this include
    AS AN ALTERNATE, YOU CAN COPY THE WHOLE FUNCTION GROUP
    • Maintenance view TBE31 (SM30). Change the function module from FI_PRINT_DUNNING_NOTICE to ZFTP_FI_PRINT_DUNNING_NOTICE against the event 00001720 FI-FI entry
    Hope this helps.
    regards,
    Satya

Maybe you are looking for

  • My Pound key is a hash tag

    On my keyboard my NO.3 key shows a pound sign above it............when I 'shift+3' I get a hash sign. How do I change this to a pound sign as showing on the key? thanks.

  • Can someone tell me how to achieve this effect?

    I know FlexStore : http://examples.adobe.com/flex2/inproduct/sdk/flexstore/flexstore.html has a cool effect when you browse > Product Details. by clicking one product. 1) Click the Product button.... to see Browse product panel 2) Click one of cellph

  • Regarding webservice working with axis ,Jboss as server

    Me Created a webservice.The wsdl file was displayed in the browser for the url http://localhost:8080/Testservice/Test?wsdl. And me created a client program for accessing this web service and got the response.The problem is that its not working when i

  • Tunnelling remote connection

    I need to remotely control a couple of macs over the internet, behind NAT firewalls. I took a look at the ARD 3.0 administrator guide posted on the support page and on page 75 it has a section implying this is possible. Can someone confirm that with

  • HT201071 Any idea when Aperture will support the Sony RX10?

    I have so many RAW photos just sitting on my camera. I've downloaded them to Lightroom already as a safety precaution. Does anyone know if I transfer the RAW files from Lightroom to Aperture whether the decoded codec will work or will I have the same