12-16-2014 3:54 PM
Hi Expert,
Does anyone help me about function module which updates the table EDISCOBJH?
It's very urgent.I need to update the DISCSTATE in the table.
Your help is very much appriciated.
Thanks,
Mandira
12-16-2014 6:40 PM
Hi, have you tried with the where-used function on table EDISCOBJH?
There are not too many function modules and programs using this table. Have you tried any?
12-17-2014 8:44 AM
Hi Danny,
I have tried where-used function of the table EDISCOBJH.I get one FM which updates disconnection tables
ISU_DB_EDCN_UPDATE.But this is not related about my requirement.It updates EDISCDOC table.
Please suggest.
Thanks in advance.
12-17-2014 3:24 PM
I looked at ISU_DB_EDCN_UPDATE and it has a table parameter named XT_EDISCOBJH_UPDATE:
By looking at the code, XT_EDISCOBJH_UPDATE is used to update the table EDISCOBJH, including field DISCSTATE.
I successfully updated EDISCOBJH-DISCSTATE with it.
Can you give it a try?
12-17-2014 4:34 PM
Hi Danny,
Could you please tell me what parameters are you passing??I gave a try but it gives dump because
I passed X_UPD_MODE = 'X' as it is mandatory field.
Short text of error message:
Internal error: Change mode X not supported in function module ISU_DB_ED
CN_UPDATE
Long text of error message:
Diagnosis
Internal program error: The specified function module was called up
by a change mode (Feld X_UPS_MODE) which is not supported by it.
Thanks in advance.
12-17-2014 4:52 PM
Parameter X_UPD_MODE is referenced to structure REGEN-UPD_MODE, which refers to domain DAMODUS, which has the following valid values:
D | Delete data |
I | Insert data |
M | Modify (as ABAP MODIFY) |
U | Change data |
Here are the parameters I used:
X_EDISCDOC-MANDT = Mandant number
X_DISCNO = Record ID from EDISCDOC / EDISCOBJH
X_UPD_MODE = 'U'
I added one entry in:
XT_EDISCOBJH_UPDATE-MANDT = Mandant number
XT_EDISCOBJH_UPDATE-DISCNO = Same as X_DISCNO
XT_EDISCOBJH_UPDATE-DISCSTATE = New value
12-24-2014 2:42 PM
Thanks Danny for your help.
It is working fine.But I have to pass also in XT_EDISCOBJH_OLD.
Thanks,
Mandira