Foriegn trade view in BAPI_MATERIAL_SAVEDATA
HI,
I am using BAPI_MATERIAL_SAVEDATA in that I cant able to find the Foreign trade view can any one suggest me where it is.
regards
paul
Hi,
Foreign Trade view comes under Sales/Purchase view depending upon whether it is import or export.
Hence, there is no specefic selection for it.
This view contains some client level data and some plant level data.
If you fill CLIENTDATA, CLIENTDATAX, PLANTDATA and PLANDATAX parameters, the FT view will be created.
Hope this helps..
Regards,
Shashank
Similar Messages
-
Reg:Material Master Foriegn Trade view Update
Hai All,
I need to update the Material Master (mm02) transaction
In that foriegn trade view i need to update .
Is there any BAPI or Function module or any standard program is there?
Could you please help me out?
I need to update the Custon Tariff Prefe. In Foriegn trade view.
Please help me out.
Thanks & Regards,
S.Chaitanya.Hi Chaitanya,
There is no separate function module tro only change the foreign trade information but the generic function module is
BAPI_MATERIAL_SAVEDATA
Regards,
Ravi -
Hi,
I have used BAPI_material_savedata to load material data, in that babi I couldn't able find the Foriegn trade import view can any one give the suggestion for this.
regards,
paulHi,
Foreign Trade view comes under Purchasing or Sales view,
depending upon whether it is Export or Import.
You will need to fill PLANTDATA, PLANTDATAX parameters of the BAPI.
Also, some fields for FT view are at client level.
hence, fill the CLIENTDATA and CLIENTDATAX parameters of BAPI_MATERIAL_SAVEDATA.
It will create Foreign Trade view.
Hope this helps..
regards,
Shashank -
Excise duty tab in foriegn data view
Hi,
how to include excise duty tab in foriegn data view.it should contain chapter id and all excise related settings should come.
thanks & ragards
venkathi
u can add fields in OMTB3
try using it
go to OMBT3 then select excise duty
then select the data screen
here select forign trade import and click on subscreen
here add the programme and screen no
try it with help of a ABAPer
regards
kunal -
Foriegn Trade in Import Purchase Process
Hi Gurus,
Can you please guide me how can i use the Foriegn trade & customs functionality in MM import purchase process.
cheers[Maintain foreign trade import data view in material master |Re: Maintain foreign trade import data view in material master]
[Foreign trade item data is incomplete|Re: Foreign trade item data is incomplete] -
Foriegn Trade - BusTransactType missing
Hi All,
While doing billing, iam not getting BusTransactType automatically, this BusTransactType will be there in Foriegn trade/customs data tab and below Orgin/Destination/business tab in billing item level.
I checked in copying controls, the settings is good, i checked in this path SPRO>S & D->Foreign trade/customs>Basic data for foriegn trade> Define Business Transcet type and defualt value, there iam missing my combination.
Sales org Dist chn Item cat Tr ty
If i add here, will i get automatically?? can you thro some light on these automatc detaermination of foregin trade...
Thanks
RamkiI have done config & found that,
if you maintain Mode of Transport Border & Domestic Mode of Transport- @ header level.
Item level, will be automatically determined,
(but you should maintain ,
Commodity Code / Cntry-Region of Origin/Desptach Cntry/ Export Procedure / Business Transaction type.)
Cntry-Region of Origin/Desptach Cntry/ - MMR - Foreign Trade Export Data view.
your issue will be solved. -
How to select a custom view in BAPI_MATERIAL_SAVEDATA
In our company we have defined some CUSTOM views for different materials. I want to select a custom view in the header data but don't see an option. The only options I see are as follows:
MATERIAL
IND_SECTOR
MATL_TYPE
BASIC_VIEW
SALES_VIEW
PURCHASE_VIEW
MRP_VIEW
FORECAST_VIEW
WORK_SCHED_VIEW
PRT_VIEW
STORAGE_VIEW
WAREHOUSE_VIEW
QUALITY_VIEW
ACCOUNT_VIEW
COST_VIEW
INP_FLD_CHECK
MATERIAL_EXTERNAL
MATERIAL_GUID
MATERIAL_VERSION
How can I select a view (in BAPI_MATERIAL_SAVEDATA) that's not a standard SAP view?
Please help!
Thanks.Hi,
which views do you select in the structure HEADDATA? Do you select STORAGE_VIEW?
Cheers -
How to add classification view using BAPI_MATERIAL_SAVEDATA
Hi,
Please any one let me know how to add classification view using BAPI_MATERIAL_SAVEDATA to the material master.
Thanks,
shekarWe use this bapi on a regular basis as well as classification of materials. We have success doing this in 2 steps. First step is to save the material using BAPI_MATERIAL_SAVEDATA, second step is to save classification using BAPI_OBJCL_CHANGE (this can be used for both create and change) Also look at Function Group CLBPA . there are several bapi's in that group dealing with object classification, including the one I mentioned..
-
BASIC PLANT DATA VIEW in BAPI_MATERIAL_SAVEDATA
HI,
I need to save some fields in the BASIC PLANT DATA View using BAPI_MATERIAL_SAVEDATA. Would anyone know the HEADER VIEW DATA I need to select and how I am going to go about this?
I am able to successfully save a material but I am having problems in creating the material's BASIC PLANT DATA VIEW.
Thanks!Check out this code:
*& Report ZBAPI_MATERIAL_SAVEDATA
*& AUTHOR
*& PURPOSE : THIS REPORT USES BAPI MATERIAL SAVE DATA TO UPDATE AND CREATE
*& THE MATERIAL
REPORT ZBAPI_MATERIAL_SAVEDATA NO STANDARD PAGE HEADING MESSAGE-ID (ZHNC).
TYPES:BEGIN OF TY_MAT,
MATERIAL(4),
IND_SECTOR(1),
MATL_TYPE(4),
** BASIC_VIEW(1),
** SALES_VIEW(1),
** PURCHASE_VIEW(1),
* STORAGE_VIEW(1),
MATL_GROUP(9),
BASE_UOM(3),
BASE_UOM_ISO(3),
* MATL_GROUP1(1),
* BASE_UOM1(1),
* BASE_UOM_ISO1(1),
PLANT(4),
DEL_FLAG(1),
PUR_GROUP(3),
BASE_QTY(13),
* PLANT2(4),
* DEL_FLAG5(1),
* PUR_GROUP1(1),
* BASE_QTY1(1),
* PLANT3(4),
STGE_LOC(4),
MRP_IND(1),
* PLANT4(4),
* STGE_LOC1(4),
* MRP_IND1(1),
SALES_ORG(4),
DISTR_CHAN(2),
DEL_FLAG1(1),
MIN_ORDER(13),
* SALES_ORG1(4),
* DISTR_CHAN1(2),
* DEL_FLAG2(1),
* MIN_ORDER1(1),
LANGU(2),
MATL_DESC(40),
END OF TY_MAT.
DATA: IT_DATA TYPE TABLE OF TY_MAT,
WA_DATA LIKE LINE OF IT_DATA.
*decalraing flag
data: v_flag value ''.
*DECLARING WORK AREAs TO BE PASSED TO THE FUNCTION MODULE.
DATA: BAPI_HEAD LIKE BAPIMATHEAD,
BAPI_CLIENTDATA LIKE BAPI_MARA,
BAPI_CLIENTDATAX LIKE BAPI_MARAX,
BAPI_PLANTDATA LIKE BAPI_MARC,
BAPI_PLANTDATAX LIKE BAPI_MARCX,
BAPI_STORAGELOCATIONDATA LIKE BAPI_MARD,
BAPI_STORAGELOCATIONDATAX LIKE BAPI_MARDX,
BAPI_SALESDATA LIKE BAPI_MVKE,
BAPI_SALESDATAX LIKE BAPI_MVKEX,
BAPI_MAKT LIKE BAPI_MAKT,
BAPI_RETURN LIKE BAPIRET2.
*INTERNAL TABLE TO HOLD THE MATERIAL DESCRIPTION
DATA: BEGIN OF IT_MAKT OCCURS 0.
INCLUDE STRUCTURE BAPI_MAKT.
DATA END OF IT_MAKT.
DATA:BEGIN OF IT_RET OCCURS 0.
INCLUDE STRUCTURE BAPIRET2.
DATA END OF IT_RET.
*INTERNAL TABLE TO HOLD HEADER DATA
DATA: IT_EXCEL TYPE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE.
*SELECTION-SCREEN ELEMENTS
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETER: FNAME TYPE RLGRAP-FILENAME OBLIGATORY DEFAULT 'C:\Documents and Settings\Administrator\Desktop\MATMAS.XLS' .
PARAMETERS: P_BEGCOL TYPE I DEFAULT 1 NO-DISPLAY,
P_BEGROW TYPE I DEFAULT 1 NO-DISPLAY,
P_ENDCOL TYPE I DEFAULT 100 NO-DISPLAY,
P_ENDROW TYPE I DEFAULT 32000 NO-DISPLAY.
SELECTION-SCREEN END OF BLOCK B1.
*DECLARATION OF EXCELAL TABLE
AT SELECTION-SCREEN ON VALUE-REQUEST FOR FNAME.
PERFORM F_GET_FILE USING FNAME.
START-OF-SELECTION.
PERFORM F_XLS_ITAB USING FNAME
CHANGING IT_EXCEL.
PERFORM F_MOVE_DATA.
perform F_GET_DATA.
*& Form F_GET_FILE
* text
* -->P_FNAME text
* <--P_SY_SUBRC text
FORM F_GET_FILE USING P_FNAME LIKE FNAME.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
PROGRAM_NAME = SYST-REPID
DYNPRO_NUMBER = SYST-DYNNR
* FIELD_NAME = ' '
* STATIC = ' '
* MASK = ' '
CHANGING
FILE_NAME = P_FNAME
* EXCEPTIONS
* MASK_TOO_LONG = 1
* OTHERS = 2
IF SY-SUBRC 0.
MESSAGE E006(ZHNC).
ENDIF.
ENDFORM. " F_GET_FILE
*& Form F_XLS_ITAB
* text
* -->P_FNAME text
* <--P_IT_EXCEL text
FORM F_XLS_ITAB USING P_FNAME
CHANGING P_IT_EXCEL.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
FILENAME = FNAME
I_BEGIN_COL = P_BEGCOL
I_BEGIN_ROW = P_BEGROW
I_END_COL = P_ENDCOL
I_END_ROW = P_ENDROW
TABLES
INTERN = IT_EXCEL
EXCEPTIONS
INCONSISTENT_PARAMETERS = 1
UPLOAD_OLE = 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.
ENDFORM. " F_XLS_ITAB
*& Form F_MOVE_DATA
* text
* --> p1 text
* <-- p2 text
FORM F_MOVE_DATA .
DATA : LV_INDEX TYPE I.
FIELD-SYMBOLS <FS>.
*--- Sorting the internal table
SORT IT_EXCEL BY ROW COL.
CLEAR IT_EXCEL.
LOOP AT IT_EXCEL.
MOVE IT_EXCEL-COL TO LV_INDEX.
*--- Assigning the each record to an internal table row
ASSIGN COMPONENT LV_INDEX OF STRUCTURE WA_DATA TO <FS>.
*--- Asigning the field value to a field symbol
MOVE IT_EXCEL-VALUE TO <FS>.
AT END OF ROW.
APPEND WA_DATA TO IT_DATA.
CLEAR WA_DATA.
ENDAT.
ENDLOOP.
ENDFORM. " F_MOVE_DATA
*& Form F_GET_DATA
* text
* --> p1 text
* <-- p2 text
FORM F_GET_DATA .
LOOP AT IT_DATA INTO WA_DATA.
MOVE-CORRESPONDING WA_DATA TO BAPI_HEAD.
BAPI_HEAD-BASIC_VIEW ='X'.
BAPI_HEAD-SALES_VIEW ='X'.
BAPI_HEAD-PURCHASE_VIEW ='X'.
BAPI_HEAD-STORAGE_VIEW ='X'.
MOVE-CORRESPONDING WA_DATA TO BAPI_CLIENTDATA.
BAPI_CLIENTDATAX-MATL_GROUP = 'X'.
BAPI_CLIENTDATAX-BASE_UOM = 'X'.
BAPI_CLIENTDATAX-BASE_UOM_ISO = 'X'.
MOVE-CORRESPONDING WA_DATA TO BAPI_PLANTDATA.
BAPI_PLANTDATAX-PLANT = BAPI_PLANTDATA-PLANT.
BAPI_PLANTDATAX-DEL_FLAG = 'X'.
BAPI_PLANTDATAX-PUR_GROUP = 'X'.
BAPI_PLANTDATAX-BASE_QTY = 'X'.
MOVE-CORRESPONDING WA_DATA TO BAPI_STORAGELOCATIONDATA.
BAPI_STORAGELOCATIONDATA-PLANT = BAPI_PLANTDATA-PLANT.
BAPI_STORAGELOCATIONDATAX-PLANT = BAPI_STORAGELOCATIONDATA-PLANT.
BAPI_STORAGELOCATIONDATAX-STGE_LOC = BAPI_STORAGELOCATIONDATA-STGE_LOC.
BAPI_STORAGELOCATIONDATAX-MRP_IND = 'X'.
MOVE-CORRESPONDING WA_DATA TO BAPI_SALESDATA.
BAPI_SALESDATAX-SALES_ORG = BAPI_SALESDATA-SALES_ORG.
BAPI_SALESDATAX-DISTR_CHAN = BAPI_SALESDATA-DISTR_CHAN.
BAPI_SALESDATAX-DEL_FLAG = BAPI_SALESDATA-DEL_FLAG.
BAPI_SALESDATAX-MIN_ORDER = 'X'.
REFRESH IT_MAKT.
IT_MAKT-LANGU = WA_DATA-LANGU.
IT_MAKT-MATL_DESC = WA_DATA-MATL_DESC.
APPEND IT_MAKT.
CLEAR IT_RET.
REFRESH IT_RET.
PERFORM F_CALL_BAPI.
READ TABLE IT_RET WITH KEY TYPE = 'S'.
IF SY-SUBRC EQ 0.
PERFORM F_BAPI_COMMIT.
WRITE:/ 'MATERIAL CREATED OR UPDATED SUCESSFULLY WITH MATERIAL NO',WA_DATA-MATERIAL.
ELSE.
MESSAGE E000(ZHNC) WITH 'ERROR IN CREATING THE MATERIAL'.
*WRITE: / 'ERROR IN CREATIN MATERIAL',IT_RET-MESSAGE.
*PERFORM F_DOWNLOAD.
ENDIF.
*ENDIF.
ENDLOOP.
ENDFORM. " F_GET_DATA
*& Form F_CALL_BAPI
* text
* --> p1 text
* <-- p2 text
FORM F_CALL_BAPI .
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
HEADDATA = BAPI_HEAD
CLIENTDATA = BAPI_CLIENTDATA
CLIENTDATAX = BAPI_CLIENTDATAX
PLANTDATA = BAPI_PLANTDATA
PLANTDATAX = BAPI_PLANTDATAX
STORAGELOCATIONDATA = BAPI_STORAGELOCATIONDATA
STORAGELOCATIONDATAX = BAPI_STORAGELOCATIONDATAX
SALESDATA = BAPI_SALESDATA
SALESDATAX = BAPI_SALESDATAX
IMPORTING
RETURN = IT_RET
TABLES
MATERIALDESCRIPTION = IT_MAKT
* UNITSOFMEASURE =
* UNITSOFMEASUREX =
* INTERNATIONALARTNOS =
* MATERIALLONGTEXT =
* TAXCLASSIFICATIONS =
* RETURNMESSAGES =
* PRTDATA =
* PRTDATAX =
* EXTENSIONIN =
* EXTENSIONINX =
APPEND IT_RET.
ENDFORM. " F_CALL_BAPI
*& Form F_BAPI_COMMIT
* text
* --> p1 text
* <-- p2 text
FORM F_BAPI_COMMIT .
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
* WAIT =
* IMPORTING
* RETURN =
ENDFORM. " F_BAPI_COMMIT -
Hide foreign trade view in material master
Hi all,
Can anyone tell me how may one hide the foreign trade Views (both export & import) within the material master Data?
Usually the material views for selection are managed Through the material type customization; however I cannot Find these views within the optional views for the material Types.
I also searched within the foreign trade customization and could not found where it can be managed.
Thanks a lot for your help,
Regards
RonnyHi,
To restrict the views you have to follow the above explained process. If you want make specific field in material master , you can use following process
1.Just click the tab ,(Which is u want to be Required entry or Hide )and get the field name
2.Go to T.Code: OMSR and enter that field name and get Selection Group
3.1. Use t.Code: OMS2 and click your material type and in next screen check Field reference ( you have assigned for material type){{ ( example :;For ROH material type the Field reference is ROH)
3.2. use T.code:OMS9,, Double Click your Field Reference and select field selection Group & select round box of Required Entry or hide as u required and save.
NOTE
If you want go for new material type creation, you can design your material views and all steps following with t.codes are
OMSL,OMS3,OMS9,OMS2,OMT3B,OMT3R,OMT3E,OMSA,OMSF,OME4,OMSR,MMNR
Regards,
Biju K
Edited by: Bijay Kumar Barik on Apr 16, 2008 1:52 PM -
Foriegn Trade and CIN configuration for SD
Hi all,
Can anybody please send me step by step procedures regarding
1. Foriegn trade configuration in SD Module wrt India.
2. CIN configuration in SD Module.
Regards,
KhanYou 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. -
Foriegn trade Country code in Billing document
Hi,
Can any one guide me how the country code is populated in Billing document Header under Foriegn trade/custom tab.
As we are facing issue with this, in one billing document with germany ship to party the country code is being populated and the other billing document with U.S ship to party country code is not populated.
Thanks in advance.Thanks in advance,
As u said my problem is not with the Transportation and Incompleteness, In the Billing document header level beside the Ship to party address the Country code is not being populated for other than germany customer.
SAP Help says
The country key contains information which the system uses to check entries such as the length of the postal code or bank account number.
The two-character ISO code in accordance with ISO 3166, which is delivered by SAP as a default, is usually used.
It could also be the vehicle license plate country-code or a typical country key, for example, in Germany the Federal statistics office key.
The country keys are determined at system installation in the global settings.
Since the country key does not have to correspond to the ISO code in all installations, programs that differ according to certain values of the country key cannot query the country key T005-LAND1, but have to program based on the ISO code T005 INTCA.
Please suggest
Thanks. -
Updating foriegn trade/ custom data
Hi Experts,
I need to update the foriegn trade/custom data (EIPO-HERKL, to be specific), for the inbound delivery.
Is there any BAPI or FM, using which I can update the field.
Thanks
RohitHi Niel,
I know it gets populated from the material master, but the requirement is like, Country of Origin is sent by an external vendor through an excel sheet. And we need to update it. We have already tried various options. But the only option now left is if we can update the field through any FM.
Thanks Rohit -
Foriegn trade EOU unit with excise bonds
i have a EOU(export oriented unit) which has to be brought into SAP though roll-out. Now do i have to use the foriegn trade for this or i can do it directly.
IF any one have any documents please forward to
Also let me know about the excise under bonds and other statuatory requirements involved.
[email protected]
regards,
Raghu.Hi,
Plant 2000 Can send a material for Subcontracting against Subcontracting Challan ie 57F4, but Cant sell in domestic market.
Ans: - This can be mapped through following Subcontracting process in Plant 2000;
Creation and maintenance of 57F4 Challans for Subcontracting Process (Subcontracting without Payment of Duty)
1. Transfer Posting of components to Subcontractor (MB1B)
2. Creation of Subcontracting Challan (J1IF01)
3. Refer Subcontracting Challan at the time of GR (MIGO)
4. Reconciliation of Subcontracting Challan (J1IFQ)
5. Completion of Subcontracting Challan (J1IF13)
6. Generation of Annexure IV (J1IFR)
1000 Plant is Subcontractor for 2000 Plant. In this case I cant transfer stock from 2000 plant to 1000 plant through STO.
If 1000 Creates STO, 2000 has to create sales document and outbound delivey which is not applicable as per EOU laws.
Ans: - As per EOU law, you can not sale a material in local market (means you have to only export the materials fron this plant) that doesn't mean that you can not transfer the material from plant to plant.
1. ME21N - You create a Subcontracting PO in Plant 2000, keeping Vendor as Plant 1000 (Create Plant 1000 as Vendor)
2. MIGO - Transfer Posting > Others (Use Movement type 303 to transfer the stock from plant 2000 to plant 1000)
3. J1IF01 - Create Subcontracting Challan w.r.t. Mateerial Doc of 303 mvmt type)
4. MIGO - Goods Receipt > Others (Use Movement type 305 to receive the stock from plant 2000 to plant 1000)
Prerequisite: - In config. include 303 in movement tupe groups of issues (i.e. 0001) -
Maintenance Status for Foreign Trade View
Hi,
What is the Maintenance Status for Foreign Trade View in Material Master Record.
Regards,
AkulaHere are the maintenance statuses for material master
User department Maintenance status
Work scheduling A
Accounting B
Classification C
MRP D
Purchasing E
Production resources/tools F
Costing G
Basic data K
Storage L
Forecasting P
Quality management Q
Warehouse management S
Sales V
Plant stocks X
Storage location stocks Z
Regards,
Raymond
Maybe you are looking for
-
External Hard Drive no longer showing in Devices
My external hard drive no longer shows up as a device on my MBP. It has worked fine since the day I plugged it in. The Time Machine is using the HD, and continues to do it's backups, so power and USB connection is not an issue The HD shows up in Disk
-
Cable for external projector/monitor
My external projector/monitor cable is missing. What cable do I need to replace it?
-
I am able to switch the video output from my monitor to my TV, but I'm not able to get both devices to display a picture at the same time! I don't have a twinview tab under display properties (like the book says I should have), so I can't use that t
-
Update BSEG-BEWAR when an FI document is posted
Hi, The requirement is to update BSEG-BEWAR (Transaction Type) when an FI document is posted by any of the transactions F110, F111, FB01 or FF_5. Substitution exit is not working for F110. Please let us know any USER EXIT/ BTE/ BADI for the same. Tha
-
Applet refresh problem..argent...
hi all i have two classes ... appletclass and panelclass my applet init method contains two textboxes and one button which are displayed when i start my applet... my panelclass is extended from panel and contains 5 static texts and 5 textboxes.... wh