Quantcast
Channel: SCN: Message List - ABAP Connectivity
Viewing all articles
Browse latest Browse all 3125

Re: IDOC WPUBON problem

$
0
0

Hi, Dheeraj!

 

I changed the FM /POSDW/IDOC_OUTPUT_WPUBON (form map_e1wpb02).

In the section (map taxes), I changed the structure from E1WPB04 to E1WPB03.


Follow my abap code:



    *map taxes

    LOOP AT lw_retaillineitem-tax INTO lw_item_tax.

 

 

      APPEND INITIAL LINE TO pet_edidd ASSIGNING <fs_edidd>.

   <fs_edidd>-segnam = 'E1WPB03'.

  

      CLEAR ls_e1wpb03.

  

      ls_e1wpb03-kondition =   lw_item_tax-taxtypecode.

 

 

      IF l_return_item = '1'.

        MULTIPLY lw_item_tax-taxamount BY -1.

      ENDIF.

 

 

      CALL FUNCTION '/POSDW/CURRENCY_DECIMALS_OUT'

        EXPORTING

          pi_amount          = lw_item_tax-taxamount

          pi_retailstoreid   = pis_transaction-retailstoreid

          pi_businessdaydate = pis_transaction-businessdaydate

          pi_transindex      = pis_transaction-transindex

        IMPORTING

          pe_amount          = l_kondvalue

        CHANGING

          pc_currency        = l_currency.

      SHIFT l_kondvalue LEFT DELETING LEADING '0 '.

      ls_e1wpb03-kondvalue   =  l_kondvalue.

 

 

      MOVE ls_e1wpb03 TO <fs_edidd>-sdata.

 

 

    ENDLOOP.

 

 

 


Viewing all articles
Browse latest Browse all 3125

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>