Foreign trade data default

while doing export billing, foreign trade data is not getting defaulted, how do we get the data like means of transport and domestic mode of transport etc., where do we have maintain these data to get defaulted in billing document
thanks

Dear varada rajan
I am not sure, whether you can, through some IMG setting make default settings for Foreign Trade Data, but however, You can use SAP enhancement V50EPROP to process foreign trade data (ordering as well as sales and distribution processing).
This enhancement is called by program SAPLV50E.
You can use the following components:
EXIT_SAPLV50E_001: SD documents - Header: Export header data proposal
EXIT_SAPLV50E_002: MM documents - Header: Import header data proposal
EXIT_SAPLV50E_003: SD documents - Item: Export item data proposal
EXIT_SAPLV50E_004: MM documents - Item: Import item data proposal
EXIT_SAPLV50E_005: Header data: Check completeness of data
EXIT_SAPLV50E_006: Item data: Check completeness of data
thanks
G. Lakshmipathi

Similar Messages

  • Foreign trade data defaulting to manually processed invoices.

    Hello Experts,
    How to default foreign trade data to manually processing invoices?
    Presently it is being manuallay processed and we need to default this data automatially on Invoice.
    Regards,
    Preeti

    We have maintained all the necessary setups for the foreign trade data.
    however, while creating the billing document for export, it is not auto - defaulting the foreign trade data. can this be autopopulated?
    The source and destination mode of transport.

  • Default foreign trade data

    dear all,
    when i am create export sales, default data for foreign trade data is not getting reflected in the billing and hence showing foreign trade incomplete.
    how can i default the data of foreign trade data
    thanks
    srinivasan

    Hi,
    To check the config if foreign trade data is required or not:
    The "delivery Plant" under Organization tab is determined by your Shipping Point, check that country of your shipping point is the same as your Customer's country, if it is not the same, then Foreign Trade data are expected.
    If yes then,
    In sap main screen,
    Maintain foreign trade data for that material in foreign trade view of material master.
    Go to header data of the billing document
    Select foreign trade then maintain the entries mode of transport, country of origin if entries not found click on F4 in the field and select create tab in the field itself it will navigate you to the path maintain entries
    Then save the billing document.
    In configuration SPRO screen,
    Check the shipping point in sales order ,
    Also check the SAP Note No 313188 with your BASIS person.
    You require to do the necessary configuration for Foreign Trade Data:
    IMG --> Sales and Distribution --> Foreign Trade/Customs --> Basic Data for Foreign Trade --> (Do the necessary configuration here).
    In most probability, it will not default, but it is required to be maintained in Invoice (based on configuration)
    Regards,
    Siddharth.
    Edited by: SD on May 6, 2008 1:04 PM

  • Incomplete Foreign Trade Data in Billing document....

    Experts,
    I am using a scenario which is order related billing and the item cat is TAP....while processing(Saving) the billing document I am getting an error nessage saying foreign trade data is incomplete.....I got couple of question regarding this...
    1)Since its a domestic sales where end customer belongs to the same country of the Company code why is it foreign trade data is required?
    2)Where the incompletion procedure is maintained?.....I have gone through VI29 & VI49 there are no entries exists.....
    3)what kind of solution is available for this scenario?.......
    Thanks in advance......

    Hi Kumar S,
    1)Since its a domestic sales where end customer belongs to the same country of the Company code why is it foreign trade data is required?
    system will not check for the company code country instead it will check for the customer country & plant country. if it differs then only export data determination will come  into the picture. as you said its order related billing. check the copy control settings from order - billing.
    Determine export data.
    Note: check the address maintained in Plant.  Plant data may not changed when copying from other plant.
    2)Where the incompletion procedure is maintained?.....I have gone through VI29 & VI49 there are no entries exists.....
    this incompletion procedure generally assigned to country. as you are not dispatching . this doesnt have any impact.
    3)what kind of solution is available for this scenario?.......
    check for the default settings to determine export data, in case of export sales only . Tx:VI95.
    Hope it helps.
    Regards,
    Reazuddin MD

  • Exit for Foreign trade data(import tab) on ME22N

    In Purchase Order transaction ME22, the requirement is to copy the contents of office of entry field (EIKP-ZOLLA) to EKKO-INCO2 field.(whenever there is any change in office of entry field).The office of entry field is present in import tab of purchase order screen. Whenever any changes happen in it, the standard PO customer exits like ‘EXIT_SAPMM06E_007’  , EXIT_SAPMM06E_006 does not get triggered  Nor the BADI ‘ME_PROCESS_PO_CUST’. However,  foreign trade exit EXIT_SAPLV50E_005 gets triggered. In this exit only completeness of data is checked and EKKO values cannot be modified from this exit.
    Is there any alternative exit or BADI which gets triggered on the making changes in any data in the import (foreign trade data) tab in PO? Is there any mechanism to change EKKO-INC02 (screen value) from any of the other exits (i.e. exits triggered on data entry in foreign trade tab)?

    Transaction Code - ME22N                    Change Purchase Order
    Exit Name           Description
    LMEDR001            Enhancements to print program
    LMELA002            Adopt batch no. from shipping notification when posting a GR
    LMELA010            Inbound shipping notification: Transfer item data from IDOC
    LMEQR001            User exit for source determination
    LMEXF001            Conditions in Purchasing Documents Without Invoice Receipt
    LWSUS001            Customer-Specific Source Determination in Retail
    M06B0001            Role determination for purchase requisition release
    M06B0002            Changes to comm. structure for purchase requisition release
    M06B0003            Number range and document number
    M06B0004            Number range and document number
    M06B0005            Changes to comm. structure for overall release of requisn.
    M06E0004            Changes to communication structure for release purch. doc.
    M06E0005            Role determination for release of purchasing documents
    ME590001            Grouping of requsitions for PO split in ME59
    MEETA001            Define schedule line type (backlog, immed. req., preview)
    MEFLD004            Determine earliest delivery date f. check w. GR (only PO)
    MELAB001            Gen. forecast delivery schedules: Transfer schedule implem.
    MEQUERY1            Enhancement to Document Overview ME21N/ME51N
    MEVME001            WE default quantity calc. and over/ underdelivery tolerance
    MM06E001            User exits for EDI inbound and outbound purchasing documents
    MM06E003            Number range and document number
    MM06E004            Control import data screens in purchase order
    MM06E005            Customer fields in purchasing document
    MM06E007            Change document for requisitions upon conversion into PO
    MM06E008            Monitoring of contr. target value in case of release orders
    MM06E009            Relevant texts for "Texts exist" indicator
    MM06E010            Field selection for vendor address
    MMAL0001            ALE source list distribution: Outbound processing
    MMAL0002            ALE source list distribution: Inbound processing
    MMAL0003            ALE purcasing info record distribution: Outbound processing
    MMAL0004            ALE purchasing info record distribution: Inbound pro
    MMDA0001            Default delivery addresses
    MMFAB001            User exit for generation of release order
    MRFLB001            Control Items for Contract Release Order
    AMPL0001            User subscreen for additional data on AMPL
    No of Exits:         35
    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
    BAPI
    http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
    http://support.sas.com/rnd/papers/sugi30/SAP.ppt
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
    http://members.aol.com/_ht_a/skarkada/sap/
    http://www.ct-software.com/reportpool_frame.htm
    http://www.saphelp.com/SAP_Technical.htm
    http://www.kabai.com/abaps/q.htm
    http://www.guidancetech.com/people/holland/sap/abap/
    http://www.planetsap.com/download_abap_programs.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
    /people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
    /people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
    http://esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
    http://esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
    http://esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
    http://esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
    http://esnips.com/doc/365d4c4d-9fcb-4189-85fd-866b7bf25257/customer-exits--badi.zip
    http://esnips.com/doc/3b7bbc09-c095-45a0-9e89-91f2f86ee8e9/BADI-Introduction.ppt
    http://help.sap.com//saphelp_470/helpdata/EN/eb/3e7cee940e11d295df0000e82de14a/frameset.htm
    Rewards if useful.........
    Minal

  • Billing: Foreign trade data missing error

    Hello friends,
    I have a peculiar problem while trying to release billing doc to accounting. Delivering country is BE and Desination country is DE. I have setup config under Foreign data transportation to pull up default values by maintaining Tcode VI95.
    However when I do VF01 the system doesn't seem to pull that data. Futhermore if I were to save the billing doc with foreign trade data as incomplete and then do VF02 to enter the data making sure the doc is complete, the system still won't let me post the data saying that foreign trade is still missing when infact it has been entered manually and the doc says its complete.
    Any ideas??

    Hi Robert,
    did you know the OSS-Note 354222? Perhaps it usefull for you to have a look on it. If you one time go into the foreign trade data in the invoice, and they are incomplete you can't transfer this invoice to accounting.
    Regards Thomas

  • Foreign Trade Data Issue

    Hi All,
        I have a problem while creating billing document.
    System is showing that"Foreign trade data is incomplete".Because customer belongs to foreign country.I am maintaining country in customer master data:General tab page.
    Is it required to map foreign trade if the customer belongs to country other than India?
    If we give country other than India than during creation billing document: in foreign trade/customs:organization tab page: number of foreign trade data and FT basis doc. cat. is coming automatically. But if I maintain IN in customer master record it is not coming.
    So my question is how to solve this so that if I maintain country other than IN in customer master record  than I can able to create billing document and release it to accounting..
    Points will be awarded for a helpful answer.
    Thank and regards.
    Ashis Patnaik
    Mobile:+91-9849130601

    Hi,
    Listed below are the areas of Customizing you need to check to ensure you have fully maintained the foreign trade master data, check objects, and proposal objects.
    Because the system’s defaults depend on settings in Customizing, the more fully you maintain this data, the more complete the data in the purchasing and sales documents will be, and the more efficient the system will be to use.
    You can access the Implementation Guide (IMG) to customize your area of interest via your project from the SAP standard menu by choosing Tools - AcceleratedSAP - Customizing - Edit Project.
    In the IMG, make entries in the appropriate items in the checklist below to ensure that the Foreign Trade application component is prepared for use.
    Check out the foll settings:
    This checklist applies to configuring objects for both inward and outward processing. 
           1.      Number range
    Sales and Distribution - Foreign Trade/Customs - Define Number Ranges
           2.      Commodity codes and import code numbers
    Sales and Distribution - Foreign Trade/Customs - Basic Data for Foreign Trade - Define Commodity Codes/Import Code Numbers by Country
           3.      Procedure
    ¡        Definition
    Sales and Distribution - Foreign Trade/Customs - Basic Data for Foreign Trade - Define Procedures and Default Value - Define Procedure
    ¡        Sales and Distribution (SD) default value
    Sales and Distribution - Foreign Trade/Customs - Basic Data for Foreign Trade - Define Procedures and Default Value - Define Procedure Default
    ¡        Materials Management (MM) default value
    You maintain this value in the purchasing info record on the Purch. org. data 1 (Purchasing organization data1) screen.
           4.      Business transaction type
    ¡        Definition
    Sales and Distribution - Foreign Trade/Customs - Basic Data for Foreign Trade - Define Business Transaction Types and Default Value - Define Business Types
    ¡        SD default value
    Sales and Distribution - Foreign Trade/Customs - Basic Data for Foreign Trade - Define Procedures and Default Value - Define Default Business Type (SD)
    ¡        MM default value
    Sales and Distribution - Foreign trade - Basic data for foreign trade - Define business transaction types and default value - Define default business transaction type (MM)  (Table T604)
           5.      Mode of transport
    ¡        Definition
    Sales and Distribution - Foreign Trade/Customs - Transportation Ddata - Define Modes of Transport
    ¡        MM default value
    Maintained in the vendor master on the Purchasing data screen
           6.      Customs offices
    ¡        Definition
    Sales and Distribution - Foreign trade - Transportation Data - Define Customs Offices
    ¡        MM default value
    Maintained in the vendor master on the Purchasing data screen.
           7.      Control of import data screens
    Sales and Distribution - Foreign Trade/Customs - Control Foreign Trade Data in MM and SD Documents - Import Screens in Purchasing Document
           8.      Countries
    General Settings - Set Countries - Define Countries
           9.      Currencies
    General Settings - Currencies - Enter Exchange Rates
    for master rec., refer the foll. site.
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/93/74440d546011d1a7020000e829fd11/frameset.htm
    Hope it would help.
    Regards,
    Siddharth.

  • Regarding foreign trade data incomplete

    Hi guru's
    When i am saving the invoice i am getting an error like this.
    <b>Document 90035592 has been saved (foreign trade data incomplete)</b>
    can u people solve this problem.very urgent.
    thanks&regards
    veera.

    Hi Prakash,
    Please refer the following:
    Check the shipping point in sales order ?
    Also check the SAP Note No 313188
    Read the following SAP note. This can also be the case.
    Note 354222 - Foreign trade data incomplete for domestic business
    Summary
    Symptom
    A billing document cannot be transferred into accounting because the foreign trade data is incomplete.
    However, the underlying business process is a domestic business!
    Additional key words
    VF01, VF02, EIPO, EIKP, foreign trade, incompleteness, domestic, delivery, billing document, EXNUM, EXPKZ,export indicator, export number
    Cause and prerequisites
    In the respective delivery or in the billing document, for domestic business you by mistake go to the foreign trade data into a field. Since the incompletion log requires at least one entry for foreign trade, you must fill one field in order to be able to leave the foreign trade data again without canceling document processing.
    Here, an export indicator and an export number is assigned which cause the incompleteness of the whole document due to missing export data.
    Solution
    A solution in the standard system is currently not planned since because of various customer requests the foreign trade data in the delivery should be accessed and maintained for domestic business too. An example is the inbound delivery in a bonded warehouse where the forwarding agent should get information already in advance.
    To avoid incorrect billing documents, proceed as follows:
    Copy data transport routine 001 to a routine 601 and enhance the new routine according to the attached correction instruction (RV60C601). Store this new data transport routine in Customizing for the copying control for billing documents for the processes you use, for example
    - F2 - LF, item category TAN. (delivery-related)
    If you already use an own data transport routine, in this data transport routine include the attached source code.
    You must cancel existing billing documents and then create them again.
    If you do not want to cancel existing documents, implement the attached correction (program RV60AFZZ) and release the documents either individually (VF02, default transaction) or via the list of blocked billing documents (VFX3).
    After you completed the correction, you should cancel this solution (RV60AFZZ) again.
    Also refer to the attached Note 170183.
    Source code corrections
    Header Data
    Release Status: Released for Customer
    Released on: 16.02.2005 17:15:20
    Priority: Recommendations/additional info
    Category: Consulting
    Primary Component: SD-BIL-GF Basic Functions
    Secondary Components: SD-FT-PRO Basic Functions
    SD-BIL-CA Account Assignment
    Hope the same helps you.
    REWARD if it helps you!!
    Regards,
    Ajinkya

  • Foreign trade data incomplete error

    Friends,
    While creating billing document I am getting error as "Foreign trade data incomplete"
    Solution is to specify fields- mode of transport in delivery header. However I want to make default that means it should come automatically to deliver header. How it can be achieved. Ple help on above issue. I am working in ECC6.0 version Kindly give step by step menupath for all settings.
    Thanks
    Shiv

    in this case foreign trade data should not be applicable/required
    foreign trade data is always used if a good is sent from one country to another country, it is always cross border
    i.e. Foreign trade data is used in Europe for preparing the Intrastat returns which is always cross border from one EU country to another EU country
    i hope it helps and makes sense for you
    http://help.sap.com/erp2005_ehp_02/helpdata/en/4c/420a3c470a11d1894a0000e8323352/frameset.htm
    kr
    hakan

  • Accounting documents not  created - foreign trade data incomplete

    Hi All
    While saving the billing document at VF01, the following message appears
    "Document 90000005 has been saved (foreign trade data incomplete)"
    I tried entering some datas at
    VF02>>Goto>>Header>Foreign trade/customs but was not sure what is mandatory there. Please let me know how to disable this. I do not want to maintain any foreign trade data. Can I do something on Material Master settings?
    Regards

    You require to do thenecessay configuration for Foreign Trade Data:
    IMG --> Sales and Distribution --> Foreign Trade/Customs --> Basic Data for Foreign Trade --> (Do the necessary configuration here)
    In most probability, it will not default, but it is required to be maintained in Invoice (based on configuration)
    Regards,
    Rajesh Banka
    Reward points if helpful.

  • Missing ''foreign trade data''

    Hi,
    there  is in  System  several  ''S1''- cancelled invoices
    still  open.
    There is  no  accounting document created
    because of  error  message Missing ''foreign trade data''.
    But the user  is unable  to  complete  the data because
    several  fields are  coming automatecly from  precedent document.
    and i  guess the document s will stay  open untill 
    its relaesed   to accounting.
    How could  we clear  those documents?
    Any  idee?
    Thanks in  advance
    If helpful  points will be added
    William

    Hi,
    For the present generated billing documents you have to do it manually..
    Billing document
    Goto-header->Foreign trage/customs-handling-
    modes of transport ( fill maully) and other necessary data if required fill it.
    Billing document i
    Goto itemforieng trade item> legal categorization--->
    enter comm/imp code.no.
    But here after you want it automatic this process..
    You can assign the default values in
    Spro-> Sales and distribution> foreign trade/customs ---> transportation data ---> Default Values For Foreign Trade Header Data
    in this screen cilck on country for want to maintain
    in the next screen in tranport tab u can maintain the available ModeOfTrnsprt-Borde.
    The commodity code will be directly copied into item level into billing document  if maitained in material master record.
    Kindly Reward points if helpfull.
    Regards
    vK

  • Foreign trade data is incomplete for the line item eg 70!

    Dear Sapients,
    I have encountered an issue related to invoice while releasing it to accouting.
    The invoice is done for several line items but the problem is faced for one line item only, could any one suggest the possible solution please.
    Regards.
    Kodali

    hi
    Read the following SAP note. This can also be the case.
    Note 354222 - Foreign trade data incomplete for domestic business
    Symptom
    A billing document cannot be transferred into accounting because the foreign trade data is incomplete.
    However, the underlying business process is a domestic business!
    Additional key words
    VF01, VF02, EIPO, EIKP, foreign trade, incompleteness, domestic, delivery, billing document, EXNUM, EXPKZ,export indicator, export number
    Cause and prerequisites
    In the respective delivery or in the billing document, for domestic business you by mistake go to the foreign trade data into a field. Since the incompletion log requires at least one entry for foreign trade, you must fill one field in order to be able to leave the foreign trade data again without canceling document processing.
    Here, an export indicator and an export number is assigned which cause the incompleteness of the whole document due to missing export data.
    Solution
    A solution in the standard system is currently not planned since because of various customer requests the foreign trade data in the delivery should be accessed and maintained for domestic business too. An example is the inbound delivery in a bonded warehouse where the forwarding agent should get information already in advance.
    To avoid incorrect billing documents, proceed as follows:
    Copy data transport routine 001 to a routine 601 and enhance the new routine according to the attached correction instruction (RV60C601). Store this new data transport routine in Customizing for the copying control for billing documents for the processes you use, for example
    F2 - LF, item category TAN. (delivery-related)
    If you already use an own data transport routine, in this data transport routine include the attached source code.
    You must cancel existing billing documents and then create them again.
    If you do not want to cancel existing documents, implement the attached correction (program RV60AFZZ) and release the documents either individually (VF02, default transaction) or via the list of blocked billing documents (VFX3).
    After you completed the correction, you should cancel this solution (RV60AFZZ) again.
    Also refer to the attached Note 170183.
    Source code corrections
    Header Data
    Release Status: Released for Customer
    Released on: 16.02.2005 17:15:20
    Priority: Recommendations/additional info
    Category: Consulting
    Primary Component: SD-BIL-GF Basic Functions
    Secondary Components: SD-FT-PRO Basic Functions
    SD-BIL-CA Account Assignment

  • Delivery from Projects (Foreign Trade Data)

    Dear Friends,
    I have got a scenerion wherein I have to create a Delivery wrt to a Project.
    Now the problem is that in my delivery the Foreign Trade data is not appearing by Default.
    The Same is maintained in the Master.
    Can anyone guide me of any setting that I am missing, or is there any special configuration to be done for projects deliveries to capture the Forign Trade Data.
    Harsh

    Dear Friends,
    I have got a scenerion wherein I have to create a Delivery wrt to a Project.
    Now the problem is that in my delivery the Foreign Trade data is not appearing by Default.
    The Same is maintained in the Master.
    Can anyone guide me of any setting that I am missing, or is there any special configuration to be done for projects deliveries to capture the Forign Trade Data.
    Harsh

  • Foreign trade data incomplete for item 000280 (Message no. VF074)

    Hi
    Foreign trade data incomplete for item 000280 (Message no. VF074)
    When I click on Incompleteness analysis button at Item level, it is showing below fields for few Invoices
    1. Business Transaction Type for Foreign Trade (EXART)
    2. Statistical value for foreign trade (GRWRT)
    3. Country of origin of the material (HERKL)
    4. Commodity Code/Import Code Number for Foreign Trade (STAWN)
    why this error is for few invoices only
    from where these 4 fields will be picked automatically without maintain manually in VF02
       Thanks & Regards
               Sudha

    Hello,
    1) it should be determined according to customizing settings under "Sales and Distribution --> Foreign Trade/Customs --> Basic Data for Foreign Trade --> Define Business Transaction Types And Default Value";
    3) and 4)  they should be picked up from Material Master record, "Foreign trade export view".
    They are checked as mandatory fields according to customizing under: "Sales and Distribution --> Foreign Trade/Customs --> Control Foreign Trade Data in MM and SD Documents --> Incompleteness Schemas for Foreign Trade Data"
    Hope to be useful.
    Best regards,
    Andrea
    Edited by: abrusa on May 19, 2010 5:23 PM
    Edited by: abrusa on May 19, 2010 5:29 PM

  • Error on VF01 posting asking for foreign trade data incomplete

    Hi Experts,
    Would appreciate anyone can help me on the abovementioned matter.
    The transaction SO created is a local trade.
    1) SO created under one time customer for sold to party. Documentflow status = complete
    2) DO completed normally. Document flow status = complete.
    sold to party address maintained is local country address NOT foreign address.
    3) Billing processing VF01 user encountered an error message : Foreign trade data incomplete. Documentflow status = missiong export data.
    Kindly advise.
    Regards,
    Yong Kok Wah

    Hi Yong,
    Check this report, It will clear the Foriegn trade data for the invoice once it is done you can release the invoice to accouting via VF02. But I am not sure whether this fullfills your requirement.
    Note: Test it in test system
    REPORT ZTEST01.
    tables: vbrk.
    data: i_vbrk like vbrk occurs 0,
          wa_vbrk like vbrk.
    select-options: so_vbeln for vbrk-vbeln.
    parameters: testmode as checkbox default 'X'.
    select * from vbrk into table i_vbrk where vbeln in so_vbeln.
    check not i_vbrk[] is initial.
    loop at i_vbrk into wa_vbrk.
          CALL FUNCTION 'ENQUEUE_EVVBRKE'
         EXPORTING
      MODE_VBRK            = 'E'
      MANDT                = SY-MANDT
        VBELN                = wa_vbrk-vbeln
      X_VBELN              = ' '
      _SCOPE               = '2'
      _WAIT                = ' '
      _COLLECT             = ' '
    EXCEPTIONS
      FOREIGN_LOCK         = 1
      SYSTEM_FAILURE       = 2
      OTHERS               = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
         if not wa_vbrk-exnum is initial.
           clear wa_vbrk-exnum.
           if testmode = ' '.
            update vbrk from wa_vbrk.
            if sy-subrc = 0.
            write:/ 'Foreign Trade Data cleared for invoice', wa_vbrk-vbeln,
            else.
          write:/ 'Errors at database update of invoice', wa_vbrk-vbeln,'.'.
            endif.
          else.
            write:/ 'Foreign Trade Data cleared for invoice', wa_vbrk-vbeln,
          endif.
         endif.
    CALL FUNCTION 'DEQUEUE_EVVBRKE'
      EXPORTING
      MODE_VBRK       = 'E'
      MANDT           = SY-MANDT
        VBELN           = wa_vbrk-vbeln
      X_VBELN         = ' '
      _SCOPE          = '3'
      _SYNCHRON       = ' '
      _COLLECT        = ' '
    endloop.
    if testmode = 'X'.
       format color col_positive on.
           write:/ 'Testmode, no changes made.'.
       format color col_positive off.
    endif.

Maybe you are looking for

  • Airport Express and Vista DHCP - HELP ME!

    Hello, I have HP Pavilion model of laptop with Broadcomm Wireless chipset and Vista Home Basic on board. I am trying to connect to my Airport Express router but no way to obtain IP address from the router. On my Macbook everything work fine without a

  • Procurement profile canont be changed

    Hi SRM gurus, We are working on a PDP scenario where the PR is transfered from R/3 to EBP as shopping cart through the standard BBP_EXTREQ_TRANSFER and we are getting the following error : "Procurement profile cannot be changed " Message no. 6Q 204.

  • Regarding the Job name

    Hi, I am having an issue with loading the data. To troubleshoot it, I need to know the technical name of the job. How to find of the Job name. I am only able to get the prefix of the Job Name : BI_BTCH. Please let me know the procedure to find the jo

  • Icon background in the Tab Bar

    I have placed a 'Close All Tabs' button in the Tab Bar. I'd like it to have the same background as the default 'New Tab' gray tab-shaped background. Do I have to change the following code in the xul file? toolbarpalette id="BrowserToolbarPalette" cla

  • [BUG] - 2x "Purchased on My Name's iPhone" sections ?!

    I just synced my iPhone 4 to my MBP laptop's (10.6.5) iTunes app (10.1.1), and suddenly get TWO "*Purchased on My Name's iPhone*" sections under the "Store" heading in the margin of iTunes?! So now half my iPhone purchases are under one section, with