<?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: Bapi/Function for Packing Instructions in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-for-packing-instructions/m-p/5737713#M1301073</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;now I'm using VHUPIBAPI_PACK_INST_FIND to fin the pack.instruction, but the BAPI return following pack.instr. number:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IVPHv6g}0MZX08002hqR8m&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't give this number into VHUPIBAPI_BUILD_PACK_INST_TREE to expand the pack.instr. tree, how can I decode this number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 May 2009 07:58:01 GMT</pubDate>
    <dc:creator>former_member611006</dc:creator>
    <dc:date>2009-05-26T07:58:01Z</dc:date>
    <item>
      <title>Bapi/Function for Packing Instructions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-for-packing-instructions/m-p/5737709#M1301069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created Packing Instructions with POF1/POP1, and I want to read these pack.Instr. into an ABAP Program... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How/Where can I find/access to pack.instr. using a Function/BAPI ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 06:46:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-for-packing-instructions/m-p/5737709#M1301069</guid>
      <dc:creator>former_member611006</dc:creator>
      <dc:date>2009-05-26T06:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi/Function for Packing Instructions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-for-packing-instructions/m-p/5737710#M1301070</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;&lt;/P&gt;&lt;P&gt;Check this BAPI's &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VHUPIBAPI_BUILD_PACK_INST_INFO&lt;/P&gt;&lt;P&gt;VHUPIBAPI_BUILD_PACK_INST_TREE&lt;/P&gt;&lt;P&gt;VHUPIBAPI_PACK_INST_FIND&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;Regards,&lt;/P&gt;&lt;P&gt;Jyothi CH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 06:51:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-for-packing-instructions/m-p/5737710#M1301070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T06:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi/Function for Packing Instructions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-for-packing-instructions/m-p/5737711#M1301071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi David,&lt;/P&gt;&lt;P&gt;Below are the FM and Bapi that will help you in getting data related to Packing Instruction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;VHUPO_PACK_INSTRUCTION_CHANGE
VHUPO_PACK_INSTRUCTION_CREATE
VHUPO_PACK_INSTRUCTION_DELETE
VHUPO_PACK_INSTRUCTION_SHOW
VHUPO_PACK_INSTRUCTION_USED
VHUPO_PACK_INSTRUCT_READ_IDENT
VHUPO_PACK_INSTRUCT_UNDELETE

VHUPIBAPI_BUILD_PACK_INST_INFO
VHUPIBAPI_BUILD_PACK_INST_TREE
VHUPIBAPI_PACK_INST_FIND

ABI_PACK_INSTRUCTIONS_GET   -   Retrieve the packing instructions
LXVAS_PACKING_INSTRUCTION_READ - Read packing Instructions of  packing object&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example to read the instruction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;** local variables
  DATA: l_pikp_exp    LIKE  pikp ,
            l_cmvhupo_exp LIKE  cmvhupo ,
            l_pikp_imp    LIKE  pikp .

  l_cmvhupo_exp-nodia = 'X' .   "No Dialog
  l_cmvhupo_exp-contxt = '3' .  "Display packing instructions
  l_pikp_exp-packnr    =  packnr " pass the Unique internal packing object number.
  l_pikp_exp-piid      = piid ." pass the Identification number of packing instruction

** call standard function to retrieve values
  CALL FUNCTION 'VHUPO_PACK_INSTRUCTION_SHOW'
    EXPORTING
      pikp_imp                = l_pikp_exp
      cmvhupo_imp         = l_cmvhupo_exp
   IMPORTING
     pikp_exp                = l_pikp_imp
   EXCEPTIONS
     locked                   = 1
     not_found              = 2
     data_missed          = 3
     data_wrong            = 4
     quantity_wrong       = 5
     missed_pos_type   = 6
     no_new_number     = 7
     baseunit_wrong      = 8
     not_saved               = 9
     inconsistent            = 10
     marked_for_delete   = 11
     exsist                     = 12
     material_unkown     = 13
     quantity_changed    = 14
     clint_unkown           = 15
     OTHERS                 = 16  .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Padma&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Padmashree RamMaghenthar on May 26, 2009 12:27 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 06:55:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-for-packing-instructions/m-p/5737711#M1301071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T06:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi/Function for Packing Instructions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-for-packing-instructions/m-p/5737712#M1301072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot, points OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 06:57:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-for-packing-instructions/m-p/5737712#M1301072</guid>
      <dc:creator>former_member611006</dc:creator>
      <dc:date>2009-05-26T06:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi/Function for Packing Instructions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-for-packing-instructions/m-p/5737713#M1301073</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;now I'm using VHUPIBAPI_PACK_INST_FIND to fin the pack.instruction, but the BAPI return following pack.instr. number:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IVPHv6g}0MZX08002hqR8m&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't give this number into VHUPIBAPI_BUILD_PACK_INST_TREE to expand the pack.instr. tree, how can I decode this number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 07:58:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-for-packing-instructions/m-p/5737713#M1301073</guid>
      <dc:creator>former_member611006</dc:creator>
      <dc:date>2009-05-26T07:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi/Function for Packing Instructions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-for-packing-instructions/m-p/5737714#M1301074</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;From the FM "&lt;STRONG&gt;VHUPIBAPI_PACK_INST_FIND&lt;/STRONG&gt;" you will get the &lt;STRONG&gt;PACKNR&lt;/STRONG&gt; ( Packing instruction )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using that  &lt;STRONG&gt;PACKNR&lt;/STRONG&gt; ( Packing instruction ) in the FM "&lt;STRONG&gt;LEINT_PACKNR_PARENT_GET&lt;/STRONG&gt;" you will &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get the &lt;STRONG&gt;POBJID&lt;/STRONG&gt; ( identification number of packing object ). You can make use of that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;POBJID&lt;/STRONG&gt; ( identification number of packing object ) in the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM "&lt;STRONG&gt;VHUPIBAPI_BUILD_PACK_INST_TREE&lt;/STRONG&gt;" .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&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;&lt;/P&gt;&lt;P&gt;Smart Varghese&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 08:19:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-for-packing-instructions/m-p/5737714#M1301074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T08:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi/Function for Packing Instructions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-for-packing-instructions/m-p/5737715#M1301075</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;It doesn't seems to work... There is no parent for my pack.instruction. I just want to look if a pack.instr. exists for the material and to build a the tree with all components from this pack.instruction....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my coding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: lw_pinstr  TYPE STANDARD TABLE OF isauto_pinstruction,
        lw_pdetail TYPE STANDARD TABLE OF isauto_pinst_detail.

  DATA ls_komgp   TYPE komgp.
  DATA lw_likp    TYPE likp.
  DATA lw_lips    TYPE lips.
  DATA lw_kondp   TYPE kondp.
  DATA lv_packnr  TYPE LXHME_PACKNR.
  DATA lv_packpa  TYPE LEINT_PACKKP_T.
  DATA lv_packkp TYPE packkp-pobjid.

  SELECT SINGLE * FROM likp
    INTO lw_likp
    WHERE vbeln = lief.

  SELECT SINGLE matnr FROM lips
    INTO lw_lips-matnr
    WHERE vbeln = lief
    AND   posnr = '000001'.

  MOVE '0001'             TO ls_komgp-werks.
  MOVE lw_lips-matnr  TO ls_komgp-matnr.
  MOVE lw_likp-kunag  TO ls_komgp-kunag.

* Search the pack.instruction for the combination key plant/material/sold-to-party
  CALL FUNCTION 'VHUPIBAPI_PACK_INST_FIND'
    EXPORTING
      i_scheme          = 'ZFS1'
      i_komgp           = ls_komgp
*     I_DATE            =
   IMPORTING
     e_kondp            = lw_kondp
*     E_DATE            =
   EXCEPTIONS
     locked            = 1
     not_found         = 2
     fatal_error       = 3
     OTHERS            = 4.
  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.

  MOVE lw_kondp-packnr TO lv_packkp.

* Build pack.instr. Tree
  CALL FUNCTION 'VHUPIBAPI_BUILD_PACK_INST_TREE'
    EXPORTING
      pobjid_i      = lv_packkp
    TABLES
      tpinstruction = lw_pinstr
      tpinst_detail = lw_pdetail
    EXCEPTIONS
      locked        = 1
      not_found     = 2
      fatal_error   = 3
      OTHERS        = 4.
  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;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 10:36:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-for-packing-instructions/m-p/5737715#M1301075</guid>
      <dc:creator>former_member611006</dc:creator>
      <dc:date>2009-05-26T10:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi/Function for Packing Instructions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-for-packing-instructions/m-p/5737716#M1301076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I convert PACKNR = IVPHv6g}0MZX08002hqR8m ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't use it with VHUPIBAPI_BUILD_PACK_INST_TREE...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 13:23:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-for-packing-instructions/m-p/5737716#M1301076</guid>
      <dc:creator>former_member611006</dc:creator>
      <dc:date>2009-05-26T13:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi/Function for Packing Instructions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-for-packing-instructions/m-p/5737717#M1301077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works by using "CONVERSION_EXIT_VHUPI_OUTPUT" !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 09:52:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-for-packing-instructions/m-p/5737717#M1301077</guid>
      <dc:creator>former_member611006</dc:creator>
      <dc:date>2009-05-28T09:52:49Z</dc:date>
    </item>
  </channel>
</rss>

