Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

function module to update disconnection state in the table EDISCOBJH

Former Member
0 Kudos

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

6 REPLIES 6

danny_lacerte2
Participant
0 Kudos

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?

0 Kudos

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.

0 Kudos

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?

0 Kudos

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.

0 Kudos

Parameter X_UPD_MODE is referenced to structure REGEN-UPD_MODE, which refers to domain DAMODUS, which has the following valid values:

DDelete data
IInsert data
MModify (as ABAP MODIFY)
UChange 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

0 Kudos

Thanks Danny for your help.

It is working fine.But I have to pass also in XT_EDISCOBJH_OLD.

Thanks,

Mandira