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

Call Transaction

Former Member
0 Likes
452

Hi All,

I am changing the value in a screen field 'Billing Block' using T Code VA02

See some part of the code below:

PERFORM bdc_dynpro USING 'SAPMV45A' '0102'.

PERFORM bdc_field USING 'BDC_CURSOR' 'VBAK-VBELN'.

PERFORM bdc_field USING 'BDC_OKCODE' '=ENT2'.

PERFORM bdc_field USING 'VBAK-VBELN' x_vbeln.

PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.

PERFORM bdc_field USING 'BDC_OKCODE' '=SICH'.

PERFORM bdc_field USING 'BDC_CURSOR' 'VBAK-FAKSK'.

PERFORM bdc_field USING 'VBAK-FAKSK' init_faksk.

(init_faksk will have some value)

call transaction 'VA02' using bdcdata mode 'A' messages into messtab update 'S'

When program is executed controle going to first screen of VA02 with vbeln but controle is not going to second screen instead it is giving a Error message that 'Sales order x_vbeln is being processed by <my user id>'.

But no body is processing the same sales order number.

I checked in SM12 also there are no lock entries

Please help.

Thanks in Advance,

Subhani.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
430

Hi subhani,

must be database updation is taking time or it is qued.

try with some other sales order number.

regards,

krishna.

Hi All,

I am changing the value in a screen field 'Billing Block' using T Code VA02

See some part of the code below:

PERFORM bdc_dynpro USING 'SAPMV45A' '0102'.

PERFORM bdc_field USING 'BDC_CURSOR' 'VBAK-VBELN'.

PERFORM bdc_field USING 'BDC_OKCODE' '=ENT2'.

PERFORM bdc_field USING 'VBAK-VBELN' x_vbeln.

PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.

PERFORM bdc_field USING 'BDC_OKCODE' '=SICH'.

PERFORM bdc_field USING 'BDC_CURSOR' 'VBAK-FAKSK'.

PERFORM bdc_field USING 'VBAK-FAKSK' init_faksk.

(init_faksk will have some value)

call transaction 'VA02' using bdcdata mode 'A' messages into messtab update 'S'

When program is executed controle going to first screen of VA02 with vbeln but controle is not going to second screen instead it is giving a Error message that 'Sales order x_vbeln is being processed by <my user id>'.

But no body is processing the same sales order number.

I checked in SM12 also there are no lock entries

Please help.

Thanks in Advance,

Subhani.

2 REPLIES 2
Read only

Former Member
0 Likes
430

hi,

Logoff and then relogin and run the same ...

Regards,

Santosh

Read only

Former Member
0 Likes
431

Hi subhani,

must be database updation is taking time or it is qued.

try with some other sales order number.

regards,

krishna.