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

ME12 bdc issue

Former Member
0 Likes
1,193

Hi,

I am using me12 BDC prog to change the price and in my case i cant able to change the valied on date and amount at same time.ican able to chance only the amount.but i want to change both the amount and valied on date also.pls help to solve the issue. the problem is in the below code.

perform bdc_dynpro using 'SAPMV13A' '0201'.

perform bdc_field using 'BDC_CURSOR'

'KONP-KBETR(01)'.

perform bdc_field using 'BDC_CURSOR'

'RV13A-DATAB'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'KONP-KONWA(01)' I_UPLOAD-WAERS.

  • tt_A905-konwa.

perform bdc_field using 'KONP-KBETR(01)' i_upload-netpr.

  • ' 8888.00'.

perform bdc_field using 'RV13A-DATAB' I_UPLOAD-ERDAT.

  • '12.11.2006'.

perform bdc_field using 'BDC_OKCODE'

'=SICH'.

CALL TRANSACTION 'ME12' USING BDCDATA MODE 'N' update 'S'.

Pls help to solve the issue.

Thanks,

Rajendra.

Hi,

I am using me12 BDC prog to change the price and in my case i cant able to change the valied on date and amount at same time.ican able to chance only the amount.but i want to change both the amount and valied on date also.pls help to solve the issue. the problem is in the below code.

perform bdc_dynpro using 'SAPMV13A' '0201'.

perform bdc_field using 'BDC_CURSOR'

'KONP-KBETR(01)'.

perform bdc_field using 'BDC_CURSOR'

'RV13A-DATAB'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'KONP-KONWA(01)' I_UPLOAD-WAERS.

  • tt_A905-konwa.

perform bdc_field using 'KONP-KBETR(01)' i_upload-netpr.

  • ' 8888.00'.

perform bdc_field using 'RV13A-DATAB' I_UPLOAD-ERDAT.

  • '12.11.2006'.

perform bdc_field using 'BDC_OKCODE'

'=SICH'.

CALL TRANSACTION 'ME12' USING BDCDATA MODE 'N' update 'S'.

Pls help to solve the issue.

Thanks,

Rajendra.

5 REPLIES 5
Read only

Former Member
0 Likes
831

Hi,

write this code,

Data: S_date type SY-DATUM.

L_DATE(10) type c,

perform bdc_dynpro using 'SAPMV13A' '0201'.

perform bdc_field using 'BDC_CURSOR'

'KONP-KBETR(01)'.

perform bdc_field using 'BDC_CURSOR'

'RV13A-DATAB'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'KONP-KONWA(01)' I_UPLOAD-WAERS.

  • tt_A905-konwa.

perform bdc_field using 'KONP-KBETR(01)' i_upload-netpr.

  • ' 8888.00'.

<b>MOVE I_UPLOAD-ERDAT to S_date.

Write S_date to L_DATE.</b>

perform bdc_field using 'RV13A-DATAB' <b>L_DATE.</b>

  • '12.11.2006'.

perform bdc_field using 'BDC_OKCODE'

'=SICH'.

CALL TRANSACTION 'ME12' USING BDCDATA MODE 'N' update 'S'.

Regards

Sudheer

Read only

0 Likes
831

Hi Sudheer,

I tryed by using as you ask me change also but still the same problem i couldt able to change the amount,and validate on date at a time.but if i do only the amount is possible.so what will be the solution to solve the issue pls help it.

Thanks,

Rajendra.

Read only

Former Member
0 Likes
831

Go to su3 and see the user Date format and then use date format FM

I think it will work techinal wise but functional whether it will accept only current date or document date please check out

Read only

0 Likes
831

Hi Babu,

The date is in userformet only,But the functional consultant asking me that the price change date (validdate on ) also modify.means the change price will be effective on the new updated date not the current date .so how to do that.

Thanks,

Rajendra.

Read only

Former Member
0 Likes
831

solved