Upload and compare commodity codes in SAP

Hi Gurus,
Can anyone guide me on how transactions VEU4 and VE14 are used?
Are there any pdfs or tutorials available?
Thanks,

Hi,
please use this link
http://help.sap.com/saphelp_gts71/helpdata/en/04/b95d3f7d77a800e10000000a114084/content.htm
it may be usefull for u.
Loading Commodity Codes and Import Code Numbers
Use
This procedure describes how to load an external file containing commodity codes or import code
numbers for use in your system.
Prerequisites
u2022 The external file must be in ASCII format
u2022 You need to know the structure of the file u2013 which columns (positions) the codes, the text
descriptions and the units of measure occupy.
Procedure
1. You access this function from the Foreign Trade Data Service Cockpit.
2. Choose the appropriate tab u2013 European Union, Japan or Other u2013 in the Load/Compare
section of the Data Service Cockpit. Choose the Load commodity code button next to the
Commodity code field to display the selection criteria screen.
3. Enter the selection criteria and the file specifications.
Entries in the following fields are mandatory:
u2013 Country key
u2013 File name
u2013 Drive
u2013 Subdirectory
u2013 Initial position goods number
u2013 Final position goods number
u2013 Initial position goods text
u2013 Final position goods text
See the field help (F1) for detailed information about each of the fields in this procedure.
You can determine the actual positions of the columns for the data record structure
entries by opening the ASCII file and counting the spaces used for the digits and the
text characters. For this you need to identify the beginning and end positions of the
codes, their texts and units of measure (when applicable) and enter them in the
corresponding fields.
For example, for a commodity code file with the contents "12345678 Sample text"
(with no unit of measure), you should make the following entries in the data record
structure section:
Data Record Structure
Field
Entry
Initial pos. goods no.
1
Final pos. goods no.
8
Initial pos. goods text
10
Final pos. goods text
21
If there is no unit of measure (optional entry), the last position for the goods text can be a
number that is much greater than the actual final position for the goods text (for example,
200).
4. If you want to use this set of codes as the basis for maintaining the codes in the system,
select Carry out preparations and enter an identification code in the Key for upload field. You
will need this key to access this set of codes during maintenance.
5. If you are installing codes from floppy disks or several files
u2013 For the first disk or file, select First data carrier
<![if !supportLists]>u2013 <![endif]>For additional disks or files, select Further data carriers
6. Execute the function.
Results
The system uploads the file contents to the SAP System.
Potential Errors
When you execute this report, the system issues an error message if
u2022 The values for the beginning and end positions overlap
u2022 You enter an incorrect length for a commodity code or import code
number
u2022 The length for the codes has not been maintained for the country you
enter on the selection screen.
You assign commodity code and import code lengths for each country in
Table T609S in Customizing (see Sales u2192 Foreign Trade/Customs u2192
Basic Data for Foreign Trade u2192 Length of commodity Codes/Import
Code Numbers).
Bset regards,
venkataswamy.y

Similar Messages

  • Wht is performance Management and it t-code in SAP Hr

    Hi expart ,
    can u tell me wht is performance Management and it t-code in SAP Hr
    Regards
    razz

    Hi,
    performance mangt is an upcomming  part of  HCM  which  involes  the process reagarding employee performance calculations in term of final appraisals on certain periods. This allow both the employee and the managers to fill the appraisla documents/templates..
    T-code are :  APPCREATE and PHAP-*
    Regards
    lakhan

  • Report or FM to Upload and save a file to SAP

    Hello All,
    I have a requirment to upload a file and save it into SAP ( Something similar to attaching a Document to a standard SAP transaction say IE01/IE02 transaction ).
    I want to store a document for each record of an ALV grid report. That is, each row on the ALV grid can have a link to a document. Also a new document can be uploaded and saved for each row.
    If any one has worked on a similar requirment , please do write back.
    Thanks,
    Ketan.

    For the html form, u need:
    <FORM METHOD="POST" ACTION="servletOrJsp" ENCTYPE="multipart/form-data">
    <INPUT TYPE="FILE" NAME="FILE1" SIZE="50"><BR>
    <INPUT TYPE="SUBMIT" VALUE="Upload">
    </FORM>
    In the servlet/jsp, you need to handle multipart request which you can't get it by just request.getParameter("FILE1").
    Try jspSmartUpload, is a free and easy to use API specifically designed in this situation. The examples given are pretty straight forward :)
    http://www.jspsmart.com

  • Read IDOC WMMBID02 information and compare inventory data with SAP

    Hi All,
    Here is an explanation of the issue:
    I need to read the data from an inbound IDOC, status 64, of standard type WMMBID02 and message type WMMBXY. I do not want to post the IDOC, but only read the IDOC information which is mainly the material number, batch, status(INSMK), quantity and unit. This data I have to compare with SAP data and see if it is same for the selected material numbers. Now to read and process the inbound IDOC we have a program RBDAPP01 (BD20 Transaction) which calls the process code WMMB (WE42 transaction) which in turn calls the function module L_IDOC_INPUT_WMMBXY. This FM posts the IDOC. I have created a function module with the same import, export and tables parameters like this FM and have attached it to a custom process code ZWMMB. This function module should just read the data of the IDOC and put it in the table TB_IDOC_DATA like EDIDD (IDOC data records). I then loop into this table, extract SDATA and split it into the 3 segments of WMMBID02 and then extract my required data, MATNR, CHARG, INSMK, MENGE & MEINS.
    My Question:
    How do I trigger the process code ZWMMB so that I can read the IDOC data when it is fired (status 64), just like program RBDAPP01. Is there any standard code that can be copied and modified or how to do it???
    I have tried to be very clear with the question, please reply if the question is not clear. If I am clear, please help
    Thanks Anirban

    I am able to read the contents of the IDOC, but I need to run the FM when I fire the IDOC of message type ZWMMBXY. I have created a custome FM which will behave as a stndard FM for inbound IDOC processing.

  • SAP Foreign Trade- Search commodity code by keyword

    Hello,
    In the IMG, I noticed a configuration area titled "Maintain Keywords for Commodity Codes". I was wondering if anyone could give me a hint as to how to take advantage of this (without abap would be wonderful)? I have searched help and OSS, but can't seem to find anything. I was hoping it would enable the user to type a keyword into the comm. code field on the material master and the system return a number of matches... Any ideas?
    Thanks in advance!!!

    Hi Jeff,
    What sap syays on this!
    Before you can calculate the duties that must be paid on your imported goods, you must correctly classify the product based on its commodity code or import code number (the first six digits are always the same internationally). These codes are found in the Harmonized Commodity Description and Coding System (usually known as the HS or Harmonized System). Once you have determined the code for the goods, you can determine the rate of duty in the harmonized tariff schedule. Tariff schedule rates differ for each country and, in cases involving a quota, these rates are usually higher once the quota
    Code from the Harmonized Commodity Description and Coding System (usually known as the HS or Harmonized System). These codes provide a standard way to identify materials for a country's export and import reporting systems.
    The first six digits of a material's code number are standard internationally, but each country adds extra digits to the codes to further assign materials in its own classification system. In the USA and Japan, commodity codes are 10 digits in length. In Europe, the length of these codes vary from 8 to 12 digits. Codes used for importing goods tend to be longer in length than those used for export.
    Additional information for USA:
    In the US, codes from the Harmonized Tariff Schedule of the USA (HTSUSA) are used to classify import goods. With a few exceptions that are outlined in a notice to exporters, it may also be used to classify export goods. Schedule B is the official listing of commodity classifications used by shippers to report export shipments from the United States and in compiling the official statistics on exports of merchandise from the U.S.
    Hope this helps you.
    Thank you.
    Regards,
    Karun.M

  • Error while uploading commodity codes in VEU4

    Hello
    I am trying to upload around 200 commodity codes for MM through VEU4. Initially i got the following error
    Maintain the length of the comm.code / import code no. in table T609S for the country PK
    Message no. EI025
    But then I configured length for the country PK in SPRO -> MM ->Purchasing -> Foreign Trade/Customs -> Basic Data for foreign trade - > Length of commodity code.
    Country: PK
    Arrival/ Dispatch:1
    Length: 9
    But now when i execute tcode VEU4 i again get the error
    But then I configured length for the country PK in SPRO -> MM ->Purchasing -> Foreign Trade/Customs -> Basic Data for foreign trade - > Length of commodity code.
    I am entering the following information in VEU4
    Country: PK
    Source File: comm.txt
    Source Drive: C
    Initial item goods no: 1
    Final item goods no: 9
    Initial item goods text: 11
    Final item goods text:: 30
    Kindly please help!
    - Regards
    Sahar Khalid

    Syed Nasir explained it well :
    Further there is a blue info button in the selection screen, which gives you instructions too.
    Edited by: Jürgen L. on May 13, 2011 5:13 PM

  • To upload and store documents in SAP

    Hi,
    Can anyone help me as to how to upload and store documents directly into SAP , something similar to attaching documents in standard SAP transactions.
    Thanks,
    Ketan.

    Hi,
    Use tcode CV01N to create/CV02N (change)/CV03N to Display. U may require to do little bit config.
    If helpful pl reward.
    Cheers.

  • LSMW for Commodity Code

    HI Experts,
    does enyone know the name of direct input, which transfer commodity code to SAP?
    I can't do it by batch input recording becouse i don't have direct transaction in spro to filling the commodity code.
    Thanks for reply
    Kasia.

    follow the menu path Logistics > SD > foreign trade > data service > service > Load / Compare >  (your region) >  Load commodity code
    Please read OSS note 1034696

  • Spend Analysis for Commodity Code in ECC6

    Hi,
    I wonder if there is any way for spend analysis references to commodity code in SAP R3 as we are not using SAP SRM?
    If there is any option in ECC6 then;
    a) Which field/view maintained for Commodity code at Material Master?
    b) Which field maintained for Commodity code at /PO/Contract/RFQ/Purchase Requisition (Header level or item level)?
    c) How spend analysis can be reported based on commodity code? (Standard report, Z custom report, BI report)
    Thanks,
    Shah.

    Hi,
    These are the reports available in ECC for Commodity wise reporting. Regarding once maintained in material master, how far these serve your purpose you can test.
    MC.3 This report will help you in getting the information on the inventory turn over ratio by Commodity.
    MC45 This report identifies the share of the usage value to the total usage. You can also see the report graphically for a selected material in detail screen.
    MCE5 This program will give you information on purchase value, invoice value during a selected period. However for these reports it is necessary to update the relevant LIS structure.
    MCEC This report can be used for Purchase budget requirement. However for this report to work, long term planning functionality should be put in use.

  • How to compare the codes written in two different windows?

    Hi ,
    I have a long code written for a FM.
    Now I have got the same code in a notepad.
    I want to check weather the codes in the two windows are exactly alike.
    Is there any easy way to do this?

    hi Harshit Rungta ,
    T-code SE39 - ABAP split screen editor use to compare 2 different programs ,function modules ,class
    just create a function module that available in notepad and compare the code which u have already .
    choose the function radio button while checking the function module .
    regards
    chinnaiya

  • Mass upload of commodity code VEU4

    Hi,
    While doing Mass uploading of commodity codes using VEU4 for Non European Clountry, for the Additional Info field NIHON , system by default generates =2 but our requirement it has to have a default value=0 which is to be used for both Import and Export.
    How to make the field NIHON value=0?
    Is it in the Text file or somewhere in the config?
    Regards,
    Vengat

    Hi Jurgen,
    Thanks Very much, it helped.
    Actual my requirement is to load the Commodity codes with the Field NIHON = 0 so that the commodity can be used for both Import and Export.
    If I upload the text file in VIU4, by default system takes to NIHON = 1,
    If I upload the text file in VEU4, by default system takes to NIHON = 2.
    As mentioned in the OSS 1034696
    If you confirm the dialog box with 'Yes', the system checks whether the 'Additional information' indicator of the old entry and the new entry are set differently. If this is the case, the system sets the 'Additional information' field to value 0 (Receipt / Import and Dispatch / Export).
    Hence I have to execute the file in VIU4 or VEU4 for the first time to mass load of the commodity code ( by default it takes 1 or 2)
    So to change the value from 1 or 2 to 0, need to execute the same file second time with YES in the dialog Box for the same data.
    Note sure why SAP is so rigid here in this field NIHON as the same can be one of the Selection field.
    Regards,
    Vengat
    Edited by: Vengata Raghavan on Aug 12, 2011 4:54 PM
    Edited by: Vengata Raghavan on Aug 12, 2011 4:55 PM

  • Problem while uploading commodity codes useing ve94.

    Hi ,
    I am uploading the commodity codes for country france and i am getting the error commodity code length is not correct.
    i have checked the length for country for france and it is 9 but the flat file has 8 characters only.
    So my question is can we change the length of the commodity code?
    because these lengths are defined by SAP.
    Is there any other option to upload. I can't do manually because 9700 entries are there.
    Please suggest me.
    Thanks,
    Ibrahim.

    Syed Nasir explained it well :
    Further there is a blue info button in the selection screen, which gives you instructions too.
    Edited by: Jürgen L. on May 13, 2011 5:13 PM

  • Upload 2 files and compare its contents

    Hi guys,
    I want to upload 2 files in SAP and compare its contents.
    How am i going to do that?
    Please provide sample code... Thanks a lot!
    rgds,
    Mark

    Hi Mark,
    I expected to use this code, once u can try this code.
      OPEN DATASET lv_filename FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
      IF sy-subrc = 0.
        LOOP AT gi_output1 INTO gwa_output1.
          CLEAR lv_string.
          CONCATENATE gwa_output1-matnr
                      gwa_output1-maktx
                      gwa_output1-werks
                      gwa_output1-bmeng
                      gwa_output1-posnr
                      gwa_output1-idnrk
                      gwa_output1-ojtxp
                      gwa_output1-mngko
                      gwa_output1-mmein
                      gwa_output1-flag
                      INTO lv_string
                      SEPARATED BY cl_abap_char_utilities=>horizontal_tab.
          TRANSFER lv_string TO lv_filename.
          IF sy-subrc <> 0.
            MESSAGE e006(zpdm).
          ENDIF.              "if sy-subrc <> 0.
        ENDLOOP.
         OPEN DATASET lv_filename FOR appending IN TEXT MODE ENCODING DEFAULT.
      IF gi_output2[] is not initial.
        LOOP AT gi_output2 INTO gwa_output2.
          CLEAR lv_string.
          CONCATENATE gwa_output2-matnr
                      gwa_output2-ojtxb
                      gwa_output2-werks
                      gwa_output2-bmeng
                      gwa_output2-posnr
                      gwa_output2-idnrk
                      gwa_output2-ojtxp
                      gwa_output2-mngko
                      gwa_output2-mmein
                      gwa_output2-flag
                INTO  lv_string
           SEPARATED BY cl_abap_char_utilities=>horizontal_tab.
          TRANSFER lv_string TO lv_filename.
          IF sy-subrc <> 0.
            MESSAGE e007(zpdm). " WITH text-006.
          ENDIF.           "if sy-subrc <> 0.
        ENDLOOP.
      ENDIF.

  • To upload a RTF and a PDF file to SAP R/3 and print the same through SAP

    Hi,
    I have a requirement to upload a PDF file and a RTF file to SAP R/3 and print the same.
    I wrote the following code for uploading a RTF file to SAP R/3 and print the same. However, the problem is , the formatting present in the RTF document( bold/italics..etc) is not being reflected when I do the 'print-preview' after the executing the code below :
    report z_test_upload .
    data: begin of itab occurs 0,
             rec type string,
          end of itab.
    data: options like itcpo.
    data: filename type string,
          count type i.
    data: filetype(10) type c value 'ASC'.
    DATA: HEADER  LIKE THEAD    OCCURS   0 WITH HEADER LINE.
    DATA: NEWHEADER  LIKE THEAD    OCCURS   0 WITH HEADER LINE.
    DATA: ITFLINE LIKE TLINE    OCCURS   0 WITH HEADER LINE.
    DATA: RTFLINE LIKE HELP_STFA OCCURS   0 WITH HEADER LINE.
    DATA:   string_len TYPE i,
            n1 TYPE i.
    selection-screen begin of block b1.
      parameter: p_file1(128) default 'C:\test_itf.rtf'.
    selection-screen end of block b1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file1.
      CALL FUNCTION 'F4_FILENAME'
           IMPORTING
                file_name = p_file1.
    start-of-selection.
    move p_file1 to filename.
    call function 'GUI_UPLOAD'
         EXPORTING
              filename                = filename
              filetype                = filetype
         TABLES
              data_tab                = itab
         EXCEPTIONS
              file_open_error         = 1
              file_read_error         = 2
              no_batch                = 3
              gui_refuse_filetransfer = 4
              invalid_type            = 5
              no_authority            = 6
              unknown_error           = 7
              bad_data_format         = 8
              header_not_allowed      = 9
              separator_not_allowed   = 10
              header_too_long         = 11
              unknown_dp_error        = 12
              access_denied           = 13
              dp_out_of_memory        = 14
              disk_full               = 15
              dp_timeout              = 16
              others                  = 17.
    if sy-subrc <> 0.
      message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    loop at itab.
      string_len = strlen( itab-rec ).
      n1 = string_len DIV 134.
      ADD 1 TO n1.
      DO n1 TIMES.
        rtfline-line = itab-rec.
        APPEND rtfline.
        SHIFT itab-rec BY 134 PLACES.
      ENDDO.
    endloop.
    HEADER-TDSTYLE = 'S_DOCUS1'.
    HEADER-TDFORM = 'S_DOCU_SHOW'.
    header-tdspras = 'E'.
    CALL FUNCTION 'CONVERT_TEXT'
      EXPORTING
      CODEPAGE               = '0000'
        DIRECTION              = 'IMPORT'
        FORMAT_TYPE            = 'RTF'
       FORMATWIDTH            = 72
        HEADER                 = header
        SSHEET                 = 'WINHELP.DOT'
        WITH_TAB               = 'X'
        WORD_LANGU             = SY-LANGU
        TABLETYPE              = 'ASC'
      TAB_SUBSTITUTE         = 'X09  '
      LF_SUBSTITUTE          = ' '
      REPLACE_SYMBOLS        = 'X'
      REPLACE_SAPCHARS       = 'X'
      MASK_BRACKETS          = 'X'
      IMPORTING
        NEWHEADER              = NEWHEADER
      WITH_TAB_E             =
      FORMATWIDTH_E          =
      TABLES
        FOREIGN                = RTFLINE
        ITF_LINES              = ITFLINE.
      LINKS_TO_CONVERT       =
    if sy-subrc <> 0.
    endif.
    CALL FUNCTION 'PRINT_TEXT_ITF'
      EXPORTING
         HEADER        = newheader
         OPTIONS       = options
    IMPORTING
      RESULT        =
      TABLES
        LINES         = itfline.
    if sy-subrc <> 0.
    endif.
    Any hints or suggestions to solve this problem will be highly appreciated.
    Thanks,
    Avra

    Hi Vishwas,
    Check out the thread [Efficient way of saving documents uploaded|Re: Efficient way of saving documents uploaded by users; and check the blog by Raja Thangamani.
    Also check the thread [Export Images through Function Modules   |Export Images through Function Modules;.
    Hope it helps you.

  • Creation of Import Control/commodity codes and Language translation

    Dear All,
    My requirement is to maintain new control codes for country India for the different Custom duty rates and to maintain the condition records for all the condition types associated with Customs Duty.
    1) I have already maintained chapter-ids in J1ID on production.
    2) In SPRO, I have defined new Commodity codes/import code by country for which a customizing request is generated on    
         development server, the menu path being:-
                         - Sales & Distribution
                              - Foreign Trade/Customs
                                  - Basic data for foreign trade
                                       - "Define commodity code/import code numbers by country"
    Query :- Now, my customizing request is pending and I have been asked to maintain the the translation for all new created commodity codes and have also been asked to copy the English description to all existing languages.
    I need to know at an earliest how to maintain the translation for the newly created codes.
    Hope I have made my query clear !

    Hi,
    Please gothroufh the Link
    http://help.sap.com/saphelp_erp2004/helpdata/EN/93/744afe546011d1a7020000e829fd11/content.htm
    You can also get more details on Foreign trade & Customs in SAP help portal
    http://help.sap.com/saphelp_erp2004/helpdata/EN/d8/2585347860ea35e10000009b38f83b/frameset.htm
    Thanks,
    Raja
    Edited by: Raja Singh Chhabeda on Jul 22, 2008 8:10 PM

Maybe you are looking for