<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.2995" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText6021 dir=ltr>
<DIV dir=ltr><FONT face=Verdana color=#000000 size=2>Hi Kim ,</FONT></DIV>
<DIV dir=ltr><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Verdana size=2>&nbsp; It&nbsp;looks like a pure ABAP problem , you must fulfill the BDC table in a suitable manner . The problem seems like transaction ME12 has different behaviours&nbsp;in&nbsp;test mode (SWO1)&nbsp;and in WF-Runtime mode&nbsp;.&nbsp;</FONT></DIV>
<DIV dir=ltr><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Verdana size=2>&nbsp;Maybe this&nbsp;sdn thread&nbsp; fix to your problem:</FONT></DIV>
<DIV dir=ltr><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Verdana size=2><U><FONT color=#800080><A href="https://www.sdn.sap.com/irj/sdn/thread?threadID=733171">https://www.sdn.sap.com/irj/sdn/thread?threadID=733171</A></FONT></U><A href="https://www.sdn.sap.com/irj/sdn/thread?threadID=304593"></A></FONT></DIV>
<DIV dir=ltr><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Verdana size=2>I remark this lines : </FONT></DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Verdana size=2>*------------------------------------------------------------------------------------</FONT></DIV>
<DIV dir=ltr><FONT face=Verdana size=2><EM>In addition, Specifically for BDC, if you wants to avoid the popup the following approach can be taken : <BR><BR>Declare a work area of type CTU_PARAMS.<BR>Fill the fields of CTU_PARAMS. The field NOBINPT should be set to ‘X’.<BR>This will set the SY-BINPT to space. So now the transaction which you will be calling will run in online mode. <BR><BR>Example.<BR></EM></DIV>
<DIV dir=ltr>
<DIV class=jive-message-body><PRE class=jive-pre><CODE class="jive-code jive-java"><EM>clear X_OPTIONS.
X_OPTIONS-DISMODE = <FONT color=navy>'E'</FONT>.
X_OPTIONS-UPDMODE = <FONT color=navy>'S'</FONT>.
X_OPTIONS-CATTMODE = <FONT color=navy>' '</FONT>.
X_OPTIONS-DEFSIZE = <FONT color=navy>' '</FONT>.
X_OPTIONS-RACOMMIT = <FONT color=navy>' '</FONT>.
X_OPTIONS-NOBINPT = <FONT color=navy>'X'</FONT>.
 X_OPTIONS-NOBIEND = <FONT color=navy>' '</FONT>.
</EM></CODE></PRE><BR><EM>call transaction 'BP' using T_BDCDATA[] options from X_OPTIONS.<BR><BR>Note:<BR>Do not use the MODE &amp; UPDATE additions when you are using OPTIONS. The mode &amp; update values are passed in the CTU_PARAMS structure.<BR><BR>{code}<BR>CALL TRANSACTION 't_code' USING i_bdcdata[]<BR>OPTIONS X_OPTIONS<BR>MESSAGES INTO i_message.<BR>{code)</EM></DIV></FONT></DIV>
<DIV dir=ltr><FONT face=Verdana size=2>*-------------------------------------------------------------</FONT></DIV>
<DIV dir=ltr><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Verdana size=2>I hope this will be useful&nbsp;for&nbsp;you.</FONT></DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Verdana size=2>Regards.</FONT></DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Verdana size=2>Guillermo.</FONT>&nbsp;</DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>De:</B> sap-wug-bounces@mit.edu en nombre de Kim, Ji Hoon<BR><B>Enviado el:</B> jue 19/06/2008 14:58<BR><B>Para:</B> SAP Workflow Users' Group<BR><B>Asunto:</B> SY-BINPT in the background task<BR></FONT><BR></DIV>
<DIV>
<DIV dir=ltr align=left><SPAN class=664454312-19062008><FONT face=Arial color=#0000ff size=2>Hello experts,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=664454312-19062008><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=664454312-19062008><FONT face=Arial color=#0000ff size=2>I'm creating a standard task (BACKGROUND) which calls ME12 transaction as BATCH INPUT (BDC).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=664454312-19062008><FONT face=Arial color=#0000ff size=2>When I test it in a dailog mode in SWO1 it works fine.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=664454312-19062008><FONT face=Arial color=#0000ff size=2>However, when I put it in the workflow template as background task. It generates a ABAP DUMP.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=664454312-19062008><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=664454312-19062008><FONT face=Arial color=#0000ff size=2>According to ABAP dump the system variable SY-BINPT is set to 0. And it processes an additional screen which was not recorded.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=664454312-19062008><FONT face=Arial color=#0000ff size=2>This is the root cause of the problem, I think.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=664454312-19062008><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=664454312-19062008><FONT face=Arial color=#0000ff size=2>When I debug it in the SWO1, the value of SY-BINPT is set to 1. (The additional screen is not appeared).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=664454312-19062008><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=664454312-19062008><FONT face=Arial color=#0000ff size=2>Can anyone provide any hint for further analysis?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=664454312-19062008><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=664454312-19062008><FONT face=Arial color=#0000ff size=2>Thanks </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=664454312-19062008><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV></DIV></BODY></HTML>