Creating a material with its classification using BAPI's
Hi there,
I am creating a function module to create a material master using BAPI's. I am using the BAPI 'BAPI_MATERIAL_SAVEDATA'. However I did not find a way to pass the classification details to this BAPI. As I need to create a classification data along with material basic data, can you please tell me how I can do it. Are there any BAPI's which I can use to create classification data?
Please help, I have stuck here from a longer time.
Thanks,
Ganesh.
hi
good
Use FM 'BAPI_OBJCL_GETDETAIL' to retrieve the classification data.
Import params:
1. Object key : give the material number
2. Object table : give material master table i.e. MARA
3. Class Num: Give the class name from which u have to fetch the characteristic data
4. Class type: give '001' for material
You will get the classification data in the following tables:
ALLOCVALUESNUM
ALLOCVALUESCHAR
ALLOCVALUESCURR
This should be helpful, do get back in case of any queries.
thanks
mrutyun^
Similar Messages
-
Creating credit memo with two positions using Bapi
Hi all, i are creating a credit memo using BAPI_BILLINGDOC_CREATEMULTIPLE with manual price condition for each position and have a problem.
All the positions use the last condition value of the CONDITIONDATAIN table.
Thes is an example code used.
t_billing-salesorg = 'SI01'.
t_billing-DISTR_CHAN = '05'.
t_billing-DIVISION = '01'.
t_billing-DOC_TYPE = p_dtype. " ZC07 o TA
t_billing-ORDBILLTYP = 'ZC06'. " ZC06 o FX
t_billing-SOLD_TO = p_clie. "'0000200002'.
t_billing-ITEM_CATEG = 'ZG2N'. " ZG2N o TAN
t_billing-PLANT = '1100'.
t_billing-BILL_TO = p_clie. "'0000200002'.
t_billing-PAYER = p_clie. "'0000200002'.
t_billing-SHIP_TO = p_clie. "'0000200002'.
t_billing-MATERIAL = '0000000000300003'.
t_billing-REQ_QTY = p_cant. "'1.000'.
t_billing-item = '1'.
APPEND t_billing.
t_conditions-DATA_INDEX = '1'.
t_conditions-COND_TYPE = 'ZCON'.
t_conditions-COND_VALUE = '12.0000'.
append t_conditions.
t_billing-salesorg = 'SI01'.
t_billing-DISTR_CHAN = '05'.
t_billing-DIVISION = '01'.
t_billing-DOC_TYPE = p_dtype. " ZC07 o TA
t_billing-ORDBILLTYP = 'ZC06'. " ZC06 o FX
t_billing-SOLD_TO = p_clie. "'0000200002'.
t_billing-ITEM_CATEG = 'ZG2N'. " ZG2N o TAN
t_billing-PLANT = '1100'.
t_billing-BILL_TO = p_clie. "'0000200002'.
t_billing-PAYER = p_clie. "'0000200002'.
t_billing-SHIP_TO = p_clie. "'0000200002'.
t_billing-MATERIAL = '0000000000300004'.
t_billing-REQ_QTY = p_cant. "'1.000'.
t_billing-item = '2'.
APPEND t_billing.
t_conditions-DATA_INDEX = '2'.
t_conditions-COND_TYPE = 'ZCON'.
t_conditions-COND_VALUE = '24.0000'.
append t_conditions.
CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
EXPORTING
CREATORDATAIN = t_creator
TABLES
billingdatain = t_billing
CONDITIONDATAIN = t_conditions
return = t_return
success = t_success.
In these example, the first position have a value of 12 and the seccond a value of 24.
The generated document have a value of 24 for the two positions.
Do you helpme??
Regards
Adrián Callejón
Message was edited by:
Adrian CallejonThank you Jack. That's exactly what I needed to know.
Now it works. As an example I attach some code that also uses the credit card functionality
pos-salesorg = 'EESP'.
pos-distr_chan = 'ES'.
pos-division = 'TI'.
pos-ref_doc = '1'.
pos-material = mat10.
pos-req_qty = 1.
pos-itm_number = 1.
pos-ref_item = 1.
APPEND pos TO billdata.
pos-material = mat11.
pos-req_qty = 1.
pos-itm_number = 2.
pos-ref_item = 2.
APPEND pos TO billdata.
lincond-data_index = '1'.
lincond-cond_type = 'PR01'.
lincond-cond_value = '1.85'.
lincond-cond_curr = 'EUR'.
APPEND lincond TO conddata.
lincond-data_index = '2'.
lincond-cond_type = 'PR01'.
lincond-cond_value = '1.70'.
lincond-cond_curr = 'EUR'.
APPEND lincond TO conddata.
lincard-cc_type = 'VISA'.
lincard-cc_number = '4560000000000038'.
lincard-cc_valid_t = sy-datum + 90.
lincard-cc_name = 'Pedro Pérez'.
lincard-authamount = '1.85'.
lincard-currency = 'EUR'.
lincard-auth_flag = 'X'.
lincard-auth_date = sy-datum.
lincard-cc_auth_no = 'autno10'.
lincard-bill_value = '1.85'.
APPEND lincard TO carddata.
CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
* EXPORTING
* CREATORDATAIN =
* TESTRUN =
* POSTING =
TABLES
BILLINGDATAIN = billdata
CONDITIONDATAIN = conddata
CCARDDATAIN = carddata
* TEXTDATAIN =
ERRORS = t_errores
RETURN = t_bapiret
SUCCESS = t_success. -
MM01 with inspection setup using bapi
I need create material with some views including the Quality management view. the Bapi i am using is BAPI_MATERIAL_SAVEDATA. this contains only some fields for that QM view. Bu hw do i check the Inspection setup check box.
There is another BAPI BAPI_MATINSPCTRL_SAVEREPLICA
this includes inspection type details.the problem is i run the first mentioned BAPI and create the material with QM view and then later use the second mentioned BAPI to load inspection details. but it states that no inspection setup is maintaind for that material, even though a QM view exists. How to resolve?
Thanks.Hi,
you can check the BAPI_INSPECTIONPLAN_CREATE for the named purpose, the values you named are in the structure BAPI1191_CHA_C please read the BAPI documentation:
Functionality
You can use this function module to create inspection plans and all its subordinate objects.
You can create a key date view and the complete history of an inspection plan. It is useful to have a history when transferring data from external systems.
Example
You want to create an inspection plan with operations and inspection characteristics for key date 01.01.2000. Make an entry in the following tables for each object:
TASK
OPERATION
INSPCHARACTERISTIC
If you want to assign test equipment to the inspection characteristic in field ITEM_NO_OF_PRODUCTION_RESOURCE, you must have assigned this test equipment in PARAMETER PRODUCTIONRESOURCE.
Notes
If no error occurs during the transfer of data, the export parameters GROUP and GROUPCOUNTER contain the key for the task list created. A COMMIT WORK must be executed for writing data to the database.
All errors that have occured are logged in the export parameter RETURN. If there are inconsistencies, the inspection plan to be created is rejected
<b>Reward points</b>
Regards -
How create a purchase order without imputation using bapi: BAPI_PO_CREATE1
Hello Forum
I have an request for purchase order with imputation K (cost center, EBAN-KNTTP). During the liberation of the request for purchase order, and using the Bapi: BAPI_PO_CREATE1, I want to create a Purchase Order without imputation (imputation empty or charge empty).
The system displays the following error: The request for purchase order, item (position) 10, is attributed to another order...
I imagine that is because the request for purchase order has imputation (charged) K and the purchase order will have no type of imputation (imputation empty).
However, manually, Yes, I can create the purchase order. That is, I first release, the request for purchase order. Then I create the order of purchase using ME21 and with reference to request for purchase order, and when SAP returns the items of the request for purchase order, I manually remove the imputation K, and these items to become the purchase order.
Please support me want to know how to resolve this case, why can not I create a purchase order without imputation to from the request for purchase order with imputation K, using Bapi
Thank you.
Greetings,Hi,
In the item overview of the purchase order creation screen (ME21N), you have a column Purchasing Doc and next it item no. You can give the existing purchase order number here with item no which will create a purchase order, and changes can be made wherever you require.
Hope this helps.
Thanks
Krishna. -
How to create a window with its own window border other than the local system window border?
How to create a window with its own window border other than the local system window border?
For example, a border: a black line with a width 1 and then a transparent line with a width 5. Further inner, it is the content pane.
In JavaSE, there seems to have the paintComponent() method for the JFrame to realize the effect.Not sure why your code is doing that. I usually use an ObjectProperty<Point2D> to hold the initial coordinates of the mouse press, and set it to null on a mouse release. That seems to avoid the dragging being confused by mouse interaction with other nodes.
import javafx.application.Application;
import javafx.application.Platform;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.collections.FXCollections;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Point2D;
import javafx.geometry.Pos;
import javafx.scene.Node;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.ChoiceBox;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.StackPane;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
import javafx.stage.Window;
public class CustomBorderExample extends Application {
@Override
public void start(Stage primaryStage) {
AnchorPane root = new AnchorPane();
root.setStyle("-fx-border-color: black; -fx-border-width: 1px; ");
enableDragging(root);
StackPane mainContainer = new StackPane();
AnchorPane.setTopAnchor(mainContainer, 5.0);
AnchorPane.setLeftAnchor(mainContainer, 5.0);
AnchorPane.setRightAnchor(mainContainer, 5.0);
AnchorPane.setBottomAnchor(mainContainer, 5.0);
mainContainer.setStyle("-fx-background-color: aliceblue;");
root.getChildren().add(mainContainer);
primaryStage.initStyle(StageStyle.TRANSPARENT);
final ChoiceBox<String> choiceBox = new ChoiceBox<>(FXCollections.observableArrayList("Item 1", "Item 2", "Item 3"));
final Button closeButton = new Button("Close");
VBox vbox = new VBox(10);
vbox.setAlignment(Pos.CENTER);
vbox.getChildren().addAll(choiceBox, closeButton);
mainContainer.getChildren().add(vbox);
closeButton.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
Platform.exit();
primaryStage.setScene(new Scene(root, 300, 200, Color.TRANSPARENT));
primaryStage.show();
private void enableDragging(final Node n) {
final ObjectProperty<Point2D> mouseAnchor = new SimpleObjectProperty<>(null);
n.addEventHandler(MouseEvent.MOUSE_PRESSED, new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent event) {
mouseAnchor.set(new Point2D(event.getX(), event.getY()));
n.addEventHandler(MouseEvent.MOUSE_RELEASED, new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent event) {
mouseAnchor.set(null);
n.addEventHandler(MouseEvent.MOUSE_DRAGGED, new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent event) {
Point2D anchor = mouseAnchor.get();
Scene scene = n.getScene();
Window window = null ;
if (scene != null) {
window = scene.getWindow();
if (anchor != null && window != null) {
double deltaX = event.getX()-anchor.getX();
double deltaY = event.getY()-anchor.getY();
window.setX(window.getX()+deltaX);
window.setY(window.getY()+deltaY);
public static void main(String[] args) {
launch(args); -
How can i create excel sheet with multiple tabs using utl file?
how can i create excel sheet with multiple tabs using utl file?
any one help me?Jaggy,
I gave you the most suitable answer on your own thread yesterday
Re: How to Generating Excel workbook with multiple worksheets -
Hello al!
I created a website with iWeb but use GoDady for hosting it rather than MobileMe. The images on my Gallery page do not show at all on the external domain but they DO show when seen on MobileMe. Has anyone encountered this problem before? Many thanks!Just create a new page (or use the existing photo page) on your external site and use html to add an iframe sized to the page and link it to the mobilme gallery page. Works for me just fine when showing my gallery from a yahoo site.
like this
<iframe scrolling="off" allowTransparency="true" frameborder="0" scrolling="yes" style="width:100%;height:100%;border:none" src="http://gallery.me.com/your_account_name"></iframe> -
How to create a material which can be used in T-Codes VAO1 & MB1C create
Hello Experts,
How can I create a material which can be used to create a sales order and can be used to create inventory using VAO1 and MB1C T-Codes respectively.
What are the configurations that I need to take care of, while creating it?
I need to create a material which can be used in the whole sales cycle(sales order,goods issue,billing and etc).
Please Help,
Thanks in Advance,
SumaHi
Thanks for your fast replies.. I have created a new material and was able to create inventory thru MB1C. But I was not able to generate a goods delivery(VL01N) and billing document(VF01) for the sales order.
Error: No schedule lines due for delivery up to the selected date
Message no. VL248
Diagnosis
There are no schedule lines due for the given order item up to the date chosen.
System Response
The system does not create a delivery item for this order item.
Procedure
Check whether the order item to be delivered contains confirmed schedule lines.
If this is the case, set the selection date further into the future if you still want to create a delivery for this item.
Please suggest,
Tanks,
Suma
Edited by: Suma B on Sep 23, 2008 3:55 PM -
Creating a material with just the basic view using BAPI
Hi
I intend to create a new material with just the basic view using BAPI BAPI_MATERIAL_SAVEDATA -
To do this - I believe I have to fill in the structure HEADDATA data - ( mandatory ) with the required values - I fill values for fields IND_SECTOR, MATL_TYPE & basic view ( check this field ) and leave the MATERIAL field as blank (assuming internal numbering ) and then fill values of the CLIENTDATA structure with values for the basic data view.
Is this correct ? Will my material number created be returned in the RETURN structure - how do I look for the material number exclusively in my RETURN structure ?hi
good
go through this progarm which ll give you detail idea about BAPI_MATERIAL_SAVEDATA
REPORT ZBAPIMM01 LINE-SIZE 255 NO STANDARD PAGE HEADING
LINE-COUNT 065(001).
TABLES: T001L, "Storage Locations
MARA, "General Material Data
MAKT, "Material Descriptions
MBEW, "Material Valuation
MARC. "Plant Data for Material
DATA: BAPI_HEAD LIKE BAPIMATHEAD,
BAPI_MAKT LIKE BAPI_MAKT, "Material Description
BAPI_MARA1 LIKE BAPI_MARA, "Client Data
BAPI_MARAX LIKE BAPI_MARAX,
BAPI_MARC1 LIKE BAPI_MARC, "Plant View
BAPI_MARCX LIKE BAPI_MARCX,
BAPI_MBEW1 LIKE BAPI_MBEW, "Accounting View
BAPI_MBEWX LIKE BAPI_MBEWX,
BAPI_RETURN LIKE BAPIRET2.
DATA: BEGIN OF INT_MAKT OCCURS 100.
INCLUDE STRUCTURE BAPI_MAKT.
DATA: END OF INT_MAKT.
DATA: BEGIN OF INT_MAT OCCURS 100,
WERKS(4), "Plant
MTART(4), "Material type
MATNR(18), "Material number
MATKL(9) , "Material group
MBRSH(1), "Industry sector
MEINS(3), "Base unit of measure
GEWEI(3), "Weight Unit
SPART(2), "Division
EKGRP(3), "Purchasing group
VPRSV(1), "Price control indicator
STPRS(12), "Standard price
PEINH(3), "Price unit
SPRAS(2), "Language key
MAKTX(40), "Material description
END OF INT_MAT.
SELECT-OPTIONS:
PLANT FOR MARC-WERKS OBLIGATORY MEMORY ID PLT,
MATERIAL FOR MARA-MATNR MEMORY ID MAT,
MATLTYPE FOR MARA-MTART MEMORY ID MTY,
DIVISION FOR MARA-SPART MEMORY ID DIV.
PARAMETERS: F_FILE LIKE RLGRAP-FILENAME
DEFAULT 'C:\DATA\ZMATERIAL.XLS' MEMORY ID F_FILE,
GETDATA AS CHECKBOX, "Tick to download materials data to local harddisk
UPDDATA AS CHECKBOX. "Tick to update date to Materials Master
IF GETDATA = 'X'.
PERFORM DOWNLOAD_DATA.
PERFORM DOWNLOAD_FILE.
ENDIF.
IF UPDDATA = 'X'.
PERFORM UPLOAD_FILE.
PERFORM UPDATE_MM.
ENDIF.
FORM DOWNLOAD_DATA.
SELECT * FROM MARC WHERE LVORM EQ ' '
AND WERKS IN PLANT
AND MATNR IN MATERIAL.
CLEAR MARA.
SELECT SINGLE * FROM MARA WHERE MATNR = MARC-MATNR.
CHECK MATLTYPE.
CHECK DIVISION.
CLEAR MBEW.
SELECT SINGLE * FROM MBEW WHERE MATNR = MARC-MATNR
AND BWKEY = MARC-WERKS.
CLEAR MAKT.
SELECT SINGLE * FROM MAKT WHERE SPRAS = 'EN'
AND MATNR = MARC-MATNR.
WRITE:/ MARC-WERKS, "Plant
MARA-MTART, "Material type
MARA-MATNR, "Material number
MARA-MATKL, "Material group
MARA-MBRSH, "Industry sector
MARA-MEINS, "Base unit of measure
MARA-GEWEI, "Weight Unit
MARA-SPART, "Division
MARC-EKGRP, "Purchasing group
MBEW-VPRSV, "Price control indicator
MBEW-STPRS, "Standard price
MBEW-PEINH, "Price unit
MAKT-SPRAS, "Language key
MAKT-MAKTX. "Material description
INT_MAT-WERKS = MARC-WERKS. "Plant
INT_MAT-MTART = MARA-MTART. "Material type
INT_MAT-MATNR = MARA-MATNR. "Material number
INT_MAT-MATKL = MARA-MATKL. "Material group
INT_MAT-MBRSH = MARA-MBRSH. "Industry sector
INT_MAT-MEINS = MARA-MEINS. "Base unit of measure
INT_MAT-GEWEI = MARA-GEWEI. "Weight Unit
INT_MAT-SPART = MARA-SPART. "Division
INT_MAT-EKGRP = MARC-EKGRP. "Purchasing group
INT_MAT-VPRSV = MBEW-VPRSV. "Price control indicator
INT_MAT-STPRS = MBEW-STPRS. "Standard price
INT_MAT-PEINH = MBEW-PEINH. "Price unit
INT_MAT-SPRAS = MAKT-SPRAS. "Language key
INT_MAT-MAKTX = MAKT-MAKTX. "Material description
APPEND INT_MAT.
CLEAR INT_MAT.
ENDSELECT.
ENDFORM.
FORM DOWNLOAD_FILE.
call function 'WS_DOWNLOAD'
EXPORTING
FILENAME = F_FILE
FILETYPE = 'DAT'
FILETYPE = 'WK1'
tables
data_tab = INT_MAT
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10.
IF SY-SUBRC = 0.
FORMAT COLOR COL_GROUP.
WRITE:/ 'Data Download Successfully to your local harddisk'.
SKIP.
ENDIF.
ENDFORM.
FORM UPLOAD_FILE.
call function 'WS_UPLOAD'
EXPORTING
FILENAME = F_FILE
FILETYPE = 'DAT'
FILETYPE = 'WK1'
tables
data_tab = INT_MAT
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10.
IF SY-SUBRC = 0.
FORMAT COLOR COL_GROUP.
WRITE:/ 'Data Upload Successfully from your local harddisk'.
SKIP.
ENDIF.
ENDFORM.
FORM UPDATE_MM.
LOOP AT INT_MAT.
Header
BAPI_HEAD-MATERIAL = INT_MAT-MATNR.
BAPI_HEAD-IND_SECTOR = INT_MAT-MBRSH.
BAPI_HEAD-MATL_TYPE = INT_MAT-MTART.
BAPI_HEAD-BASIC_VIEW = 'X'.
BAPI_HEAD-PURCHASE_VIEW = 'X'.
BAPI_HEAD-ACCOUNT_VIEW = 'X'.
Material Description
REFRESH INT_MAKT.
INT_MAKT-LANGU = INT_MAT-SPRAS.
INT_MAKT-MATL_DESC = INT_MAT-MAKTX.
APPEND INT_MAKT.
Client Data - Basic
BAPI_MARA1-MATL_GROUP = INT_MAT-MATKL.
BAPI_MARA1-BASE_UOM = INT_MAT-MEINS.
BAPI_MARA1-UNIT_OF_WT = INT_MAT-GEWEI.
BAPI_MARA1-DIVISION = INT_MAT-SPART.
BAPI_MARAX-MATL_GROUP = 'X'.
BAPI_MARAX-BASE_UOM = 'X'.
BAPI_MARAX-UNIT_OF_WT = 'X'.
BAPI_MARAX-DIVISION = 'X'.
Plant - Purchasing
BAPI_MARC1-PLANT = INT_MAT-WERKS.
BAPI_MARC1-PUR_GROUP = INT_MAT-EKGRP.
BAPI_MARCX-PLANT = INT_MAT-WERKS.
BAPI_MARCX-PUR_GROUP = 'X'.
Accounting
BAPI_MBEW1-VAL_AREA = INT_MAT-WERKS.
BAPI_MBEW1-PRICE_CTRL = INT_MAT-VPRSV.
BAPI_MBEW1-STD_PRICE = INT_MAT-STPRS.
BAPI_MBEW1-PRICE_UNIT = INT_MAT-PEINH.
BAPI_MBEWX-VAL_AREA = INT_MAT-WERKS.
BAPI_MBEWX-PRICE_CTRL = 'X'.
BAPI_MBEWX-STD_PRICE = 'X'.
BAPI_MBEWX-PRICE_UNIT = 'X'.
WRITE:/ BAPI_HEAD, BAPI_MARC1.
call function 'BAPI_MATERIAL_SAVEDATA'
exporting
HEADDATA = BAPI_HEAD
CLIENTDATA = BAPI_MARA1
CLIENTDATAX = BAPI_MARAX
PLANTDATA = BAPI_MARC1
PLANTDATAX = BAPI_MARCX
FORECASTPARAMETERS =
FORECASTPARAMETERSX =
PLANNINGDATA =
PLANNINGDATAX =
STORAGELOCATIONDATA =
STORAGELOCATIONDATAX =
VALUATIONDATA = BAPI_MBEW1
VALUATIONDATAX = BAPI_MBEWX
WAREHOUSENUMBERDATA =
WAREHOUSENUMBERDATAX =
SALESDATA = BAPI_MVKE1
SALESDATAX = BAPI_MVKEX
STORAGETYPEDATA =
STORAGETYPEDATAX =
IMPORTING
RETURN = BAPI_RETURN
TABLES
MATERIALDESCRIPTION = INT_MAKT
UNITSOFMEASURE =
UNITSOFMEASUREX =
INTERNATIONALARTNOS =
MATERIALLONGTEXT =
TAXCLASSIFICATIONS =
RETURNMESSAGES =
PRTDATA =
PRTDATAX =
EXTENSIONIN =
EXTENSIONINX =
IF BAPI_RETURN-TYPE = 'E'.
WRITE:/ 'Error Message ', BAPI_RETURN.
ENDIF.
ENDLOOP.
ENDFORM.
*---End of Program
thanks
mrutyun^ -
How to create a Sales order with ref. with serial number using BAPI
Hi Gurus...
I have a requirement where, i need to create an order with reference to serial number using a BAPI.
The inputs will be the Order type..Sales area..Sales office..Sales group..Sold-To-party..Material number...Serial number...
When i create the order using VA01 the configuration data will be automatically copied from the BUMP order which will have all the required information.
But to create using a BAPI, i am struck ed..Please help
Thanks in advance..
SrinuYou can use this BAPI.
You can pass ITM_NUMBER to the ORDER_ITEMS_IN parameter. I think this will act as serial number.
Regards,
Murali -
Multiple MBEWH records created when creating new material with BAPI
Hi,
I am using BAPI_MATERIAL_SAVEDATA to create a material.
When Creating a brand new material, the BAPI will create multiple MBEWH records, which is causing to update Previous Period/Year Moving Average price to update in MBEW.
Any suggestion, why the BAPI would create historical data for MBEWH?
Thank you very much.
Oleg.Hi,
I am using BAPI_MATERIAL_SAVEDATA to create a material.
When Creating a brand new material, the BAPI will create multiple MBEWH records, which is causing to update Previous Period/Year Moving Average price to update in MBEW.
Any suggestion, why the BAPI would create historical data for MBEWH?
Thank you very much.
Oleg. -
How to copy a page( webpart page) with its content using client side.
How to copy a page(in my case webpart page) with its content(it may contain webparts) using client code (i mean using SPservices or ECMA script).
What i am planning is ,to give end user a page where it will contain text box to specify name of page and a button with the help of content editor webpart.
where on click of button we need to write client side code such that it should create a new page from a existing page in a library with given name by user.
Any suggestion would be helpful. For your information we can do it through UI with the help Site Actions / Manage Content and Structure.But i want to automate it using client side code.Server side code is restricted.
or can we create a template of an existing page with content without the help of sharepoint designer.
Thanks in advance
with regards RavichandraThis is good example
http://balajiindia.wordpress.com/2011/05/27/using-jquery-with-custom-web-services-in-sharepoint/
Create web service
http://balajiindia.wordpress.com/2011/05/27/using-jquery-with-custom-web-services-in-sharepoint/. Create method "Create Page" http://www.learningsharepoint.com/2010/09/17/create-publishing-pages-sharepoint-2010-programmatically/
Build your Java Script. You can use Content Editor Web Part if you want to avoid custom web part development http://www.codeproject.com/Articles/544538/JQuery-with-SharePoint
Oleg -
Multiple EAN maintainance with one material with its stock quantity
Hi,
I have a question with regards to EAN.
Basically, I would like to maintain multiple EAN number and its correspondent stock figure of a material into the material master (see following example):
Material: 100200
EAN1 1234903948193 stock quantity 100pcs
EAN2 8374772990291 stock quantity 130pcs
EAN3 1378882990201 stock quantity 163pcs
Does the above possible to be maintain in material master basis view in the additional view with its relevant quantity?
The business rational for maintaining multiple EAN for this material is because this material can be produced in UK, Germany, & France:
EAN1 UK, EAN2 Germany, EAN3 France.
And further, business would like to keep track of how much stock quantity it has on each of these EAN:
EAN1 100pcs, EAN2 130pcs, EAN3 163pcs.
Please advise. Thanks
tuffyHi,
Multiple EANs can be maintained for a material in material master but the stock number cannot be tied to it.
For this you can use alternate methods like split valuation where in the valuation type refers to the EAN and this way you can maintain an indirect reference between EAN and stock numbers.
Hope this helps. -
How to produce Material output message when use bapi function?
Dear Experts :
I use bapi BAPI_GOODSMVT_CREATE to receive stock.
I find the output message can't create automatically even when I have set the type in MR21.
Hope someone can teach me how to produce the message when I create the material document by BAPI function.
Thanks a lot.Hi,
The messages are stored in the return table of the bapi.
You can search in SCN or Google for BAPI error handling. -
Delivery Created for material with ref to a sales Order, even if the stock
Hi Guru,
Deliveriey is getting created of material having TANN as Item category in the sales Order. We want the system to stop creating a delivery, when there is no stock of the same.
How can we configure the scenario.
Please help.
Regards
Amit ShrivastavaHi amit
If you feel this answer solve your query please reward with points.
With out stock also you can create a delivery and picking you will get delviery doucment number But the thing is when you cannot do the post goods issue
Deficit of SL Unrestricted-use you will get this type of messege when you do the p..g.i. Post goods issue is the thing it will update the inventory. There is no stock it will not update any stock temparay it will create all those things.
Thanks & Regards
rack29
Maybe you are looking for
-
Need help creating applescript
If anyone can help me figure this out. I would really appreciate it. I can't write scripts from scratch but I know how they work and I know enough to get myself into trouble. I would like to create a script that would automatically produce a printed
-
How I can sync my iPad to iTunes with out deleting old data
Syncing of the itune stores
-
I have expanded my keywords over several years. There are bird images taken several years ago that lack keywords but when I bring them up now I also have the keywords from that time which are quite inadequate today. Is there a way in which I can appl
-
UCCE (CCM + IP IVR + ICM) - IVR failing
Hello, just a regular IPCC Enterprise setup, CCM, IP IVR, ICM 7.0, translation routing. During peak hours, IP IVR is failing, returning 'I am sorry, we are experiencing system problems etc etc". Only restarting the CRS Engine helps. When rebooting th
-
Parallel Sequence Routing using RCPTRA01
Hi all, I've a requirement where i need to Upload Parallel Sequence Routing . I'm using RCPTRA01 for created Standard Sequence Routing . Can anyone help me how to Upload Parallel Sequence Routing using RCPTRA01.