09-26-2010 3:29 PM
Hi All,
I'm trying to update a custom field bill type in table ERCH.I could not find any function for ERCH table and hence i am using enqueue dequeue with update statement.During debugging,the field BELNR(bill doc) is seen with a value for bill document but if at that moment i take that bill doc and put in table ERCH,it shows no entries found.Because of this reason,sy-subrc is not zero and bill type does not get updated.Any suggestions here are welcome.
Thanks,
Shreeraj
09-27-2010 8:25 AM
Hi Shreeraj,
U can use the exit EXIT_REAARCH_ANALYSE_HEAD_001 for populating the custom field in table ERCH table.
Or for direct update u can use ISU_DB_ERCHC_UPDATE_BILL.
U can also search FM using ISU_DB_ERCH*
Regards,
Amitava
09-27-2010 12:55 PM
Thanks for your replies,
I need to update the custom field bill type in table ERCH depending upon the bill transaction( if bill transaction is periodic,bill type will be updated as P and so on for other cases)
I am implementing a BADI ISU_DEF_BILL_PERIOD and i have used case statements(when abrvorg is P,bill type is P). While debugging i saw that the importing parameter bill document is generated but if i enter the same bill document number at that point in time in table ERCH, it shows no entries found. Thus sy-subrc is retrieved as not zero and hence the custom field bill type does not get updated.
I would like to know how do i go about this requirement since it seems that the bill document entry is made in table ERCH outside this BADI.How do i update the bill type in table ERCH based on the billing transaction?
Thanks,
Shreeraj
09-27-2010 1:57 PM
Hi Sreeraj,
U just populate the ERCH structure or internal table. At the time of posting it will update that fld.
Regards,
Amitava
09-27-2010 5:04 PM
I tried to use x_new_billing_doc-erch-zbill_type = 'P' but while doing syntax check it says that it cannot be changed. Which structure should i use so that the value gets reflected.
Thanks,
Shreeraj
Edited by: shreeraj pawar on Sep 27, 2010 6:05 PM
09-27-2010 8:42 AM