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

Output immediately

Former Member
0 Likes
529

Hi,

I have one report, that calls VA03 with batch-input and and try to send the order for spool and not print immediately.

It work in DEV client and not in Production client.

I already saw my user profile - Own data, and both clients are 'X' in Output immediately.

My ABAP code is :

t-code = 'VA03'.

REFRESH bdcdata.

PERFORM bdc_dynpro USING 'SAPMV45A' '0102'.

PERFORM bdc_field USING 'BDC_OKCODE' 'DRCK'.

PERFORM bdc_field USING 'VBAK-VBELN' tab-vbeln.

PERFORM bdc_dynpro USING 'SAPLVMSG' '0200'.

PERFORM bdc_field USING 'BDC_OKCODE' '=OPTS'.

PERFORM bdc_dynpro USING 'SAPLVMSG' '0100'.

PERFORM bdc_field USING 'BDC_OKCODE' '=STAR'.

PERFORM bdc_field USING 'NAST-LDEST' p_pdest.

<b> PERFORM bdc_field USING 'NAST-DIMME' ''.</b>

PERFORM bdc_field USING 'NAST-TDRECEIVER' sy-uname.

PERFORM bdc_dynpro USING 'SAPLVMSG' '0200'.

PERFORM bdc_field USING 'BDC_CURSOR' 'NAST-KSCHL(01)'.

PERFORM bdc_field USING 'BDC_OKCODE' 'PRNT'.

PERFORM bdc_transaction USING t-code.

All comments and ideas are welcome.

Thanks in adavce.

Ana

Hi,

I have one report, that calls VA03 with batch-input and and try to send the order for spool and not print immediately.

It work in DEV client and not in Production client.

I already saw my user profile - Own data, and both clients are 'X' in Output immediately.

My ABAP code is :

t-code = 'VA03'.

REFRESH bdcdata.

PERFORM bdc_dynpro USING 'SAPMV45A' '0102'.

PERFORM bdc_field USING 'BDC_OKCODE' 'DRCK'.

PERFORM bdc_field USING 'VBAK-VBELN' tab-vbeln.

PERFORM bdc_dynpro USING 'SAPLVMSG' '0200'.

PERFORM bdc_field USING 'BDC_OKCODE' '=OPTS'.

PERFORM bdc_dynpro USING 'SAPLVMSG' '0100'.

PERFORM bdc_field USING 'BDC_OKCODE' '=STAR'.

PERFORM bdc_field USING 'NAST-LDEST' p_pdest.

<b> PERFORM bdc_field USING 'NAST-DIMME' ''.</b>

PERFORM bdc_field USING 'NAST-TDRECEIVER' sy-uname.

PERFORM bdc_dynpro USING 'SAPLVMSG' '0200'.

PERFORM bdc_field USING 'BDC_CURSOR' 'NAST-KSCHL(01)'.

PERFORM bdc_field USING 'BDC_OKCODE' 'PRNT'.

PERFORM bdc_transaction USING t-code.

All comments and ideas are welcome.

Thanks in adavce.

Ana

2 REPLIES 2
Read only

Former Member
0 Likes
466

Both should output immediately then. Do you have a printer assinged to your profile in both clients?

Read only

Former Member
0 Likes
466

Yes, I have Output Device in both LOCL