<?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 How to write driver program JIT Schedule Adobe form program. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-driver-program-jit-schedule-adobe-form-program/m-p/13992411#M2038327</link>
    <description>&lt;P&gt;Hi All!&lt;BR /&gt;&lt;BR /&gt;I've been trying to develop an adobe form and it's been an issue from multiple weeks. Anyone here can help me figure out where I am going wrong.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Requirement :&lt;/STRONG&gt; Develop custom Adobe form for JIT Schedule. The form should be appearing in ME9E when JIT job is run in ME38. Post that form should be sent as email attachment post MRP run/ME84.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What's done:&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;1. Created custom FORM, INTERFACE &amp;amp; Driver Program.&lt;/P&gt;&lt;P&gt;2. Configured NACE with Program Name, Routine - ENTRY_LPJE_AUTO (same as standard), FORM and type PDF.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem :&lt;/STRONG&gt;&amp;nbsp;When we run JIT Schedule in ME38 (&lt;EM&gt;edit &amp;gt; Generate JIT Schedule..&lt;/EM&gt; )&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. First we encountered dump&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;CX_SY_DYN_CALL_PARAM_MISSING&lt;/FONT&gt;&amp;nbsp;&lt;/STRONG&gt;in Standard program&amp;nbsp;&lt;STRONG&gt;SAPLV61B&amp;nbsp;&lt;/STRONG&gt;in Include&amp;nbsp;&lt;STRONG&gt;LV61BF0N&lt;/STRONG&gt; in Perform&amp;nbsp;&lt;STRONG&gt;nnast_aende_check&lt;/STRONG&gt; in below mentioned line.&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;* Routine für Änderungsnachricht vorhanden -&amp;gt; ausführen
          PERFORM (p_arout) IN PROGRAM (p_aprog).&lt;/LI-CODE&gt;&lt;P&gt;To fix this we removed the USING parameters from our custom program's routine call entry_lpje_auto (&lt;EM&gt;below&lt;/EM&gt;)&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;*FORM entry_lpje_auto USING pv_returncode pv_us_screen. "commented this it was ent_retco and ent_screen.

FORM entry_lpje_auto.&lt;/LI-CODE&gt;&lt;P&gt;This is standard code for reference Standard code&amp;nbsp;&lt;STRONG&gt;SAPFM06P&lt;/STRONG&gt; Include&amp;nbsp;&lt;STRONG&gt;FM06PE02&lt;/STRONG&gt; -&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;FORM entry_lpje_auto USING ent_retco ent_screen.

  DATA: lf_retcode TYPE sy-subrc,
        l_druvo    LIKE t166k-druvo.

  l_druvo = 'A'.
  CALL FUNCTION 'ISAUTO_ESCR_PRINT_FRC_JIT'
    EXPORTING
      ix_nast          = nast
      ix_tnapr         = tnapr
      ix_screen        = ent_screen
      ix_toa_dara      = toa_dara                             "520228
      ix_arc_params    = arc_params                           "520228
    IMPORTING
      EX_RETCODE       = lf_retcode
    CHANGING
      ix_druvo         = l_druvo.

  IF lf_retcode NE 0.
    ent_retco = 1.
  ELSE.
    ent_retco = 0.
  ENDIF.

ENDFORM.&lt;/LI-CODE&gt;&lt;P&gt;2. To fix this we fix above dump we removed the parameters which brought us to the next error that was &lt;FONT color="#FF0000"&gt;TABLE &lt;STRONG&gt;NAST&lt;/STRONG&gt; was empty&lt;/FONT&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To fix above we went to the standard code&amp;nbsp;&lt;STRONG&gt;SAPLV61B&amp;nbsp;&lt;/STRONG&gt;and checked that &lt;STRONG&gt;NAST&lt;/STRONG&gt; was empty but &lt;STRONG&gt;XNAST&amp;nbsp;&lt;/STRONG&gt;was populated my adding Include &lt;STRONG&gt;messdata. &lt;/STRONG&gt;After this program procceds further.&lt;/P&gt;&lt;P&gt;3. Function &lt;EM&gt;&lt;STRONG&gt;FP_JOB_OPEN&lt;/STRONG&gt;&lt;/EM&gt; gets triggered and output device (LP01) is being asked here. &lt;FONT color="#FF0000"&gt;Problem (3) is this shouldn't be asked. How to make it run without the popup and pre-configured.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;4. From is being displayed, after that &lt;FONT color="#FF0000"&gt;email is being sent directly without ME84&lt;/FONT&gt;&amp;nbsp;(code has bcs class sending email) and then we are being sent to &lt;STRONG&gt;ME38&lt;/STRONG&gt; and where we click save and when we exit the transaction, me get a message that &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;"Update was cancelled"&lt;/STRONG&gt;&lt;/FONT&gt; and runtime error is there in &lt;STRONG&gt;ST22 &lt;/STRONG&gt;in Program&amp;nbsp;&lt;STRONG&gt;RSNAST00 &lt;/STRONG&gt;with exception&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;CX_SY_DYN_CALL_PARAM_NOT_FOUND&lt;/FONT&gt;&amp;nbsp;&lt;/STRONG&gt;error &lt;STRONG&gt;PERFORM_TOO_MANY_PARAMETERS&lt;/STRONG&gt;.&lt;/FONT&gt;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;  944
  945     perform (tnapr-ronam) in program (tnapr-pgnam) using returncode
  946                                                          us_screen
  947                                                          if found.
  948 * restore original NAST record (in case TNAPR-RONAM changed something)
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;     nast = temp_nast.
  950 * return code unchanged: program didn't behave properly&lt;/LI-CODE&gt;&lt;P&gt;When trying to debug this if placed a breakpoint, that breakpoint is not being triggered. Help would be deeply appreciated!&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2025 19:47:56 GMT</pubDate>
    <dc:creator>mdmanjarejaz</dc:creator>
    <dc:date>2025-01-21T19:47:56Z</dc:date>
    <item>
      <title>How to write driver program JIT Schedule Adobe form program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-driver-program-jit-schedule-adobe-form-program/m-p/13992411#M2038327</link>
      <description>&lt;P&gt;Hi All!&lt;BR /&gt;&lt;BR /&gt;I've been trying to develop an adobe form and it's been an issue from multiple weeks. Anyone here can help me figure out where I am going wrong.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Requirement :&lt;/STRONG&gt; Develop custom Adobe form for JIT Schedule. The form should be appearing in ME9E when JIT job is run in ME38. Post that form should be sent as email attachment post MRP run/ME84.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What's done:&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;1. Created custom FORM, INTERFACE &amp;amp; Driver Program.&lt;/P&gt;&lt;P&gt;2. Configured NACE with Program Name, Routine - ENTRY_LPJE_AUTO (same as standard), FORM and type PDF.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem :&lt;/STRONG&gt;&amp;nbsp;When we run JIT Schedule in ME38 (&lt;EM&gt;edit &amp;gt; Generate JIT Schedule..&lt;/EM&gt; )&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. First we encountered dump&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;CX_SY_DYN_CALL_PARAM_MISSING&lt;/FONT&gt;&amp;nbsp;&lt;/STRONG&gt;in Standard program&amp;nbsp;&lt;STRONG&gt;SAPLV61B&amp;nbsp;&lt;/STRONG&gt;in Include&amp;nbsp;&lt;STRONG&gt;LV61BF0N&lt;/STRONG&gt; in Perform&amp;nbsp;&lt;STRONG&gt;nnast_aende_check&lt;/STRONG&gt; in below mentioned line.&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;* Routine für Änderungsnachricht vorhanden -&amp;gt; ausführen
          PERFORM (p_arout) IN PROGRAM (p_aprog).&lt;/LI-CODE&gt;&lt;P&gt;To fix this we removed the USING parameters from our custom program's routine call entry_lpje_auto (&lt;EM&gt;below&lt;/EM&gt;)&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;*FORM entry_lpje_auto USING pv_returncode pv_us_screen. "commented this it was ent_retco and ent_screen.

FORM entry_lpje_auto.&lt;/LI-CODE&gt;&lt;P&gt;This is standard code for reference Standard code&amp;nbsp;&lt;STRONG&gt;SAPFM06P&lt;/STRONG&gt; Include&amp;nbsp;&lt;STRONG&gt;FM06PE02&lt;/STRONG&gt; -&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;FORM entry_lpje_auto USING ent_retco ent_screen.

  DATA: lf_retcode TYPE sy-subrc,
        l_druvo    LIKE t166k-druvo.

  l_druvo = 'A'.
  CALL FUNCTION 'ISAUTO_ESCR_PRINT_FRC_JIT'
    EXPORTING
      ix_nast          = nast
      ix_tnapr         = tnapr
      ix_screen        = ent_screen
      ix_toa_dara      = toa_dara                             "520228
      ix_arc_params    = arc_params                           "520228
    IMPORTING
      EX_RETCODE       = lf_retcode
    CHANGING
      ix_druvo         = l_druvo.

  IF lf_retcode NE 0.
    ent_retco = 1.
  ELSE.
    ent_retco = 0.
  ENDIF.

ENDFORM.&lt;/LI-CODE&gt;&lt;P&gt;2. To fix this we fix above dump we removed the parameters which brought us to the next error that was &lt;FONT color="#FF0000"&gt;TABLE &lt;STRONG&gt;NAST&lt;/STRONG&gt; was empty&lt;/FONT&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To fix above we went to the standard code&amp;nbsp;&lt;STRONG&gt;SAPLV61B&amp;nbsp;&lt;/STRONG&gt;and checked that &lt;STRONG&gt;NAST&lt;/STRONG&gt; was empty but &lt;STRONG&gt;XNAST&amp;nbsp;&lt;/STRONG&gt;was populated my adding Include &lt;STRONG&gt;messdata. &lt;/STRONG&gt;After this program procceds further.&lt;/P&gt;&lt;P&gt;3. Function &lt;EM&gt;&lt;STRONG&gt;FP_JOB_OPEN&lt;/STRONG&gt;&lt;/EM&gt; gets triggered and output device (LP01) is being asked here. &lt;FONT color="#FF0000"&gt;Problem (3) is this shouldn't be asked. How to make it run without the popup and pre-configured.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;4. From is being displayed, after that &lt;FONT color="#FF0000"&gt;email is being sent directly without ME84&lt;/FONT&gt;&amp;nbsp;(code has bcs class sending email) and then we are being sent to &lt;STRONG&gt;ME38&lt;/STRONG&gt; and where we click save and when we exit the transaction, me get a message that &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;"Update was cancelled"&lt;/STRONG&gt;&lt;/FONT&gt; and runtime error is there in &lt;STRONG&gt;ST22 &lt;/STRONG&gt;in Program&amp;nbsp;&lt;STRONG&gt;RSNAST00 &lt;/STRONG&gt;with exception&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;CX_SY_DYN_CALL_PARAM_NOT_FOUND&lt;/FONT&gt;&amp;nbsp;&lt;/STRONG&gt;error &lt;STRONG&gt;PERFORM_TOO_MANY_PARAMETERS&lt;/STRONG&gt;.&lt;/FONT&gt;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;  944
  945     perform (tnapr-ronam) in program (tnapr-pgnam) using returncode
  946                                                          us_screen
  947                                                          if found.
  948 * restore original NAST record (in case TNAPR-RONAM changed something)
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;     nast = temp_nast.
  950 * return code unchanged: program didn't behave properly&lt;/LI-CODE&gt;&lt;P&gt;When trying to debug this if placed a breakpoint, that breakpoint is not being triggered. Help would be deeply appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 19:47:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-driver-program-jit-schedule-adobe-form-program/m-p/13992411#M2038327</guid>
      <dc:creator>mdmanjarejaz</dc:creator>
      <dc:date>2025-01-21T19:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to write driver program JIT Schedule Adobe form program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-driver-program-jit-schedule-adobe-form-program/m-p/13999616#M2038371</link>
      <description>&lt;P&gt;If anyone stumbles from same problem the issue was the form was configured twice. Once in NACE output type pdf and once in program sequence in output details in top left of NACE outputs.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 17:33:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-driver-program-jit-schedule-adobe-form-program/m-p/13999616#M2038371</guid>
      <dc:creator>mdmanjarejaz</dc:creator>
      <dc:date>2025-01-28T17:33:00Z</dc:date>
    </item>
  </channel>
</rss>

