Help out how to resolve HTTP 500(Internal Server Error) in Replay Mode in below request

web_custom_request("GRAC_OIF_REQUEST_APPROVAL;sap-ext-sid=R3lbgWe87kMugAUb1FEezG--R3lbgWe87kMugAUb1FF8zG--_2", 
        "URL=https://d14gxz.jnj.com:8114/sap/bc/webdynpro/SAP/GRAC_OIF_REQUEST_APPROVAL;sap-ext-sid={SAP_EXT_ID3}?sap-contextid=SID:ANON:d{ContextID2}:g{SAP_Context_ID2}-NEW", 
        "Method=POST", 
        "Resource=0", 
        "RecContentType=text/xml", 
        "Referer=https://d14gxz.jnj.com:8114/sap/bc/webdynpro/SAP/GRAC_OIF_REQUEST_APPROVAL;sap-ext-sid={SAP_EXT_ID3}?APPLID={Appl_ID}&ENTITY_ID={Entity_ID}&MODE=E&OBJECT_ID={Entity_ID}%{Object_ID}&POWL_QUERY={powlQuery_ID}&VARIANT=DEFAULT&WI_GROUP_OWNE={UName}&WORKITEM_ID={WorkItem_ID}&sap-client=950&sap-ep-tstamp=20160303083840&sap-ep-version=7&sap-language=EN&sap-nwbc-context="
        "{sap-nwbc-context_ID2}&sap-wd-tstamp=20160303083840", 
        "Snapshot=t22.inf", 
        "Mode=HTML", 
        "Body=sap-charset=utf-8&sap-wd-secure-id={Secure_ID2}&SAPEVENTQUEUE=Custom_ClientInfos~E002Id~E004WD01~E005WindowOpenerExists~E004true~E005ClientURL~E004https~003A~002F~002Fd14gxz.jnj.com~003A8114~002Fsap~002Fbc~002Fwebdynpro~002FSAP~002FGRAC_OIF_REQUEST_APPROVAL~003Bsap-ext-sid~003D{SAP_EXT_ID3}~003FAPPLID~003D{Appl_ID}~0026ENTITY_ID~003D{Entity_ID}~0026MODE~003DE~0026OBJECT_ID~003D{Entity_ID}~0025{Object_ID}~0026POWL_QUERY~"
        "003D{powlQuery_ID}~0026VARIANT~003DDEFAULT~0026WI_GROUP_OWNE~003D{UName}~0026WORKITEM_ID~003D{WorkItem_ID}~0026sap-client~003D950~0026sap-ep-tstamp~003D20160303083840~0026sap-ep-version~003D7~0026sap-language~003DEN~0026sap-nwbc-context~003D{sap-nwbc-context_ID2}~0026sap-wd-tstamp~003D20160303083840~E005ClientWidth~E0041276~E005ClientHeight~E004900~E005DocumentDomain~E004jnj.com~E005IsTopWindow~E004false~E005ParentAccessible~E004true~"
        "E003~E002ClientAction~E004enqueue~E005ResponseData~E004delta~E003~E002~E003~E001LoadingPlaceHolder_Load~E002Id~E004_loadingPlaceholder_~E003~E002ResponseData~E004delta~E005ClientAction~E004submit~E003~E002~E003~E001Form_Request~E002Id~E004sap.client.SsrClient.form~E005Async~E004false~E005FocusInfo~E004~0040~007B~007D~E005Hash~E004~E005DomChanged~E004false~E005IsDirty~E004false~E003~E002ResponseData~E004delta~E003~E002~E003",