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 'VA02'

Former Member
0 Likes
1,589

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 first screen of VA02 is coming 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.

Please help.

Thanks in Advance,

Subhani.

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 first screen of VA02 is coming 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.

Please help.

Thanks in Advance,

Subhani.

5 REPLIES 5
Read only

Former Member
0 Likes
1,042

Log off / log on and check via SM12 if the lock is still there. If so, then you can remove via SM12.

Read only

venkat_o
Active Contributor
0 Likes
1,042

Check SM12 t.code and delete the records for this transaction under ur name. Regards, Venkat.O

Read only

Former Member
0 Likes
1,042

Hi,

I checked in SM12 and there are no lock entries. I am getting the same problem again.

Regards,

Subhani.

Read only

Former Member
0 Likes
1,042

Check transaction SM13 if there is a pending update task under your user id for the mentioned sales order.

Read only

Former Member
0 Likes
1,042

hi Subhani,

as i metioned in your another question ( copy of this),

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

try with some other sales order number.

regards,

krishna.