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

Customer material info record upload program (BDC)

Former Member
0 Likes
2,288

Dear All ,

We have developed a BDC program for customer material info records upload in transaction (VD51) , in the program we have issues , technical consultant tried but not able to come up with solution.

Main problem:

1.  Not able to handle duplicate records coming in the upload  file i.e if there are any duplicate program should remove or should give some error  message so that user can rectify the errors in the file and uploaded again

2. Customer-material  relationship combination -> one to many combination not able to handle i.e one customer can have many number of material as a info records.

Also please find the attached text data for CMIR

Looking for your suggestion or inputs on this.

Note: Do we have any standard BAPI  or BDC

Regards

Venkat

3 REPLIES 3
Read only

former_member585060
Active Contributor
0 Likes
1,230

Hi,

     Check this function module, RV_CUSTOMER_MATERIAL_UPDATE_C, it intern calls RV_CUSTOMER_MATERIAL_UPDATE. Place break point in the first function module and try to create manually one entry in VD51 transaction, if it stops at the break point, verify what all entries are maintained in XKNMT, YKNMT and LT_CATALOG. So based the entries you fill the entries from the file to this function and execute.

I think there no standard BAPI available for VD51, only

BAPI_CUSTMATINFO_GETDETAILM

BAPI_CUSTMATINFO_GETLIST are available.

So try out with RV_CUSTOMER_MATERIAL_UPDATE.

Thanks & Regards

Bala Krishna

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,230

.Don't use (or suggest using) any update task FM, those FM are used by standard SAP program after checking data and ususally not alone (e.g. XXX_UPDATE and XXX_UPDATE_DOCUMENT) - those are usually nothing more than open-sql statements. (not better than direct update database...)

So use BAPI (i don't think there is one), IDoc, or BDC (or standard programs that generate BDC)

Read Note 1135984 - Conditions cannot be created with BAPI_PRICES_CONDITIONS which suggests report RV14BTCI to create BDC

Regards,

Raymond

Read only

Former Member
0 Likes
1,230

Hello,

I'm looking for a solution like this ? Could you share a bit ?

I also found a OSS note 626931 that gives some insight about BTCI-solution for this object.

However, I'd rather have an IDoc solution but can't find any.

Regards