cancel
Showing results for 
Search instead for 
Did you mean: 

form data not getting updated in special_data internal table

Former Member
0 Kudos

Hi All,

I have created a (ISR) interactive adobe form which is accessed by the requestor, who adds some data and creates a notification.This form is accessed by the manager and he sends it back to requestor adding his comments.

But when the requestor deletes the data and resubmits it.The data does not get deleted from the special_data internal table.It still retains the data.How do i update the special_data with the changes done in the fields of the form.

Only if the data is deleted it is not updated in special_data. if it is changed to some other value it is updated.But if deleted the special_data does not have empty value, it contains what was entered by the requestor first time.

Kindly help me solve this issue.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ashwini,

It is easy to access the general request data in the BAdI implementations because this data

is transferred to the methods as a GENERAL_DATA structure. The special request data

defined as characteristics in ISR Customizing, on the other hand, is listed in a table. The

SPECIAL_DATA table contains a row for each characteristic. Therefore, it is normally

necessary to transfer this tabular data into corresponding application structures at the start

of a BAdI method, and then write it back to the table at the end of the method. Two

function modules are available for this purpose:

ISR_SPECIAL_DATA_TO_STRUC

Moves the special request data from the SPECIAL_DATA table to a structure. The

request data that has the same name as a field name in the structure is transferred from the

table to the structure.

ISR_STRUC_TO_SPECIAL_DATA

Same as ISR_SPECIAL_DATA_TO_STRUC but in the reverse direction.

Example 1: Structure with reference to the DDIC


* Stammdaten Innenauftrag:
DATA: ls_master_data TYPE bapi2075_7.
* spezielle Antragsdaten in Struktur füllen
CALL FUNCTION u2018ISR_SPECIAL_DATA_TO_STRUCu2019
EXPORTING
it_special_data = special_data
CHANGING
cs_data = ls_master_data.
* weitere Verarbeitungsschritte
* u2026
* Zurückfüllen der speziellen Antragsdaten
CALL FUNCTION 'ISR_STRUC_TO_SPECIAL_DATAu2019
EXPORTING
is_data = ls_master_data
CHANGING
ct_special_data = special_data.

Example 2: Local structure


* Stammdaten Innenauftrag:
DATA: BEGIN OF mydata,
order TYPE aufnr,
description(40) TYPE c,
END OF mydata.
* spezielle Antragsdaten in Struktur füllen
CALL FUNCTION u2018ISR_SPECIAL_DATA_TO_STRUCu2019
EXPORTING
it_special_data = special_data
CHANGING
cs_data = mydata.
* weitere Verarbeitungsschritte
* u2026
* Zurückfüllen der speziellen Antragsdaten
CALL FUNCTION 'ISR_STRUC_TO_SPECIAL_DATAu2019
EXPORTING
is_data = mydata
CHANGING
ct_special_data = special_data.

Regards,

Kiran