10-31-2008 7:14 AM
hi all,
when we excuting the program its excuting trough background, we are getting problem in the background job,
like dynpro_not found. in the sapmv45a. in that there is no 9002 screen.
where is proble its problem in the z program are back ground job probelm.
10-31-2008 7:23 AM
Hi Preethi,
Are you getting the same problem when you execute the program in the foreground with the same data?
Also how are you calling the screen? Are you using a BDC call transaction?
Regards,
Mick
10-31-2008 7:59 AM
Please check the BDC code with the recording of the transaction !!
Neeraj
10-31-2008 8:04 AM
when i am excuting the original program i am not getting the output. its giving the error message.
i checked the program what i made the changes. i did not tuched any thing in the program some changes i did. but why this job is not running the successfully.
what is the soultion fot these.
thank
10-31-2008 8:16 AM
Hi Preethi,
Please go to TCode SE 51 and enter program name as SAPMV45A and screen no as 9002 and click on display. Are you able to see the screen now? If no then the screen 9002 does not exist.
Regards,
Mick
10-31-2008 9:41 AM
i seen the program sapmv45a there is a screen 9002.
then how to proceed further.
10-31-2008 9:47 AM
If you are doing a BDC using Call Transaction then do the BDC in All Screen mode (A) executing the program in the foreground. You will be able to get an idea of the problem.
If that does not work, then use the same data (which is giving the error) and the same steps as being done in the BDC and create the document manually. I am sure you will be able to figure out the error.
Regards,
Mick
10-31-2008 10:37 AM
CALL TRANSACTION wa_tcode USING bdcdata
OPTIONS FROM opt
MESSAGES INTO messtab.
PERFORM bdc_dynpro USING 'SAPMV45A' '0102'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'VBAK-VBELN'
wa_vbap-vbeln.
ENDAT.
PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=POPO'.
PERFORM bdc_dynpro USING 'SAPMV45A' '0251'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=POSI'.
PERFORM bdc_field USING 'RV45A-POSNR'
posnr_c.
PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=PKNT'.
PERFORM bdc_dynpro USING 'SAPMV45A' '4003'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=COBL_XERGO'.
PERFORM bdc_dynpro USING 'SAPLKEAK' '0400'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ANRE'.
PERFORM bdc_dynpro USING 'SAPLKEAK' '0400'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=WEIT'.
PERFORM bdc_dynpro USING 'SAPMV45A' '4003'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/EBACK'.
AT END OF vbeln.
PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=SICH'.
SELECT SINGLE vbtyp FROM vbak INTO wa_vbtyp
WHERE vbeln = wa_vbap-vbeln.
IF sy-subrc = 0.
IF wa_vbtyp = 'C'.
wa_tcode = 'VA02'.
ELSEIF wa_vbtyp = 'G'.
wa_tcode = 'VA42'.
ENDIF.
PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=SICH'.
the above bdc code is used in the entire program.
the functinality is in the selectio screen (sales disrict value EX:10000) this value should transfer in the va43 transaction.
10-31-2008 11:40 AM
Preethi,
1) Do not see screen no 9002 in your BDC. Is it called through some menu option that you are clicking?
2) As suggested did you execute the BDC in all screen mode in the foreground? If yes what were your findings?
3) If that did not work, did you try to create the sales order manually with the same data and following the same steps as in the BDC? If yes what were your findings?
Regards,
Mick