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

Do Commit work required in BDC for Mode 'N'

Former Member
0 Likes
1,587

Hi ,

I have done a program which fetches data from Non SAP through Excel to SAP .

I have done this in BDC Call Transaction, which insert data if new entry presents in Excel else it will modify.

I have recorded the Tcode PA30 and did program which fetches data and upload in Tcode Pa30 as well Pa000 table For both the mode 'A' and 'N'.

When i checked by executing the report the data was not updated in Table in mode 'N' but it was updated in mode 'A'..

Could anyone assyst me how to resolve this issue?............Kindly let me know how commit work works in this functionality.

Do Commit work is required to run the job in background?

Thanks,

Priya

7 REPLIES 7
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,330

So you didn't consider FM like HR_MAINTAIN_MASTERDATA or HR_INFOTYPE_OPERATION (and BAPI_EMPLOYEE_ENQUEUE, HR_READ_INFOTYPE of course)

Did you record transaction simulating background mode, else try to execute in the BDC in mode 'E'.

Any commit executed out of the transaction itself won't have any effect....

Regards,

Raymond

Read only

former_member196331
Active Contributor
0 Likes
1,330

hi,

As per my knowledge. If the record is success in A and Not Success In N. Not possible.

If it's works definitely  it will be work in both modes.

You said In N mode not working. Have u checked Sy-subrc eq 0.

And have u tried to capture bdc message log.

Or Are you getting No batch input like this message.

Read only

0 Likes
1,330

Hi

I checked Sy-subrc and captured the BDC message log and displayed the same in ALV for both the mode. But Data is not updating in Table for background Mode.

Thanks,

Priya.

Read only

0 Likes
1,330

Dear madam,

May i know what is the message. You are getting in the Message log. for Failed One.

Read only

0 Likes
1,330

Hi Sir ,

Please find the message that i got in Message Log.

Read only

0 Likes
1,330

Hi,

Now U have to check it in Google What are the Reasons behind it. Features p0002 has not been activated yet. You can find the Solutions. May be functional people know more than us.

Some configuration is missing. or Some field is mandatory. So many reasons. i Can not help u Why feature p0002  has not been Activated yet. But one thing If You solve all those errors u can able to achieve it.

But one thing did not understood. You said IN A mode it is working fine.

In both modes have u given same inputs.

Do one small thing for me. I never worked on pa30 ,Functionality i dont know.

Which entry u added in A mode , Delete that one if possible.

Then add the same entry with same properties in N mode. Then u can get an idea.

Whether Mode problem or Whether u need commit After Call transaction.

I hope you are getting this many errors , that's the reason not able to add.

I checked the same error in google. N number of posts are available Checked it.

Else.

Try to post Same entry manually with Excel sheet Values, then You can know where is the problem.

Read only

0 Likes
1,330

Hi

These messages are a result of screen configuration.

Mode A : When you execute in Mode A, these messages would come up as warning messages and get passed by, as you press enter. Thus, program executes successfully.

Mode N : When you execute in Mode N, then these messages do not get bypassed and behave as errors. Thus, program does not proceed and hence the errors.

Solution: Check the screen configuration and your BDC recording.

               1. Are they in sync?

               2. Was screen changed after your recording?

               3. Is the development and testing environment same?

Try to do the recording again with current screen configuration.

Commit work: It is always advisable to add commit work for BDC, irrespective of the mode.

Thanks and Regards,

Sheily Babel.