cancel
Showing results for 
Search instead for 
Did you mean: 

Iteractive Form Add button

kumar_kiran2
Participant
0 Kudos

Hi All,

I created an interactive form by using sfp i added button to table line items in preview i can add new line item but when i download the same form using my report i can't add new item, if i click its not showing new line item i checked previous threads but it not full filled my requirement.

Please let me know if any one have the solution

I checked all properties like sub form - flowed on page break .

Thanks,

Kumar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

How you are adding new line item when button is clicked? Also whether other interactive features of the form

are working?

Thanks,

Aravind

kumar_kiran2
Participant
0 Kudos

Hi Aravind,

Thanks a lot for reply, first i created a table and added a one more header for table in header first column i added a button for that button in code initialization i added this code event click* and Language javascript.

data.Subform1.T_MDEZ.overflowLeader[0].#field[0]::click - (JavaScript, client)
var rec = xfa.resolveNode("DATA");
anInstanceManager = rec.instanceManager;
anInstanceManager.addInstance(1); 

in form properties also i changed form from static to dynamic .

and other interactive features are working like when downloaded it is printing lines and dynamically adding new items going to next page, edit . Please tell me where i am doing wrong.

but in pdf preview i can add new line item but after download same form i can't add .Thanks.

Thanks.

kumar_kiran2
Participant
0 Kudos

Hi All,

I have a button and table in my Interactive Form(SFP).

When I click the button it adds new row in the table.

This functionality is working fine in the PDF preview tab but when I

deploy and run the application it doesn't.

Please help me to solve this issue.

i tried like this thread but unable to solve.

Thanks

vaibhav_tiwari
Contributor
0 Kudos

Hi Kumar,

Check below things:

1. Is your form ZCI? Have you inserted Web Dynpro Script through menu->utilities->insert web dynpro script in SFP?

2. Have you updated your form for ZCI compatibility using report FP_ZCI_UPDATE?

3. Are you passing below parameter in your report to download your form:

SFPDOCPARAMS-FILLABLE = 'X' or 'N'.

SFPDOCPARAMS-DYNAMIC = 'X'.

The structure SFPDOCPARAMS belongs to the FM you are using to generate the form in your report.

Please check and revert if the issue is different.

Regards,

Vaibhav

kumar_kiran2
Participant
0 Kudos

Hi Vaibhav,

Thanks for reply, but we are not using webdynpro, i am developing interactive forms offline.

Please help me.

Thanks.

kumar

vaibhav_tiwari
Contributor
0 Kudos

Hi Kumar,

If you are developing a form in SFP and you are downloading it as an interactive form through a report/ WD ABAP application you are required to make these settings.

Anyways could you pls explain me your scenario, how you are downloading the form?

Regards,

Vaibhav

kumar_kiran2
Participant
0 Kudos

Hi Vaibhav,

Thanks for quick reply, My scenario is , i am developing form using SFP and downloading using a report, once i downloaded this form i want click on add button so it have to add the new body row to table this is my scenario and right now in preview pdf i can click on add button it is adding new body row to my table but after download it is not working .can i send my form to you?

Thanks,

Kumar

vaibhav_tiwari
Contributor
0 Kudos

Have you passed these parameters in your report:


SFPDOCPARAMS-FILLABLE = 'X' or 'N'.
SFPDOCPARAMS-DYNAMIC = 'X'.

  CALL FUNCTION <lv_fmname>
    EXPORTING
     /1BCDWB/DOCPARAMS        = SFPDOCPARAMS
*   IMPORTING
*     /1BCDWB/FORMOUTPUT       =
*   EXCEPTIONS
*     USAGE_ERROR              = 1
*     SYSTEM_ERROR             = 2
*     INTERNAL_ERROR           = 3
*     OTHERS                   = 4.

Regards,

Vaibhav

kumar_kiran2
Participant
0 Kudos

Hi Vaibhav,

Thanks for reply .

Yes i am passing those parameters here is my code.


*fill output parameters to display pdf documet
      fp_docparams-langu = 'X'.
      fp_docparams-country = 'US'.
      fp_docparams-fillable =  'X'.
      fp_docparams-dynamic =  'X'.


*send data to interactive form
      CALL FUNCTION fm_name
        EXPORTING
          /1bcdwb/docparams  = fp_docparams "
          p_cont             = gv_cont
          s_date             = gv_date
          p_plant            = gv_plant
          bednr              = bednr
          t_mdez             = gt_out
        IMPORTING
          /1bcdwb/formoutput = fp_formoutput
        EXCEPTIONS
          usage_error        = 1
          system_error       = 2
          internal_error     = 3
          OTHERS             = 4.

kumar_kiran2
Participant
0 Kudos

Hi Vaibhav,

Thanks a lot problem solved i missed this parameter


fp_docparams-dynamic =  'X'.

points given

Again Thanks for quick help.

Thanks,

Kumar

Answers (0)