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

problems with a call transaction

Former Member
0 Likes
1,042

Hi, I'm having some problems with a call transaction and I cannot understand why. I put A in the mode, and I am seeing the dynpros and I am pressing enter it works perfectly but when I use mode N it tells me that there is not information for one of the dynpros and it doesn't work. Does anybody know the problem and how to solve it??

Thanks in advance

Hi, I'm having some problems with a call transaction and I cannot understand why. I put A in the mode, and I am seeing the dynpros and I am pressing enter it works perfectly but when I use mode N it tells me that there is not information for one of the dynpros and it doesn't work. Does anybody know the problem and how to solve it??

Thanks in advance

7 REPLIES 7
Read only

Former Member
0 Likes
987

some of the screens will not capture in foreground and please record again properly and see again.

if possible try to use BAPI Function module if it is available.

Read only

Former Member
0 Likes
987

Hi..

While processing with mode 'A' r u giving any inputs manually??

Regards,

kamal

Read only

Former Member
0 Likes
987

No, I just press enter. There is my problem, I don't understand why in that way works and not in the other one.

Read only

0 Likes
987

record the screen pressing enter button multiple times and see what will happen.

Read only

0 Likes
987

Hi..

can u let me know for which tcode u r doing and if possible ur code and the screen for which u r getting error?

Read only

Former Member
0 Likes
987

Hi,

Chek this:

1. Tcode u r using should not be an Enjoy Tcode like Me21N. (N at last), bcoz this does not support BDC properly, in this case use BAPIs.

if not above case then,

2. Do ur recording properly, or if any screen is missing then fill data for same properly

if want more clarification tell me tcode and if poss send codes

Jogdand M B

Read only

Former Member
0 Likes
987

Hi,

First of all thank you very much for your time.

I am using FB05 and the problem is in dynpro SAPLKACB 0002, and it says that batch input data doesn't exist. Here is the code, maybe you can see what is happening

LOOP AT t_resumen WHERE belnr = t_batch-belnr AND

( contador = 3 OR contador = 4 or CONTADOR = 5 ).

READ TABLE t_clave WITH KEY belnr = t_resumen-belnr.

d_clave = t_clave-bschl.

i = i + 1.

CASE i.

WHEN 1.

PERFORM bdc_dynpro USING 'SAPMF05A' '0700'.

PERFORM bdc_field USING 'BDC_OKCODE' '/00'.

PERFORM bdc_field USING 'RF05A-NEWBS' t_resumen-bschl.

PERFORM bdc_field USING 'RF05A-NEWKO' t_resumen-hkont.

PERFORM bdc_field USING 'BDC_OKCODE' '/00'.

PERFORM bdc_dynpro USING 'SAPMF05A' '0300'.

PERFORM bdc_field USING 'BDC_OKCODE' '/00'.

j_wrbtr = t_resumen-wrbtr.

REPLACE '.' WITH ',' INTO j_wrbtr.

PERFORM bdc_field USING 'BSEG-WRBTR' j_wrbtr.

PERFORM bdc_dynpro USING 'SAPLKACB' '0002'.

PERFORM bdc_field USING 'BDC_OKCODE' '/00'.

WHEN t.

******************************************************************

PERFORM bdc_dynpro USING 'SAPMF05A' '0300'.

PERFORM bdc_field USING 'RF05A-NEWBS' t_resumen-bschl.

PERFORM bdc_field USING 'RF05A-NEWKO' t_resumen-hkont.

PERFORM bdc_field USING 'BDC_OKCODE' '/00'.

j_hkont = t_resumen-hkont.

j_clave = t_resumen-bschl.

  • ********************************************

PERFORM bdc_dynpro USING 'SAPMF05A' '0300'.

PERFORM bdc_field USING 'BDC_OKCODE' '=BU'.

j_wrbtr = t_resumen-wrbtr.

REPLACE '.' WITH ',' INTO j_wrbtr.

PERFORM bdc_field USING 'BSEG-WRBTR' j_wrbtr.

PERFORM bdc_dynpro USING 'SAPLKACB' '0002'.

PERFORM bdc_field USING 'BDC_OKCODE' '/00'.

WHEN OTHERS.

******************************************************************

PERFORM bdc_dynpro USING 'SAPMF05A' '0300'.

PERFORM bdc_field USING 'RF05A-NEWBS' t_resumen-bschl.

PERFORM bdc_field USING 'RF05A-NEWKO' t_resumen-hkont.

PERFORM bdc_field USING 'BDC_OKCODE' '/00'.

j_hkont = t_resumen-hkont.

j_clave = t_resumen-bschl.

PERFORM bdc_dynpro USING 'SAPMF05A' '0300'.

PERFORM bdc_field USING 'BDC_OKCODE' '/00'.

j_wrbtr = t_resumen-wrbtr.

REPLACE '.' WITH ',' INTO j_wrbtr.

PERFORM bdc_field USING 'BSEG-WRBTR' j_wrbtr.

PERFORM bdc_dynpro USING 'SAPLKACB' '0002'.

PERFORM bdc_field USING 'BDC_OKCODE' '/00'.

ENDCASE.

READ TABLE t_porcentajes WITH KEY gjahr = t_resumen-zzbad

zzbtd = t_resumen-zzbtd.

IF j_hkont = t_porcentajes-cfacpr.

PERFORM bdc_field USING 'COBL-PRCTR' t_porcentajes-prctrfac.

PERFORM bdc_field USING 'COBL-ZZBTD' t_resumen-zzbtd.

PERFORM bdc_field USING 'COBL-ZZBAD' t_resumen-zzbad.

ELSEIF t_resumen-hkont = t_porcentajes-cadmin.

  • PERFORM bdc_field USING 'COBL-KOSTL' '20801'.

ELSEIF t_resumen-hkont = t_porcentajes-creca.

  • PERFORM bdc_field USING 'COBL-KOSTL' '20401'.

ELSE.

IF d_clave = 01 OR d_clave = 04 OR d_clave = 40 OR d_clave = 09.

IF j_hkont >= 424001 AND j_hkont <= 424005.

PERFORM bdc_field USING 'COBL-PRCTR' 'DUMMY'.

ELSEIF j_hkont >= 424601 AND j_hkont <= 424605.

IF j_clave = 40.

PERFORM bdc_field USING 'COBL-PRCTR' 'DUMMY'.

ENDIF.

ENDIF.

ELSEIF d_clave = 11 OR d_clave = 12 OR d_clave = 14 OR d_clave = 50.

IF j_hkont >= 424001 AND j_hkont <= 424005.

PERFORM bdc_field USING 'COBL-PRCTR' 'DUMMY'.

ELSEIF j_hkont >= 424601 AND j_hkont <= 424605.

IF j_clave = 50.

PERFORM bdc_field USING 'COBL-PRCTR' 'DUMMY'.

ENDIF.

ENDIF.

ENDIF.

*Fin modificacion marzo 2007.----


PERFORM bdc_field USING 'COBL-ZZBTD' t_resumen-zzbtd.

PERFORM bdc_field USING 'COBL-ZZBAD' t_resumen-zzbad.

PERFORM bdc_field USING 'COBL-ZZBTT' t_resumen-zzbtt.

PERFORM bdc_field USING 'COBL-ZZBTU' t_resumen-zzbtu.

PERFORM bdc_field USING 'COBL-ZZBTS' t_resumen-zzbts.

PERFORM bdc_field USING 'COBL-ZZBAG' t_resumen-zzbag.

PERFORM bdc_field USING 'COBL-ZZBRE' t_resumen-zzbre.

PERFORM bdc_field USING 'COBL-ZZBC8' t_resumen-zzbc8.

PERFORM bdc_field USING 'COBL-ZZBC9' t_resumen-zzbc9.

ENDIF.

ENDLOOP.