<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CALL TRANSACTION 'VF02' for message processing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-vf02-for-message-processing/m-p/5464451#M1251680</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;   here is a dirty trick..:)&lt;/P&gt;&lt;P&gt;Record the transaction by purposefully making an error in the messages screen, &lt;/P&gt;&lt;P&gt;some thing like entering an invalid message type or something like that, which you are sure or erroring out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then call the transaction in error mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi Kanth Talagana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Apr 2009 15:27:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-21T15:27:57Z</dc:date>
    <item>
      <title>CALL TRANSACTION 'VF02' for message processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-vf02-for-message-processing/m-p/5464450#M1251679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I find myself in a little problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to create for a specific order, a billing document (proforma invoice) and, after it is created, I have to display the output options for this document (2 output messages are generated).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I want it to pass the first OK code (the document selection) and only stop at the "Output messages" screen, yet it does not. What it happens is that it calls  the bdcdata in foreground, so it waits for me to confirm the ok-code before it shows the messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, here is the call transaction code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM call_transaction  USING    p_vbeln LIKE vbrk-vbeln.

  DATA: lt_bdcdata TYPE TABLE OF bdcdata WITH HEADER LINE.
  DATA: messtab TYPE TABLE OF bdcmsgcoll.

  lt_bdcdata-program  = 'SAPMV60A'.
  lt_bdcdata-dynpro   = '0101'.
  lt_bdcdata-dynbegin = 'X'.
  APPEND lt_bdcdata.
  CLEAR  lt_bdcdata.

  lt_bdcdata-fnam     = 'BDC_CURSOR'.
  lt_bdcdata-fval     = 'VBRK-VBELN'.
  APPEND lt_bdcdata.

  lt_bdcdata-fnam     = 'VBRK-VBELN'.
  lt_bdcdata-fval     = p_vbeln.
  APPEND lt_bdcdata.

  lt_bdcdata-fnam     = 'BDC_OKCODE'.
  lt_bdcdata-fval     = '=DRCK'.
  APPEND lt_bdcdata.
  CLEAR  lt_bdcdata.

  lt_bdcdata-program  = 'SAPLVMSG'.
  lt_bdcdata-dynpro   = '0200'.
  lt_bdcdata-dynbegin = 'X'.
  APPEND lt_bdcdata.
  CLEAR  lt_bdcdata.

  lt_bdcdata-fnam     = 'BDC_CURSOR'.
  lt_bdcdata-fval     = 'NAST-KSCHL(01)'.
  APPEND lt_bdcdata.

  CALL TRANSACTION 'VF02' USING lt_bdcdata
                             MESSAGES INTO messtab.
  WRITE 'done'.
ENDFORM.                    " CALL_TRANSACTION&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sure it's nothing, yet I can't seem to fix it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: I have tried to call it in various modes and if it's in mode 'E' or 'N', for example, it does not stop the the message subscreen, but returns to my main programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me a hint on what I'm doing wrong.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 15:22:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-vf02-for-message-processing/m-p/5464450#M1251679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-21T15:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: CALL TRANSACTION 'VF02' for message processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-vf02-for-message-processing/m-p/5464451#M1251680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;   here is a dirty trick..:)&lt;/P&gt;&lt;P&gt;Record the transaction by purposefully making an error in the messages screen, &lt;/P&gt;&lt;P&gt;some thing like entering an invalid message type or something like that, which you are sure or erroring out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then call the transaction in error mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi Kanth Talagana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 15:27:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-vf02-for-message-processing/m-p/5464451#M1251680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-21T15:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: CALL TRANSACTION 'VF02' for message processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-vf02-for-message-processing/m-p/5464452#M1251681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quite a dirty trick, but efficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, now I see that I have another issue. The printing is done in a raw format, instead of going into the form that is assigned for the message. When trying with VF02, it works just fine, but not from my report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Problem solved. It needed the nobinpt set to 'X' as it was displaying the batch process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Daniel BALTA on Apr 21, 2009 6:55 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 15:41:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-vf02-for-message-processing/m-p/5464452#M1251681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-21T15:41:02Z</dc:date>
    </item>
  </channel>
</rss>

