2008 Jun 12 10:40 AM
Hi all
I have a Z t-code in that which cantain module pool program with screen number 1000
in the program it contain some include
now I am writing a bapi for calling this tcode through call transaction method my code is like below in the code i have defined import export parameter properly but whil excecuting this bapi it goex to initial scren but there it is giving the message
start screen does not exit in batch input data
and from there it is directly exit
DATA: V_MODE(1) VALUE 'A'.
*DATA: MODE(1).
REFRESH BDCDATA.
CLEAR BDCDATA.
PERFORM DYNPRO_PROCESS USING:
'X' 'SAPMZSDCHEQENT' '1000',
' ' 'BDC_CURSOR' 'ZCUSTCHQ-BRNCH',
' ' 'ZCUSTCHQ-KUNNR' CUSTOMER_CODE,
' ' 'ZCUSTCHQ-PRCTR' PROFIT_CENTER,
' ' 'ZCUSTCHQ-CHQNO' CHEQUE_NUMBER,
' ' 'ZCUSTCHQ-BNKNM' BANK,
' ' 'ZCUSTCHQ-BRNCH' BRANCH,
' ' 'BDC_OKCODE' '=ENTER'.
IF MODE = '1'.
PERFORM DYNPRO_PROCESS USING:
'X' 'SAPMZSDCHEQENT' '1000',
' ' 'BDC_CURSOR' 'ZCUSTCHQ-BRNCH',
' ' 'ZCUSTCHQ-KUNNR' CUSTOMER_CODE,
' ' 'ZCUSTCHQ-PRCTR' PROFIT_CENTER,
' ' 'ZCUSTCHQ-CHQNO' CHEQUE_NUMBER,
' ' 'ZCUSTCHQ-BNKNM' BANK,
' ' 'ZCUSTCHQ-BRNCH' BRANCH,
' ' 'BDC_OKCODE' 'CREATE'.
ELSEIF MODE = '2'.
PERFORM DYNPRO_PROCESS USING:
'X' 'SAPMZSDCHEQENT' '1000',
' ' 'BDC_CURSOR' 'ZCUSTCHQ-BRNCH',
' ' 'ZCUSTCHQ-KUNNR' CUSTOMER_CODE,
' ' 'ZCUSTCHQ-PRCTR' PROFIT_CENTER,
' ' 'ZCUSTCHQ-CHQNO' CHEQUE_NUMBER,
' ' 'ZCUSTCHQ-BNKNM' BANK,
' ' 'ZCUSTCHQ-BRNCH' BRANCH,
' ' 'BDC_OKCODE' 'DELETE'.
ELSE.
PERFORM DYNPRO_PROCESS USING:
'X' 'SAPMZSDCHEQENT' '1000',
' ' 'BDC_CURSOR' 'ZCUSTCHQ-BRNCH',
' ' 'ZCUSTCHQ-KUNNR' CUSTOMER_CODE,
' ' 'ZCUSTCHQ-PRCTR' PROFIT_CENTER,
' ' 'ZCUSTCHQ-CHQNO' CHEQUE_NUMBER,
' ' 'ZCUSTCHQ-BNKNM' BANK,
' ' 'ZCUSTCHQ-BRNCH' BRANCH,
' ' 'BDC_OKCODE' '=COLLATERAL'.
ENDIF.
PERFORM DYNPRO_PROCESS USING:
'X' 'SAPMZSDCHEQENT' '1000',
' ' 'BDC_CURSOR' 'ZCUSTCHQ-KUNNR',
' ' 'BDC_OKCODE' '=BACK'.
CALL TRANSACTION 'ZCH' USING BDCDATA
MODE V_MODE
UPDATE 'S'
MESSAGES INTO MESSTAB.
ENDFUNCTION.
FORM DYNPRO_PROCESS USING DYNBEGIN FLD1 FLD2.
IF BDCDATA-DYNBEGIN = 'X'.
CLEAR BDCDATA.
MOVE: DYNBEGIN TO BDCDATA-DYNBEGIN ,
FLD1 TO BDCDATA-PROGRAM ,
FLD2 TO BDCDATA-DYNPRO.
APPEND BDCDATA.
ELSE.
CLEAR BDCDATA.
MOVE: FLD1 TO BDCDATA-FNAM ,
FLD2 TO BDCDATA-FVAL .
APPEND BDCDATA.
ENDIF.
ENDFORM.
<REMOVED BY MODERATOR>
Regards
Shashikant.
Edited by: Alvaro Tejada Galindo on Jun 12, 2008 6:48 PM
2008 Jun 12 10:47 AM
2008 Jun 12 10:55 AM
Hi Swastik,
I have used lot of time call transaction infact i have used many such z tcode but there scren number is other than 1000 here it is 1000 is that making a difference
Regards
Shashiknat
2008 Jun 12 10:59 AM
Hi Shashikant,
This seems to be problem with ur BDC recording.
First debug ur code in all screens display mode in call transaction and see where exactly ur getting problem.
I thing u r missing some screen in ur coding.
Do ur recording again/Check ur recording with ur code to see if there is any descripancy.
Thanks,
Vinod.