Application Development and Automation 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: 
Read only

idoc's

Former Member
0 Likes
1,055

Hi all,

I am working on idoc's where if a condition is satisfied i want to blank out the document number(docnum) for a control record.How can i frame a sentence to blankout the document number for control record.

Regards,

Hema

Hi all,

I am working on idoc's where if a condition is satisfied i want to blank out the document number(docnum) for a control record.How can i frame a sentence to blankout the document number for control record.

Regards,

Hema

6 REPLIES 6
Read only

varma_narayana
Active Contributor
0 Likes
1,029

Hi..

Data : IT_EDIDC TYPE TABLE OF EDIDC,

WA_EDIDC TYPE EDIDC.

IF <Cond>.

Clear wa_edidc-docnum.

Modify it_edidc from wa

transporting docnum where docnum ne = wa_edidc-docnum.

ENDIF.

<b>Reward if Helpful</b>

Read only

0 Likes
1,029

Hi,

If I want to blank out the doc number for all the records in control record then how can i frame the statement?

Regards,

Hema

Read only

0 Likes
1,029

Hi,

There will be only one control record for an IDoc and it will contain only one docnum. So you can clear only that.

Can you please tell, why you need to clear the docnum. It is internally generated and for what purpose you want to clear it.

Regards,

Yogesh

Read only

0 Likes
1,029

Hi,

I have created an internal table t_idoc_control like edidc.When a particular condition is satisfied i want to delete the doc number for all the records in this table t_idoc_control.How can i frame a sentence for this?

Regards,

Hema

Read only

0 Likes
1,029

Hi,

You can use the same code as Narayan has suggested. But in modify statement you can avoid using where condition. But this will change all the records in the internal table no matter how many or what data.

Regards,

Yogesh

Read only

Former Member
0 Likes
1,029

Hi,

if u want to blank out the docnum for that u have to use edidc transparent table for that.

Rewards points if it is useful