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

Is this possible?

Former Member
0 Likes
1,197

Hello all,

Can I be able to update the accounting view (standard price) of a material by processing an IDOC using RBDAPP01?

IDOC is published by middleware using a flat file.

Please suggest.

Thanks,

Message was edited by: Naren Somen

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,041

Hi Somen,

You can use IDoc type <b>MATERIALVALUATION_PRICECHANG01</b>, message type <b>MATERIALVALUATION_PRICECHANGE</b> and process code <b>BAPI</b> for material price change.

Hope this will help.

Regards,

Ferry Lianto

Hello all,

Can I be able to update the accounting view (standard price) of a material by processing an IDOC using RBDAPP01?

IDOC is published by middleware using a flat file.

Please suggest.

Thanks,

Message was edited by: Naren Somen

7 REPLIES 7
Read only

Former Member
0 Likes
1,041

yes, you should be.

Read only

0 Likes
1,041

Thanks Ajay. Which IDOC type should I use to acheive this? Is it MATMAS04. I manually created an IDOC of this type using we30 filling just 4 segment fields which are material number, desc, standard price and plant. I got an error since I had not maintained the recepient and sender in the control segment of this idoc type. In real scenatio, the middleware will do the mapping and will create an IDOC with this data which comes in a flat file. I am wondering if the flat file doesnt have the recepient and sender info, what info and from where will middleware get this and publish an idoc?

My question is Should the flat file contain the sender and recepient information? Please suggest.

Thanks,

Read only

Former Member
0 Likes
1,041

Hi Somen,

The flat file should contain the sender and receiver systems, direction (inbound) and message type information. All of these information should be provided in IDoc Record Control (EDIDC) section. SAP will then use this information to validate and process IDoc(s).

The detail data should be populated in IDoc Record Data (EDIDD) section.

Again, you need to provide the above detail mapping for the sender system.

To upload the flat file and generate IDoc(s), you can use standard program RSEINB00. If you setup the partner profile to be processed by background job then you can use standard program RBDAPP01 to post IDoc(s) to application. Otherwise, the IDoc will be posted automatically when you upload the file thru above mentioned program.

Hope this will help.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
1,041

Hello Somen,

Your file should contain sender, receiver message type.

try this out if it helps.

You can run the program RseinB00 to trigger inbound processing of file. or you can run program startrfc from operating system. These programs will take your inbound file and create IDOC in SAP database.

In partner profile configuration you can select Trigger by background program or trigger immediately. If you have selected trigger immediately the RBDAPP01 program will run automatically else if you have selected Trigger by background in WE20(partner profile)then you have to run the program RBDAPP01 manually.

Hope this cud be of some help.

Regards,

Amit.

Plese reward any help.

Message was edited by: amit bhadauria

Read only

christian_wohlfahrt
Active Contributor
0 Likes
1,041

Hi,

standard price can't be changed with material master (MM02), if you have already some values. For this transaction MR21 should be used.

I don't know any IDOC doing this, but there is an Bapi BAPI_MATVAL_PRICE_CHANGE which can do the change.

Also business object 2027 can have something to do with it, I haven't checked this further.

Regards,

Christian

Read only

0 Likes
1,041

Hello all,

Thanks for all your replies. The replies are very helpful.

As I said, I have to update the standard prices of the material using IDOC. Which IDOC type is best suited for this.

And I am not creating the IDOCS using RSEINB00. The middleware will use the flat file and will create IDOCS. We have to process them using RBDAPP01. Which IDOC type is best suited for this in message type MATMAS?

Note:

We follow this approach.

<b>All interfaces inbound to SAP should be accomplished via IDoc and IDoc function module.</b>

Thanks,

Message was edited by: Somen

Read only

Former Member
0 Likes
1,042

Hi Somen,

You can use IDoc type <b>MATERIALVALUATION_PRICECHANG01</b>, message type <b>MATERIALVALUATION_PRICECHANGE</b> and process code <b>BAPI</b> for material price change.

Hope this will help.

Regards,

Ferry Lianto