Need additional Description of Material apart from Material Master
Dear All,
One of our customer wants to maintain an additional Material Description, apart from the description maintained in the Material Master.
In the material Master, they are maintaining "Manufacturer Part Number" as a description.
In the Customer-Material Info record, they are maintaining "Customer's Part No".
Both are getting printing in the Invoice output.
Apart from these they need to maintain some other decription of material. Where we can maintain this?
For example, in the Material Master, they are maintaining "Manufacturer Part Number", something like "RM20010V". The same is not acceptable for Excise clearace officers. They asked them to maintain the clear description of the material.
Please suggest.
Regards,
Mullairaja
they need to maintain some other decription of material
Go to MM01 / MM02 and click "Select views" so that you can see a field SALES TEXT. You can maintain here and fetch the same to your sale order / billing.
thanks
G. Lakshmipathi
Similar Messages
-
Locking additional descriptions in material master
Hi,
For data protection reason I have customized that specific fields of the material master can be locked after creation of the material master (transaction OMSFIX). Requested fields for locking are also the different descriptions in the additional data screen of the material master. However I can't find a field in the locking table that does the trick. Locking the fields MAKT-MAKTX and MAKT-SPRAS are not locking the descriptions in the additional data field. Does anybody know a solution?
Thanks,
PaulDear,
As its shown the Long text of basic data tab stored in RM03M table field RM03M-LTEX1.
Since RM03M is a structure and not a Table.
Structure is like a work area or an arrays only access data while the concerned program that uses it is running.
We cannot view the structure as I know. Take help of ABAPer who can solve your requirements.
Regards,
Syed Hussain. -
Spanish language description for material master
HI SAP Gurus,
can anybody please clairfy this thing for me. we have a material despcription in english in the material master. If we add ES language in the additional data screen what should be the description. Does the system pick automatically? Or the users have to provide it? Or can it be the same as english description with the just the language key as ES.
For example
EN - Seal cap
ES - Seal Cap
please clarify this
thanks
AnushaHi Anusha,
SAP provides option to maintain description in diff. languages so people from diff. places can read the description in their language.
There is nothing stopping you from maintaining the description in english for all lang. keys, but i am sure it would make very little sense.
So if you wish to maintain in spanish language, login in using spanish & then maintain the description.
Hope the above clarifies.
If helpful award points
Regards,
Vivek -
Re: Populating Additional data in Material master record
Hi,
I am creating material master record using BAPI_MATERIAL_SAVE_DATA. I am using the below function modules to populate date in Additional Data Tab. I am getting the existing material details from BAPI_MATERIAL_GET_ALL and passing it to
BAPI_MATERIAL_SAVE_DATA variables. I can create material successfully, but "PROPORTION/PRODUCT UNIT" TAB in Additional Data Tab is not populating.
Program populates this data for some materials and for some materials not. For example, when I try to create a new material by copying existing details from 1234 , New material will be created with 12345(say), but "PROPORTION/PRODUCT UNIT" TAB in Additional Data Tab is not populating.
Now If I put a break point, to find out what could be the issue , and then press f6 , and re-execute program for the same material 1234, then my custom program can populates data. I know its sound wiered, but I am not able to solve the issue.
CALL FUNCTION 'VBWS_UOM_READ_WITH_MATNR'
EXPORTING
i_matnr = it_mara-matnr
TABLES
e_meinh = gt_meinh
e_meinh_ws = gt_meinh_ws
e_meinh_ws_upd = gt_meinh_ws_upd
e_meinh_ws_updx = gt_meinh_ws_updx
e_message = gt_message
e_return = gt_return
EXCEPTIONS
error = 1
OTHERS = 2.
FREE: gt_message, gt_return.
CLEAR : gt_meinh_ws_upd, gt_meinh_ws_updx.
CALL FUNCTION 'VBWS_UOM_MAINTAIN_DARK'
EXPORTING
i_matnr = lv_matnr
i_kzwsm = it_mara-kzwsm
i_kzwsmx = 'X'
i_exit_by_first_error = 'X'
i_user = sy-uname
i_buffer_refresh = 'X'
i_no_update = ' '
TABLES
i_meinh_ws_upd = gt_meinh_ws_upd[]
i_meinh_ws_updx = gt_meinh_ws_updx[]
e_message = gt_message
e_return = gt_return
EXCEPTIONS
error = 1
OTHERS = 2.
LOOP AT gt_return WHERE type = 'S'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDLOOP.
Any suggestions ...Hi Karthik,
Thanks for your reply. It worked. But now I am facing strange issue. As you see my code above, i am using VBWS_UOM_MAINTAIN_DARK to update Addition data tab. however, the values of internaltable gt_meinh_ws_upd was not updated correctly inside the material master.
For example, I am filling gt_meinh_ws_upd table with the below values
gt_meinh_ws_upd-wsm = 'OZT'
gt_meinh_ws_upd-atnam ' ZABCDE'
gt_meinh_ws_upd-atwrt = 0.0023
append gt_meinh_ws_upd.
but when i see in material master, gt_meinh_ws_upd-atwrt = 0.0023 is updated with 23, instead of 0.023. I debugged th func. module many times, I didnot come acroos the code what making it to 23.
Any Idea karthik...
Thanks in Advance -
Idoc segments for additional UOM in material master
HI, I have three questions
a) we have the follwoing data defined in material master (additonal data)
X UOM Y UOM EAN
1 LITRES 1 LITRES NIL
1 IGB (inner packg) 20 LITRES 345922222222
1 GBE (packg) 20 LITRES 345922222222
I need to know what is EAN no and in our case the EAN no is same for both inner packg and pack. . what does this mean. Sometimes we also see the EAN no is different. why... what it signifies ?
2) We have outbound idoc trigerred from delivery. message type is WHSOD. in one of the segments (E1EDL24), the system shows the delivery qty and material no. This segment also shows the EAN NO AS 345922222222. In segment E1EDL26, the filed UMVKZ shows as 1 which is ok (numerator as shown above) but the numerator field shows 1 only (it does not show 20 litres,, i think the field name is UB something ).
I need to know why the system is not showing 20 litres in numerator in the filed for segment E1EDL26.
3) Had we have two different EAN in material master as above, did our standard message type would have shown the conversion factors (numerator and denomi ) as per the EAN nos.....If yes, then in which segments ,the WHSORD shows the Conversion factors based on different EAN nos in material master-UOM tab (for instance if 1 GBE (packg) = 30 LITRES and EAN IS 345911111111.... I think there will be as many segments in idoc as there are entries in Additonal data-UOM tab )
rgds
pamelaHi,
As for as i know EANs are not relevant to unit conversion. This is a number which uniquely identifies a material for a particular UoM.
And regarding the numerator and denominator, check whether any logic is added in the corresponding segment which overwrites the value -
Field description in material master
Hi all.
how can i change the description of the field in material master
Regards
Rakeshin sap, any standard field description can be changed.
you have to do that in ABAP
regards
Atul -
Help needed in seeing the material master.
Hi all,
How can i see the sales area info in a system. i.e. what material is assigned to what sales area, the mapping between the sales org., distr. channel, division and plants? I ask this because when I see some tabs/views in mm03, it asks me the sales area info and I dont know what to give there.. so in effect i get to see only some views in the material master.
Thanks,
Charles.Hi Charles,
If you want to know all those materials which have a Sales View, you can go to
MARA table and search for all those materials that have a 'V' in MARA-PSTAT field. Later you can use MM03 to see the sales data for that materials.
Procedure:
se16 transaction.
Give V in PSTAT field n selection criteria. and execute.
Regards,
Ravi -
Additional field for Material Master of SRM
Hi,
We want to add 3 <b>additional fields to the product master table</b> of SRM. We do not want to use these additional fields on any documents (neither SC nor PO nor contracts etc). We do not want to display these additional fields on Enterprise Buyer screens.
What we want is, after adding these fields to the products table <b>we want to edit the values on COMMPR01</b>. Is it possible to see and edit these additional fields with txn COMMPR01? If not how can we edit these fields?
Thanks
PS: the fields that we want add are: <b>New category name</b> (other than the EBP category), <b>New material code</b> (other than the regular material number), <b>Country Name</b> (we have 2 backend systems, we want to keep the name of the country of the backend).Hi,
How can I do that?
I have 2 fields to reply to COMMPR01:
MARA-ZZCOD_CORP (Customer Field)
MARC-EKGRP
Any ideia to reply this with standard process?
Thanks,
Pedro -
Storage Location Description in Languages apart from EN (Translation)
I maintained the description of Storage location in English.
Please help me to maintain the translation of this description in other languages
For Ex: In english EN description will be "Storage Location"
in German this will be "Lagerort"
Thanks in advance for your help.
Thank you.Do you mean that, we can not maintain descriptions in different languages? Hence my objective of maintaining as shown in my example (This is the requirement from client) can not be fullfilled by standard SAP? Is it possible by any other method through ABAP developments?
Thanks your your concern. -
Additional Issuance of material against same order
Gurus,
I have faced a situation for which our client need additional(unplanned) raw material on process order. the solution is that we can simply add the line item on process order by cor2 the system will automatically create the reservation against that particular line item which is a ROH. on screen of MIGO u can easilly post the goods against movement type 261 i have tried to remove tht movement type from OMJJ and other from shop floor node but failed. so i assumed as soon as i pick goods issue against order the system automatically assigns it the movement type of 261. the problem is this the client needs a report where he needs to identify additional (unplanned) issue seperately one solution is this if i can activate my reason for issuance than it will be easy to seperate both issues from same movement type i.e. 261.
What input i need from you guys is that is this scnario is good one or any one can suggest any other work around from any transaction or can recommand any settings in spro. i m open to test new things as well.
Points are guranted even things didn't work for me.....I was able to do it ..........
-
Best practice: Material Master Description
Warm Greetings,
Change Material master Description
Kindly suggest me the best practice
In my company material master is created like Electricity & water bill for Main building
Electricity & water bill for ware house
Electricity & water bill for Work shop
My finance user is asking Create One material in the name of Electricity & water bill
When ever the requirement comes we will change the description in the PR & IN PO
Kindly suggest me the best practice
Regards
shamulheqHi,
You can maintain Description in Material Master PO Text also, which you can print in PO or you can use Additional Data --> Basic data text
Regards,
Vikas -
Addition of new TAB at Material Master screen
Hi Experts,
I want to add one new tab in between "Descriptions" and "Unit of Measure" tab (under "Additional Data" section in material master). That should hold few language dependent "Brand and Product" data. But, I have no idea is it possible or not.
Please let me know the process if it is possible.
Thank You.Transaction Code - MM01 Create Material &
Exit Name Description
MGA00001 Material Master (Industry): Checks and Enhancements
MGA00002 Material Master (Industry): Number Assignment
MGA00003 Material Master (Industry and Retail): Number Display
No of Exits: 3
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
Rewards if useful.........
Minal -
Documents management with material master???
Hi experts
Can anybody explain , i have updated drawings in material master . For eg ABCD is material code .
For the ABCD material i have uploaded some drawings in SAP system.
Here i think , who are all having access for MM03 transaction , they can see the drawing for tht material (ABCD).
My requirement is , drawing should display only for Production people. example user id wise.(only production user id the drawing should display, that too not for all materials , for few materials.)
I have cretaed some 100 materials for example.If u go to MM03 we can display 100 materials details including drawing ..
I need some authorisation block for few materials in that 100 materials , for eg , for 20 materials drawing should not display in MM03 for all SAP users
Only for some USER ID it should display. there is any possibilities ???
Thanks
SAP-MMHi
Hi
It is possible to have different screens for different user groups. You need to create new material master sequence without drawing number details and give that to users who should not see drawing details. Check the customization steps in the below config. Spro-> Logistics General---> Material master ---> Configuring material master.
In this you can define user wise screens also.
I think I already answered you.
A quick example
Scenario
For your purchasing agents Kirk, Scott, and McKoy, you want to create a screen sequence containing the following screens:
Basic Data
You want this data screen to include the following unchanged subscreens from the Basic Data 1 view in the standard material master:
Material description
General data
Dimensions/EANs
Purchasing/Storage
You want this data screen to include the following subscreens:
General data (from the Plant Data/Storage 1 view in the standard material master)
Purchasing values (from the Purchasing view in the standard material master)
You also want this data screen to include an additional subscreen containing the following fields from the Purchasing view in the standard material master:
Purchasing group
Material group
Order unit
Procedure
1. Carry out the IMG activity Create Program for Customized Subscreens. This requires you to do the following:
a) Create a function group of your own, for example, with the name YENTERPRISE (steps 1 and 2 in the documentation for the IMG activity above).
b) Copy subscreen SAPLMGD1 2301 (Purchasing Data: General Data) to SAPLYENTERPRISE 2301, and subscreen SAPLMGD1 2701 (Storage Data: General Data) to SAPLYENTERPRISE 2701 (steps 3 to 7).
c) Remove all fields from subscreen SAPLYENTERPRISE 2301 with the exception of the Purchasing group, Material group, and Order unit using the Screen Painter (transaction SE51) (step 8).
Make sure that the fields you have removed are no longer included in checks. You do this by searching for the fields in the source code and making the lines in which they appear comment lines.
Using the Screen Painter, rename the frame text of both subscreens as follows:
General data -> Purchasing data: General data
Regards
Antony -
View document in material master, Basic data 2 screen?
Hello gurus,
How to view a DIR assigned to material master - basic data 2?
According to help.sap.com:
Additional Function for Material Master Record:
In Customizing for the Material Master, you can define a standard document type by choosing Make Global Settings.
- Done this: assigned document type needed, created a DIR with that type and assigned it to a given material
Documents of this standard document type are displayed in the material master record, in the Basic data 2 view (Extras ® Document data).
- Information of the DIR can be seen in the main screen, no path Extras --> Document data (I know DIRs are shown behind menu path Additional data --> Documents)
You can display the original application files of a document (for example, an engineering/design drawing) directly from the object (for example, material) using a display application (viewer).
PROBLEM starts here: no icon or button to click in order to view the document although the help states so.
Any idea what should be done? Should I install a software of some sort to view? Assign it somehow with SAP? The document type here is doc (MS Word), so nothing special.
Any advice is highly appreciated.
BR,
PipsaHello Sam,
Sorry, I think I described the problem inaccurately.
I could see the document already but for that I must follow the path Additional data --> Document data.
My core question was: Is there a means to allow a user to display the document directly in the screen Basic data 2 since system creates a new subscreen called Design documents assigned anyway?
It seems that the design documents assigned is for information purposes only. It would have been far better with usability to have the display icon in the main data.
BR,
Pipsa -
Material master upload through flat file using the BAPI_MATERIAL_SAVEDATA
Hi Guys,
I need to upload the material master using the BAPI, I need to update the all the views in the material master, Could any one can help please?
I using EXCEL file is input file and suggest me the, excel file format, if could you suggest it would be very help to me.
Thanks,
Gourisankar.please go through 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
Maybe you are looking for
-
How do I format and mount a hard drive?
I was successfully using Time Machine to back up my MacBook Pro to an iomega USB portable hard drive. I was doing it the low-tech way by simply plugging the HD into the USB port of my laptop and letting Time Machine run to its heart content. Then I d
-
Hi all, I have selected the following options in delete overlapping request as we need only one request for a week. Delete existing requests Only delete request frm same same DTP Selections are Same or More comprehensive Request date is Yesterday or
-
Contacts names not showing in messages
I need help with this.
-
Phone Freezes up when Closing out multiple Apps in Multitasking toolbar.
Hello World...umm.. I am not sure if anyone else is experiencing this but every since I have upgraded to os 4 on my 3G S... whenever I proceed to close apps out of my multitask toolbar after the 4th app closed in a row my phone COMPLETELY LOCKS UP! U
-
My Apple TV 3 is left with the flashing light and no video shows pantantalla
greetings. I connect my PC to restore it but this is not recognized as blocked, I could help please.