<?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: Serial Numbers in Smartforms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/serial-numbers-in-smartforms/m-p/3549308#M853924</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any clue please....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Mar 2008 09:25:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-19T09:25:52Z</dc:date>
    <item>
      <title>Serial Numbers in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/serial-numbers-in-smartforms/m-p/3549305#M853921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a problem in smartforms regarding serial numbers. When I print the outbound delivery the serial numbers which are given are printing correctly. When we make Invoice for these O/B delivery the serial numbers are printing correctly in the invoice form also. My problem when they are making partial delivery the serial numbers assigned to the outbound(O/B) delivery are picking up correctly in the form but when we make the invoice for the above partial delivery the invoice are repeating of the previous O/B delivery serial numbers. This problem in repeation of serial numbers in Invoices are happening only in partial deliveries only. Can any one help me how to correct my code in smartforms OR is there other way the partial deliveries to be given so that they print the same serial numbers in both the forms in O/B delivery as well as Invoices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Awaiting for a quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2008 07:47:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/serial-numbers-in-smartforms/m-p/3549305#M853921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-19T07:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Serial Numbers in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/serial-numbers-in-smartforms/m-p/3549306#M853922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u tell me to get a serial no how u r writing code.&lt;/P&gt;&lt;P&gt;wether ur using the any system variable or ur writing ur own code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2008 08:08:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/serial-numbers-in-smartforms/m-p/3549306#M853922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-19T08:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Serial Numbers in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/serial-numbers-in-smartforms/m-p/3549307#M853923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The below is the code return in Smartforms for getting serial numbers. In text i kept the variables to pick the serial numbers &amp;amp;MSRNO1&amp;amp; &amp;amp;MSRNO2&amp;amp; &amp;amp;MSRNO3&amp;amp;. If the delivery is partial the serial numbers assigned to O/B delivery are coming correctly in invoice for the first time. If they make delivery next time the serial numbers assigned in O/B delivery are not coming in the invoice they are repeating from the 1st delivery. If the delivery is not partial then they is no problem only with partial deliveries only. Kindly help me out to solve. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any one used serial numbers in Invoice kindly give me code so accordingly i ll change to my requirement. Awaiting for a quick reponse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: MSERNP  LIKE MARC-SERNP,&lt;/P&gt;&lt;P&gt;MDLVNO  LIKE LIPS-VBELN,&lt;/P&gt;&lt;P&gt;MDLVITM LIKE LIPS-POSNR,&lt;/P&gt;&lt;P&gt;MSONO   LIKE VBAP-VBELN,&lt;/P&gt;&lt;P&gt;MSOITM  LIKE VBAP-POSNR,&lt;/P&gt;&lt;P&gt;MCNTR TYPE I,&lt;/P&gt;&lt;P&gt;MLEN  TYPE I,&lt;/P&gt;&lt;P&gt;MCOMMA(1) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF I_SER01 OCCURS 0,&lt;/P&gt;&lt;P&gt;SERNR    LIKE OBJK-SERNR,&lt;/P&gt;&lt;P&gt;END OF I_SER01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE IS_BIL_INVOICE-IT_REFORD INTO GS_IT_REFORD&lt;/P&gt;&lt;P&gt;WITH KEY BIL_NUMBER = GS_IT_GEN-BIL_NUMBER&lt;/P&gt;&lt;P&gt;ITM_NUMBER = GS_IT_GEN-ITM_NUMBER.&lt;/P&gt;&lt;P&gt;MSONO  = GS_IT_REFORD-ORDER_NUMB.&lt;/P&gt;&lt;P&gt;MSOITM = GS_IT_REFORD-ITM_NUMBER_ORD.&lt;/P&gt;&lt;P&gt;MSERNP = MDLVNO = MDLVITM = ''.&lt;/P&gt;&lt;P&gt;MSRNO0 = MSRNO1 = MSRNO2 = MSRNO3 = ''.&lt;/P&gt;&lt;P&gt;SELECT SINGLE MARC&lt;SUB&gt;SERNP LIPS&lt;/SUB&gt;VBELN LIPS~POSNR&lt;/P&gt;&lt;P&gt;INTO (MSERNP, MDLVNO, MDLVITM)&lt;/P&gt;&lt;P&gt;FROM MARC&lt;/P&gt;&lt;P&gt;JOIN LIPS ON LIPS&lt;SUB&gt;MATNR = MARC&lt;/SUB&gt;MATNR&lt;/P&gt;&lt;P&gt;AND          LIPS&lt;SUB&gt;WERKS = MARC&lt;/SUB&gt;WERKS&lt;/P&gt;&lt;P&gt;WHERE LIPS~VGBEL = MSONO&lt;/P&gt;&lt;P&gt;AND   LIPS~VGPOS = MSOITM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT MSERNP IS INITIAL.&lt;/P&gt;&lt;P&gt;SELECT OBJK~SERNR&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE I_SER01&lt;/P&gt;&lt;P&gt;FROM SER01&lt;/P&gt;&lt;P&gt;JOIN OBJK ON OBJK&lt;SUB&gt;OBKNR = SER01&lt;/SUB&gt;OBKNR&lt;/P&gt;&lt;P&gt;WHERE SER01~LIEF_NR = MDLVNO&lt;/P&gt;&lt;P&gt;AND   SER01~POSNR   = MDLVITM.&lt;/P&gt;&lt;P&gt;SORT I_SER01 BY SERNR.&lt;/P&gt;&lt;P&gt;MCNTR = 1.&lt;/P&gt;&lt;P&gt;MSRNO0 = MSRNO1 = MSRNO2 = MSRNO3 = ''.&lt;/P&gt;&lt;P&gt;LOOP AT I_SER01.&lt;/P&gt;&lt;P&gt;IF I_SER01-SERNR(1) = '0'.&lt;/P&gt;&lt;P&gt;IF I_SER01-SERNR CA 'ABCDEFGHIJKLMNOPRSTUVWXYZabcdefghijklmnopqrstuvwxyz-/#,.'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;IF SY-FDPOS = 0 OR SY-FDPOS = 18.&lt;/P&gt;&lt;P&gt;PACK I_SER01-SERNR TO I_SER01-SERNR.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;CONDENSE I_SER01-SERNR.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;IF MCNTR = 1.&lt;/P&gt;&lt;P&gt;IF NOT MSRNO1 IS INITIAL AND NOT MSRNO0 IS INITIAL.&lt;/P&gt;&lt;P&gt;MCOMMA = ', '.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;MCOMMA = ''.&lt;/P&gt;&lt;P&gt;MSRNO1 = ''.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;CONCATENATE MSRNO1 MCOMMA I_SER01-SERNR INTO MSRNO0.&lt;/P&gt;&lt;P&gt;MLEN = STRLEN( MSRNO0 ).&lt;/P&gt;&lt;P&gt;IF MLEN &amp;lt; 255.&lt;/P&gt;&lt;P&gt;CONCATENATE MSRNO1 MCOMMA I_SER01-SERNR INTO MSRNO1.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;MCNTR = 2.&lt;/P&gt;&lt;P&gt;MSRNO0 = ''.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;IF MCNTR = 2.&lt;/P&gt;&lt;P&gt;IF NOT MSRNO2 IS INITIAL AND NOT MSRNO0 IS INITIAL.&lt;/P&gt;&lt;P&gt;MCOMMA = ', '.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;MCOMMA = ''.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;CONCATENATE MSRNO2 MCOMMA I_SER01-SERNR INTO MSRNO0.&lt;/P&gt;&lt;P&gt;MLEN = STRLEN( MSRNO0 ).&lt;/P&gt;&lt;P&gt;IF MLEN &amp;lt; 255.&lt;/P&gt;&lt;P&gt;CONCATENATE MSRNO2 MCOMMA I_SER01-SERNR INTO MSRNO2.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;MCNTR = 3.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;IF MCNTR = 3.&lt;/P&gt;&lt;P&gt;IF NOT MSRNO3 IS INITIAL AND NOT MSRNO0 IS INITIAL.&lt;/P&gt;&lt;P&gt;MCOMMA = ','.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;MCOMMA = ''.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;CONCATENATE MSRNO3 MCOMMA I_SER01-SERNR INTO MSRNO0.&lt;/P&gt;&lt;P&gt;MLEN = STRLEN( MSRNO0 ).&lt;/P&gt;&lt;P&gt;IF MLEN &amp;lt;= 255.&lt;/P&gt;&lt;P&gt;CONCATENATE MSRNO3 MCOMMA I_SER01-SERNR INTO MSRNO3.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;MCNTR = 4.&lt;/P&gt;&lt;P&gt;MSRNO0 = ''.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2008 08:18:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/serial-numbers-in-smartforms/m-p/3549307#M853923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-19T08:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Serial Numbers in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/serial-numbers-in-smartforms/m-p/3549308#M853924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any clue please....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2008 09:25:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/serial-numbers-in-smartforms/m-p/3549308#M853924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-19T09:25:52Z</dc:date>
    </item>
  </channel>
</rss>

