Skip to Content
avatar image
Former Member

"Requested function CO40 is not available here", Suggest?

When I start scripting

objSess.FindById("wnd[0]").Maximize objSess.FindById("wnd[0]/tbar[0]/okcd").Text = "co40" objSess.FindById("wnd[0]").SendVKey 0

objSess.FindById("wnd[0]/usr/txtAFPOD-PLNUM").Text = "80498599" objSess.FindById("wnd[0]/usr/ctxtAUFPAR-PP_AUFART").Text = "TZ01" objSess.FindById("wnd[0]/usr/ctxtAUFPAR-PP_AUFART").SetFocus objSess.FindById("wnd[0]/usr/ctxtAUFPAR-PP_AUFART").caretPosition = 4 objSess.FindById("wnd[0]").SendVKey 0 objSess.FindById("wnd[1]/usr/btnSPOP-VAROPTION2").press

objSess.FindById("wnd[1]").SendVKey 0

On below line system gives error in status bar "Requested function CO40 is not available here"

objSess.FindById("wnd[0]/usr/tabsTABSTRIP_0115/tabpKOZE/ssubSUBSCR_0115:SAPLCOKO1:0120/txtCAUFVD-GAMNG").Text = Ord_Qty objSess.FindById("wnd[0]/usr/tabsTABSTRIP_0115/tabpKOZE/ssubSUBSCR_0115:SAPLCOKO1:0120/cmbCAUFVD-TERKZ").Key = "4" objSess.FindById("wnd[0]/usr/tabsTABSTRIP_0115/tabpKOZE/ssubSUBSCR_0115:SAPLCOKO1:0120/cmbCAUFVD-TERKZ").SetFocus

objSess.FindById("wnd[0]").SendVKey 0

objSess.FindById("wnd[0]").SendVKey 0

objSess.FindById("wnd[0]/tbar[0]/btn[11]").press

Please suggest

Regard

Pavan

sap-1.png (2.4 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Feb 13 at 06:09 AM

    Now problem is resolved by adding application.wait

    it is taken from last answered by script man to my query on print dialog box.

    big thank you

    Script Man

    Add comment
    10|10000 characters needed characters exceeded