cancel
Showing results for 
Search instead for 
Did you mean: 

Updating Employee record in Mobile bridge

Former Member
0 Kudos

Hello Experts,

I am trying to update the employee record flowing from CRM to CDB. I am using the BADI method USER_EXIT_DOWNLOAD_BP_MAIN for the same. Inside this I am successful in updating the structure of the employee_write. I can see the same in SMW01 with the Z fields containing the correct values. However when I go into the SMOMITABT table I cannot see this data for that employee record.

Any pointers where I could be going wrong?

Pradeep

View Entire Topic
Former Member
0 Kudos

Hello Pradeep,

Which parameter you are changing inside the method USER_EXIT_DOWNLOAD_BP_MAIN:

Is it

EMP_BDOC of type /1CRMG0/EMPLOYEE_WRITE right?

Regards,

Shanthala.

Former Member
0 Kudos

Yes, I am using the EMP_BDOC. Any hints?

former_member192750
Active Contributor
0 Kudos

You might not be setting the SENDBITS correctly - every BDoc segment has SENDBITS which are set to which fields in the segment carry relevant content to be updated to the tables.

Hence unless the SENDBITS are set correctly, having the proper values in the BDoc do not guarantee the table being updated. Check the existing mobile bridge code to get the SENDBITS setting code or search this forum - there were a couple of discussions in the past...

Former Member
0 Kudos

Hello Ankan,

The SENDBITS have been set correctly. I am able to sucessfully enhance other objects like SRV_WRITE, IBASE and SRVCNF_WRITE. Even in the case of the EMPLOYEE_WRITE, I can see the Z field values updated on the processed Bdoc in SMW01. The issue is it does not update the SMOMITABT table and hence does not flow to Mobile.

Regards,

Pradeep

former_member192750
Active Contributor
0 Kudos

Pradeep, seeing the Z fields values in the BDoc in SMW01 is NO guarantee that the SENDBITS have been set correctly

The most probable cause for the symptom you report is improper SENDBITS.

Go to TX: SM37 and execute the FM: SMO_SNDBITS_GETX with the following values:

STRUCTURENAME: EMPLOYEE

SNDBITS: <<VALUE YOU SEE IN THE SNDBITS FIELD IN SMW01 FOR THE EMPLOYEE SEGMENT>>

FIELDNAME:

DDIC:

BDOCNAME: EMPLOYEE_WRITE

The result in the SFIELD table should contain all the fields that Middleware would update in SMOMITABT - check if this lists the Z fields as well...

Regards,

Ankan

Former Member
0 Kudos

Hi,

Ran the SENDBITS_GETX with the sendbits that were obtained from the SETX method in the Badi. The Z fields are not part of it.

Below are the Sendbits before and after the SETX method. As you can see, there is an "E" added into the sendbits.

Before:

0C17EE20877EFF78120200000000000000000000000000000000000000000000

After:

0C17EE20877EFF78120200E00000000000000000000000000000000000000000

Is there something wrong in this?

Pradeep

Former Member
0 Kudos

Its fixed now. Problem was I was not passing DDIC parameter as blank. If i pass DDIC as 'X' or do not include it, then the positions differ in the sendbits and hence will not write to the table.