<?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 external program in background mode in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086708#M99572</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shobhit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to Proceed according to Rich's Idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Dec 2005 16:29:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-05T16:29:30Z</dc:date>
    <item>
      <title>Call external program in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086702#M99566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am creating a PO using bapi BAPI_PO_CREATE1 in exit USEREXIT_SAVE_DOCUMENT_PREPARE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont want to write the code in my exit. Instead I want to write the code in a Z program and call it in my exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Problem.&lt;/P&gt;&lt;P&gt;How do I call my z program in my exit so that I can pass internal tables from my exit to the z program. Also I want to schedule the call of my external program for background processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying with SUBMIT ZPROG AND RETURN. But not able to pass an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried PERFORM BAPI_PO_CREATE IN PRGRAM ZPROG, but in this case not able to schedule it in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shobhit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 16:04:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086702#M99566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-05T16:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Call external program in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086703#M99567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shobhit,&lt;/P&gt;&lt;P&gt;  Put a break point in your exit &amp;amp; see whether the Exit is firing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 16:14:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086703#M99567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-05T16:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Call external program in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086704#M99568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to pass the data using shared memory buffer.  Here is an example.&lt;/P&gt;&lt;P&gt;This example gets data from MARA into an internal table, then exports the internal table to shared memory, then it schedules a background job for ZRICH_0005.  In the ZRICH_0005, it imports the internal table and writes it out.  This is the functionality that you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001 .

data:   l_valid,
        ls_params like pri_params,
        l_jobcount like tbtcjob-jobcount,
        l_jobname  like tbtcjob-jobname,
        l_key(60) type c.

data: imara type table of mara with header line.

start-of-selection.



  select * into corresponding fields of table imara
                from mara
                      up to 100 rows.

&amp;lt;b&amp;gt;  concatenate 'RICHTEST' sy-datum into l_key.
  export imara = imara
              to shared buffer indx(st) id l_key.&amp;lt;/b&amp;gt;

* Get Print Parameters
  call function 'GET_PRINT_PARAMETERS'
       exporting
            no_dialog      = 'X'
       importing
            valid          = l_valid
            out_parameters = ls_params.

* Open Job
  l_jobname = 'ZRICH_0005'.
  call function 'JOB_OPEN'
       exporting
            jobname  = l_jobname
       importing
            jobcount = l_jobcount.

* Submit report to job
  submit zrich_0005
       via job     l_jobname
           number  l_jobcount
       to sap-spool without spool dynpro
           spool parameters ls_params
              and return.

* Schedule and close job.
  call function 'JOB_CLOSE'
       exporting
            jobcount  = l_jobcount
            jobname   = l_jobname
            strtimmed = 'X'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program  B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0005 .


data:   l_key(60) type c.

data: imara type table of mara with header line.

start-of-selection.


&amp;lt;b&amp;gt;  concatenate 'RICHTEST' sy-datum into l_key.
  import imara = imara
              from shared buffer indx(st) id l_key.
  delete from shared buffer indx(st) id l_key.&amp;lt;/b&amp;gt;

  loop at imara.

    write:/ imara-matnr, imara-matkl.

  endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 16:16:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086704#M99568</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-05T16:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Call external program in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086705#M99569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try using the IMPORT/EXPORT FROM/TO MEMORY method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could do this in your exit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT it_table TO MEMORY ID 'MY_MEM_ID'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your Z scheduled program you could:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT it_table FROM MEMORY ID 'MY_MEM_ID'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Don't forget to declare the it_table in the Z program too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 16:18:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086705#M99569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-05T16:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Call external program in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086706#M99570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phani,&lt;/P&gt;&lt;P&gt;The exit is very well firing as my code is working using the PERFORM.. method. But I want to schedule the perform in the background. For that I tried using SUBMIT.. but not able to pass internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shobhit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 16:18:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086706#M99570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-05T16:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Call external program in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086707#M99571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ivo suggestion will not help as you are crossing work processes, you must use the shared buffer because it goes across all process, system wide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 16:22:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086707#M99571</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-05T16:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Call external program in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086708#M99572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shobhit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to Proceed according to Rich's Idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 16:29:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086708#M99572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-05T16:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Call external program in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086709#M99573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you want to do this in a different program? You'll be adding overhead by submitting a background job. If you do it in foreground with AND RETURN, you'll have to wait for the program to finish before the dialogue can continue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 16:36:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086709#M99573</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-05T16:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Call external program in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086710#M99574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich and Rob!! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you both!! Ill b following Rich's idea. I need to send the PO crearion to background because I want the Delivery to be created successfully after which only I want the background job to execute. (After checking the successful completion of the dialog)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have another problem. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; I need to put a popup screen to take two input values to the user. These values would be required to create the PO in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How and where should I create this popup screen? in the exit or in the z program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any kind of help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shobhit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 16:46:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086710#M99574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-05T16:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Call external program in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086711#M99575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the Z program is in the background, you'll need the popup in the exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 16:53:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086711#M99575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-05T16:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Call external program in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086712#M99576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would put it in the exit since it is in the foreground.  Try something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001 .


data: fields type table of sval with header line.


fields-tabname   = 'EKKO'.
fields-fieldname = 'EBELN'.
append fields.

fields-tabname   = 'EKPO'.
fields-fieldname = 'EBELP'.
append fields.

call function 'POPUP_GET_VALUES'
  exporting
*   NO_VALUE_CHECK        = ' '
    popup_title           = 'Test'
*   START_COLUMN          = '5'
*   START_ROW             = '5'
* IMPORTING
*   RETURNCODE            =
  tables
    fields                = fields
* EXCEPTIONS
*   ERROR_IN_FIELDS       = 1
*   OTHERS                = 2
          .
if sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please make sure to award points for helpful answers.  Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 16:54:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086712#M99576</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-05T16:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Call external program in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086713#M99577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I salute u Rich!!!&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shobhit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 17:00:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086713#M99577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-05T17:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Call external program in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086714#M99578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So then it is all working now?  using the shared buffer? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 17:04:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086714#M99578</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-05T17:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Call external program in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086715#M99579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;Im setting runtime error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Code in Exit: (xvbfa is the table which i wanna pass)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate 'SERVICEPO' sy-datum into l_key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;export xvbfa = xvbfa&lt;/P&gt;&lt;P&gt;              to shared buffer indx(st) id l_key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Code in the called program ZMM_SERVICE_PO&lt;/P&gt;&lt;P&gt;Runtime Errors         CONNE_IMPORT_WRONG_OBJECT_TYPE&lt;/P&gt;&lt;P&gt;Exceptn                CX_SY_IMPORT_MISMATCH_ERROR&lt;/P&gt;&lt;P&gt;Date and Time          05.12.2005 21:41:54&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ShrtText&lt;/P&gt;&lt;P&gt;     Error when attempting to IMPORT object "XVBFA".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; What happened?&lt;/P&gt;&lt;P&gt;     Error in ABAP application program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     The current ABAP program "ZMM_SERVICE_PO" had to be terminated because one of&lt;/P&gt;&lt;P&gt;      the&lt;/P&gt;&lt;P&gt;     statements could not be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     This is probably due to an error in the ABAP program.&lt;/P&gt;&lt;P&gt;     When importing the object "XVBFA", the object in the&lt;/P&gt;&lt;P&gt;     dataset had a different type from the target object in the program&lt;/P&gt;&lt;P&gt;     "ZMM_SERVICE_PO" (object types: field, field string/structure, table).&lt;/P&gt;&lt;P&gt;     table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Error analysis&lt;/P&gt;&lt;P&gt;     An exception occurred. This exception will be dealt with in more detail&lt;/P&gt;&lt;P&gt;     below. The exception, assigned to the class 'CX_SY_IMPORT_MISMATCH_ERROR', was&lt;/P&gt;&lt;P&gt;      not caught, which&lt;/P&gt;&lt;P&gt;      led to a runtime error. The reason for this exception is:&lt;/P&gt;&lt;P&gt;     The object "XVBFA" has a different object type in the dataset from&lt;/P&gt;&lt;P&gt;     that in the target program "ZMM_SERVICE_PO". (Object types: Field, flat&lt;/P&gt;&lt;P&gt;      structure,&lt;/P&gt;&lt;P&gt;     deep structure, flat table, deep table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Missing Handling of System Exception&lt;/P&gt;&lt;P&gt;    Program                                 ZMM_SERVICE_PO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trigger Location of Exception&lt;/P&gt;&lt;P&gt;    Program                                 ZMM_SERVICE_PO&lt;/P&gt;&lt;P&gt;    Include                                 ZMM_SERVICE_PO&lt;/P&gt;&lt;P&gt;    Row                                     43&lt;/P&gt;&lt;P&gt;    Module Name                             START-OF-SELECTION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source Code Extract&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line  SourceCde&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZMM_SERVICE_PO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_poheader      LIKE bapimepoheader.&lt;/P&gt;&lt;P&gt;DATA: l_poheaderx     LIKE bapimepoheaderx.&lt;/P&gt;&lt;P&gt;DATA: l_poitem        LIKE bapimepoitem     OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: l_poitemx       LIKE bapimepoitemx    OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: l_cond          LIKE BAPIMEPOCOND     OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: l_condx         LIKE BAPIMEPOCONDX    OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: l_poschedule    LIKE bapimeposchedule OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: l_poschedulex   LIKE bapimeposchedulx OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: l_purchaseorder LIKE bapimepoheader-po_number.&lt;/P&gt;&lt;P&gt;DATA: l_return        TYPE BAPIRET2 OCCURS 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_error_found   TYPE c.&lt;/P&gt;&lt;P&gt;DATA: l_show_messages TYPE c.&lt;/P&gt;&lt;P&gt;DATA: l_eindt(10)     TYPE c.&lt;/P&gt;&lt;P&gt;DATA: l_answer        TYPE c.&lt;/P&gt;&lt;P&gt;DATA: l_VBAK          TYPE STANDARD TABLE OF VBAK WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: l_VBFA          TYPE STANDARD TABLE OF VBFA WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: xlips           TYPE STANDARD TABLE OF LIPS WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;*DATA: xvbfa           TYPE STANDARD TABLE OF vbfa WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA xvbfa like vbfa.&lt;/P&gt;&lt;P&gt;DATA: l_key(60) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      concatenate 'SERVICEPO' sy-datum into l_key.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; import xvbfa = xvbfa&lt;/P&gt;&lt;P&gt;                  from shared buffer indx(st) id l_key.&lt;/P&gt;&lt;P&gt;      delete from shared buffer indx(st) id l_key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regads,&lt;/P&gt;&lt;P&gt;Shobhit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 18:48:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086715#M99579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-05T18:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Call external program in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086716#M99580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like in the SUBMITTED program you are importing XVBFA, but XVBFA is not an internal table.  You have it commented out.  XVBFA needs to be an interal table, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 18:50:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086716#M99580</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-05T18:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Call external program in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086717#M99581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your xvbfa in the user exit might be having a different structure compared to what you declared in your ZMM_SERVICE_PO. They have to have the same structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 18:51:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086717#M99581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-05T18:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Call external program in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086718#M99582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the definition of XVBFA in SAPMV45A, include VBFADATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:    begin of xvbfa occurs 0.&lt;/P&gt;&lt;P&gt;           include structure vbfavb.&lt;/P&gt;&lt;P&gt;data:    end of xvbfa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 18:54:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086718#M99582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-05T18:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Call external program in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086719#M99583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WHy can't you open another thread as every can see this..&lt;/P&gt;&lt;P&gt;Becaue this is already closed.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 18:58:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086719#M99583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-05T18:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Call external program in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086720#M99584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;It is an internal table only. Im just tryin diff ways to define n internal table. Thats why u see the commented line. Still I get the same error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't mind, may I have your email id?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Shobhit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 19:01:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086720#M99584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-05T19:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Call external program in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086721#M99585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shobhit, please look at my response. Change your xvbfa definition to that of the include, then it will be ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 19:03:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-external-program-in-background-mode/m-p/1086721#M99585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-05T19:03:43Z</dc:date>
    </item>
  </channel>
</rss>

