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

Update Vendors using Idoc.

francisco_asensio
Participant
0 Likes
1,084

Hi all,

We have two different SAP systems (call it system A and system B). The vendor data is created and updated in system A and CREMAS idoc is generated to pass the data to system B.

The problem come since the system B have some fields as display (the update has to be only possible from system A) that in system A are mandatory. The funtion that process the Idoc finally use a call transaction to XK02 so the fields are not updated in system B with the info sent from system A.

Could you help me to find some workarround to solve this situation?

Thanks in advance.

Regards.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,043

Hi!

Are the fields in system B really neccessary to be read-only? Seems it will be easier to enable them modifiable.

And to prevent the users from update vendors in system B, you can withdraw their rights from transaction XK02.

And this way only the automation will update the vendor main data.

Regards

Tamá

Hi!

Are the fields in system B really neccessary to be read-only? Seems it will be easier to enable them modifiable.

And to prevent the users from update vendors in system B, you can withdraw their rights from transaction XK02.

And this way only the automation will update the vendor main data.

Regards

Tamá

7 REPLIES 7
Read only

Former Member
0 Likes
1,044

Hi!

Are the fields in system B really neccessary to be read-only? Seems it will be easier to enable them modifiable.

And to prevent the users from update vendors in system B, you can withdraw their rights from transaction XK02.

And this way only the automation will update the vendor main data.

Regards

Tamá

Read only

francisco_asensio
Participant
0 Likes
1,043

Hi Tamas.

The Fields in system B the fields are in display only by Business requirement, so I can not changue it to modify and manage the autorithations.

Thanks you.

Regards,

Read only

0 Likes
1,043

Hi!

As everything in SAP these settings are stored in tables also. All you need to do is to find the table, which contains the screen layout of the XK02 transaction.

You have to put the idoc into a job

1. step: modify the screen layout to enable the read-only fields

2. step: idoc modify

3. step: modify back to the original layout

If these thisngs cannot be fit in the same job, you might create 3 different jobs with 3 different starting times (f.e: 22:00, 22:10, 22:20)

The screen layout can be found in customizing - SPRO transaction - Financial accounting - Accounts receivable and accounts payable - Vendor accounts - Master data - Preparations for master data - the first 3 entries here.

You might use the ST05 transaction to trace, which tables are modified here.

Best wishes

Tamá

Read only

0 Likes
1,043

Hi Tamas,

Thanks for your answer.

The problems is that I can not schedul a Job since I do not know when the Idoc will come. I would be send when a modification o creation would be made in system A.

And the posibility to change the configuration is not allowed for the Configuration team (They will do not like If I changed it by program code).

Regards,

Read only

former_member404244
Active Contributor
0 Likes
1,043

hi,

Try to do like this ,IN SYSTEM B make the fields as modifiable and then send the idoc,it will update the fields.

Regards,

nagaraj

Read only

0 Likes
1,043

Hi,

The fields can not be changed to modified. The modification only can came by Idoc.

I already have tried to concince the Configuration team to change it but It was imposible.

Regards,

Read only

0 Likes
1,043

Hi all.

Finally I will change the funtion to process the Idoc and try to update the fields using a Function Module. (Now I only have to found one to allow me to do that)

Thanks all for yoor help.

Regards