cancel
Showing results for 
Search instead for 
Did you mean: 

Events Definition in Adobe Interactive Form

Former Member
0 Kudos

Hi,

I have a requirement to define a Button and handle the appropiate action in my BADI.

I found out the appropiate BADI's method(SCENARIO_PROCESS_USER_COMMAND).I can include my coding here based on the USER COMMAND value.

Now, I would like the define the Function code Value(User Command Value) for my button in my Adobe Interactive Form.

Can anyone let us know how this can be done?

Regards,

Raja Sekhar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Let me more clear of my problem,

I am creating a Custom Internal Service Request Scenario Form using Adobe Interactive Forms Txn-<b>SFP</b> in ECC(ABAP).

I am using <b>QISRSCENARIO</b> txn to customize my scenario in ECC.

I am using BADI(Definition : <b>QISR1</b>) to do the validations,to populate default values and do appropiate actions as per the Action(Button) chosen.

I hope my USAGE of ADOBE INTERACTIVE FORMS in clear.

Sorry for not clearly mentioning my requirement.

Regards,

Raja Sekhar

Former Member
0 Kudos

Hello Kuncham,

I guess you show the Adobe Forms from the portal using the standard webdynpro applications (pcui_gp and so on)? In that case my answer may apply to your problem.

As far as I know there is no such possibility. The problem is that there is no use of any submit to SAP button alike within ISR/adobe framework, as there is with tailor made webdynpro/adobe applications. That means that with buttons in the form it is hard to force an event that the standard webdynpro can intercept, except the standards save, back, cancel, approve and check.

However, you can always make dropdownlists to control the behaviour in the BADIs.

Regards, Hans GM

Former Member
0 Kudos

Hi Hans,

You are very much correct. I am making use of DROPDOWN Lists as you said for my requirements.

Thanks for the reply.

Regards,

<i><b>Raja Sekhar</b></i>

Former Member
0 Kudos

Hi Rajshekar,

Can u pls give me some info on material master creation by using adobe interactive forms.

Thanks in advance

Former Member
0 Kudos

Hi Sudha,

Why dont you refer the exercises in this link...

https://www.sdn.sap.com/irj/sdn/interactiveforms

Am sure this will be the best link for your current problem.

BTW,Can you let us know what is your configuration? I mean NW04 or NW04S?

Regards,

<i><b>Raja Sekhar</b></i>

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Rajasekar,

I am working on a same type of scenario you have worked long back. By this time you might have handled an ISR Scenario with ADOBE. I like to know what are the events there are for an ADOBE form and how can it be interacted with..Like populating a dropdown box and how this scenario can be proceeded with an workflow. I have some idea..I like to share with you.

Jocelyn_Dart
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Peter,

There are some standard events for ISRs and the underlying notification object such as: CREATED, CLOSED, FORAPPROVAL, APPROVED, NOTAPPROVED, etc. You can see these in the events section of business object BUS7051 in transaction SWO1.

You can also create your own events - which you raise in the scripts attached to the Adobe buttons in much the same way as the standard events are raised. You respond to them in the SCENARIO_PROCESS_USER_COMMAND method of the QISR1 BADI.

For dropdown values you use the SCENARIO_SET_ADDITIONAL_VALUES method of the QISR1 BADI. There's not an event as such to ask for drop downs - its just the usual submisison of the form. So essentially you are populating all relevant drop down lists in the additional values method and passing these back with the form details. Whethter the drop down list is displayed is based on the form script.

Best thing is to look at the scripts in one of the standard ISR Adobe forms like SPTD.

Please make sure you download and use the ISRControls Library (see note 947633) as this will build a lot of the scripts for you and save you a considerable amount of time and effort.

Hope that helps.

Regards,

Jocelyn

Former Member
0 Kudos

Thanks Jocelyn for your reply. My Actual Business Scenario involves developing an ISR-ADOBE for Leave of Absence..a custom scenario. I have a dropdown for selecting MASSG – Reason for Action field for the default MASSN – Action Type 15 (LOA). I like to get your help in getting the values filled in the dropdown list. In the form configuration, I have given a Manual default value for MASSN as 15 and included Value helps for MASSG (Valued Linked with all linked Backend Services). Still I am not able to see a value help associated with MASSG field using Test process in SPRO or Dropdown being filled at runtime in a ADOBE form via Portal. It does not show any error, but the values are not populated. Is it necessary I should implement a BAdI. Or there are any other ways. Please give me your valuable suggestions.

Former Member
0 Kudos

Hello Peterson,

Well, would be great if you had opened a new thread instead of continuing my closed thread.

Anyways, If you want a dropdown from backend in ISR/PCR Adobe Forms, you require to implement QISR1 BADI - SCENARIO_SET_ADDITIONAL_VALUES method where we require to populate LS_ADDITIONAL_DATA Internal table as shown below.

  • Get the list of Employee Groups for Dropdown

SELECT * FROM T501T INTO CORRESPONDING FIELDS OF TABLE EG_TAB

WHERE SPRSL = 'EN'.

CLEAR INDEX.

LOOP AT EG_TAB INTO WA_EG_TAB.

ADD 1 TO INDEX.

CLEAR LS_ADDITIONAL_DATA.

LS_ADDITIONAL_DATA-FIELDINDEX = INDEX.

LS_ADDITIONAL_DATA-FIELDNAME = 'EG_NEW_KEY'.

LS_ADDITIONAL_DATA-FIELDVALUE = WA_EG_TAB-PERSG.

APPEND LS_ADDITIONAL_DATA TO ADDITIONAL_DATA.

CLEAR LS_ADDITIONAL_DATA.

LS_ADDITIONAL_DATA-FIELDINDEX = INDEX.

LS_ADDITIONAL_DATA-FIELDNAME = 'EG_NEW_LABEL'.

CONCATENATE WA_EG_TAB-PTEXT '(' WA_EG_TAB-PERSG ')'

INTO LS_ADDITIONAL_DATA-FIELDVALUE.

APPEND LS_ADDITIONAL_DATA TO ADDITIONAL_DATA.

ENDLOOP.

I hope this code will help you.

Regards,

<i><b>Raja Sekhar</b></i>

Former Member
0 Kudos

Thanks Joselyn and Rajasekar. I also thank Anto J on this. I have opened a new thread , please give your valuable suggestions.

Thanks,

Peterson.

Former Member
0 Kudos

Thanks Joselyn and Rajasekar. I also thank Anto J on this. I have opened a new thread please give your valuable suggestions.

Thanks,

Peterson.

Former Member
0 Kudos

Thanks Joselyn,

I am using HR Admin services. I am using the Process Object and not the Notification Object Bus7051.

I have opened a new thread please give your valuable suggestions.

Thanks,

Peterson.