cancel
Showing results for 
Search instead for 
Did you mean: 

how to do the deletion and addition of prt (equipment,document) in cewb using bdc

Former Member
0 Kudos

Hi,

How to do the  deletion and addition of PRT ( equipment, Document) in CEWB ?

The user wants to deletion of PRTs in mass and at the same time user wants to addition of PRTs in mass in cewb. For this my coleage has developed a BDC : ZPRTCHANGE. while uploading in this BDC,The folowing error is showing.

Now i am getting confusion that in cewb only we can do mass changes then why my coleage has given bdc in cewb for doing the addition and deletion of prt in cewb. please clarify me. if doing the bdc is correct. then how to write the BDC to do the deletion and addition of PRT in cewb. please give me the steps ? And in BDC Note pad he has considered the change number and routing group, document number, document type, document part, version, document revision. please guide me the steps to consider while writing BDC without errors. i am attaching the BDC Delition and addition note pad also.please guide me.

Regards,

Mastan.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Mastan,

BDC for CEWB, I don't understand why it had been designed in this way. I feel your colleague hasn't understood the purpose of CEWB.

You must have come across numerous threads regarding CEWB. One I mention here,

http://scn.sap.com/community/erp/manufacturing-pp/blog/2013/07/11/cewb--engineering-workbench.

If CEWB doesn't sever your purpose then use BDC/ eCATT/ LSMW for changes in the data.

As far as functional consultants are concerned eCATT & LSMW are the best options.

Few informative links for LSMW are here,

Steps to create a simple LSMW using batch input recording - ABAP Development - SCN Wiki

https://scn.sap.com/thread/68618

LSMW Steps in Detail - ABAP Development - SCN Wiki

Hope this helps

Regards

Mangesh S

markus_deuter
Active Participant
0 Kudos

Hi Mastan,

I'm not shure to understand your situation, so let me try to sum this up. You work with CEWB for mass data changes (to change routings, sequences, activities ?). Ok. One of your colleagues has written a BDC (batch input ?), using CEWB, right ? Why are you using CEWB for this ? Why not CA02 to change routings ? Ok ... this will have some reasons. The runtime behaviour can be better to run BDC with transaction CA02, I think.

The error message seems to say, that the BDC process is disturbed in any way and cannot access to the document key fields. There are more possibillities for this problems:

- the routing is completly locked (another user access, status ?)

- the routing is already set for deletion

- the routing has no document which is used as PRT

- the document is locked ... but I'm not sure on this. Working on PRTs don't lock the document, too.

- you have an invalid change number (or a earlier change date in the routing than your ECNs valid from date) .. so the screen sequences can differ from the neccessary BDC fields.

- the BDC process is disturbed by a dialog, e.g "description for the change", if you have set

  "Generate dialog" while creating you change number in CC01/CC02. ECNs should not generate dialog boxes, if you don't need this feature.

In CEWB/CA02 you have to use a lot of table controls to navigavte with BDC. This is not easy and not very save. A lot of possibilities can disturb this use and the data change process.Analizing ca last hours, days and weeks .

Im not very familiar with BDC so I cant support you on this tool ... I'm always using eCATT for mass data changes. I think this is more comfortable.

If you have these changes continously, it is bestter to develop an own Z-report to do this by uploading the PRT data by using these FMs:

CF_RF_FHM_MASTER_INSERT

CF_RF_FHM_MASTER_READ

CF_RF_FHM_MASTER_UPDATE

CF_RF_FHM_MASTER_DELETE

Pls rate if this was helpful ....

Regards,

Markus

P.S. Happy new year !