Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Difference in submiting form using JS(CLient Side) and ABAP(server side).

Hi All,

We are implementing OCI . When i submit the for using below code:


<htmlb:button         id            = "submit"
                            text          = "Transfer To Shopping Cart"
                            tooltip       = "Transfer catalog to shopping cart"
                             o n C l i e n t C l i c k   =   " g o b a c k ( ) ; "   / > 
<scrapt typw="texa/javascaipt">
fu   n c t i o n   g o  b a   c k ( )
{

var r e t _ U R L   =   " < % =   H O O K _ U R L   %> " ; 
d oc u m e n t . f i n a l . a c t i o n   =   r e t _ U R L ;
d o c u m e n t . f i n a l . m e t h o d   =   " P O S T " ;
d o c u m e n t . f i n a l . s u b m i t ( ) ;
}
</script>

the form is sumbited properly whereas if i use :

<htmlb:button         id            = "submit"
                            text          = "Transfer To Shopping Cart"
                            tooltip       = "Transfer catalog to shopping cart"
                            o n C l i c k   =   "transfer "   / > 

in OnInputProcessing:
when 'transfer'.
navigation->goto_page( hook_url ).

i get the error:

BSP Exception: The side exit http://sapupd.xxxxx.com:8002/sap (cz1TSUQlM2FBTk9OJTNhc2FwdXBkX1NSTV8wMiUzYXJUaHBOdE0yYlVsVnQ5NzAtS0wwdmFOUWdnTWo3WHpHY01YS2NITmMtQVRU) / bc/gui/sap/its/bbpsc02 /? OkCode = ~ ~ ADDI & target = _top & caller = ~ ~ Ctlg & SAPSessionCmd = open & ~ sap syscmd = NOCOOKIE & client = ~ ~ 200 & lan is for the page final.htm not defined.

What is the problem in submiting form at server side?

Thanks,

Anubhav.

Not what you were looking for? View more on this topic or Ask a question