2007 Aug 20 11:50 AM
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
2007 Aug 20 11:54 AM
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>
2007 Aug 20 12:05 PM
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
2007 Aug 20 12:11 PM
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
2007 Aug 20 12:17 PM
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
2007 Aug 20 12:25 PM
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
2007 Aug 20 11:55 AM
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