FM to insert a multiple characteristic value
Hi,
i try to insert a characteristic value to the classification of the material.The characteristic is "Multiple Values". So when i use FM BAPI_OBJCL_CHANGE the characteristic will be overwritten.
thx, martin
Hi,
Well you can create a separate Migration Object for migrating text for the Business Partner. Refer to the following threads for example:
how to write program for the long text in EMIGALL for the DEVICE LOCATION.
EMIGALL for long text
I tried in my system, and I had to pass the following values to the object:
X_HEAD Structure:
TDFORM = SYSTEM
TDSPRAS = EN
TDOBJECT = BUT000
TDNAME = business partner number
TDID = 0001
TDLINESIZE = 132
You can get the required values by selecting the EDITOR option for the note and referring to the fields
TEXTNAME = TDNAME
TEXTID = TDID
TEXTOBJECT = TDOBJECT
XT_LINE_TAB Structure:
TDFORMAT = *
TDLINE = the text you want to migrate
Another option will be to use the Function Module SAVE_TEXT with the values, immediately after the NEWKEY is generated for the PARTNER object by writing an event.
Let me know if further help is required.
Cheers,
Sachin.
Similar Messages
-
How to place multiple characteristic values for a single Report line
hi friends,
I want to display a report with multiple characteristc values in different columns for each instance, For example there are 2 instances and they have multiple characteristics , so all characteristics of each instance should be displayed in multiple columns in one by one in the same row.
Thanks in advance.
RK
Message was edited by:
RKHi RK,
Try this it may help you for multiple values for one instance....
*Type-pools
TYPE-POOLS: slis.
Data declarations.
DATA: BEGIN OF t_vbak OCCURS 0,
vbeln TYPE vbeln,
bstnk TYPE vbak-bstnk,
erdat TYPE vbak-erdat,
kunnr TYPE vbak-kunnr,
END OF t_vbak.
DATA: BEGIN OF t_vbap OCCURS 0,
vbeln TYPE vbeln,
matnr TYPE vbap-matnr,
netpr TYPE vbap-netpr,
waerk TYPE vbap-waerk,
kwmeng TYPE vbap-kwmeng,
meins TYPE vbap-meins,
END OF t_vbap.
DATA: t_fieldcatalog1 TYPE slis_t_fieldcat_alv.
DATA: t_fieldcatalog2 TYPE slis_t_fieldcat_alv.
DATA: v_repid TYPE syrepid.
DATA: s_layout TYPE slis_layout_alv.
DATA: v_tabname TYPE slis_tabname.
DATA: t_events TYPE slis_t_event.
start-of-selection event.
START-OF-SELECTION.
v_repid = sy-repid.
Get the fieldcatalog for the first block
PERFORM get_fieldcat1 CHANGING t_fieldcatalog1.
Get the fieldcatalog for the second block
PERFORM get_fieldcat2 CHANGING t_fieldcatalog2.
Get the data for the first block
SELECT vbeln bstnk erdat kunnr UP TO 10 ROWS
INTO TABLE t_vbak
FROM vbak WHERE vbeln > '0060000100'.
Get the data for the second block
SELECT vbeln matnr netpr waerk kwmeng meins UP TO 10
ROWS
INTO TABLE t_vbap
FROM vbap WHERE vbeln > '0060000100'.
init
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
EXPORTING
i_callback_program = v_repid.
First block
v_tabname = 'ITAB1'.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
is_layout = s_layout
it_fieldcat = t_fieldcatalog1
i_tabname = v_tabname
it_events = t_events
TABLES
t_outtab = t_vbak.
Second block
v_tabname = 'ITAB2'.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
is_layout = s_layout
it_fieldcat = t_fieldcatalog2
i_tabname = v_tabname
it_events = t_events
TABLES
t_outtab = t_vbap.
*Display
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
FORM GET_FIELDCAT1
Get the field catalog for the first block
FORM get_fieldcat1 CHANGING lt_fieldcatalog TYPE
slis_t_fieldcat_alv.
DATA: s_fieldcatalog TYPE slis_fieldcat_alv.
Order number
s_fieldcatalog-col_pos = '1'.
s_fieldcatalog-fieldname = 'VBELN'.
s_fieldcatalog-tabname = 'T_VBAK'.
s_fieldcatalog-ref_tabname = 'VBAK'.
s_fieldcatalog-ref_fieldname = 'VBELN'.
APPEND s_fieldcatalog TO lt_fieldcatalog.
CLEAR s_fieldcatalog.
Customer purchase order.
s_fieldcatalog-col_pos = '2'.
s_fieldcatalog-fieldname = 'BSTNK'.
s_fieldcatalog-tabname = 'T_VBAK'.
s_fieldcatalog-ref_tabname = 'VBAK'.
s_fieldcatalog-ref_fieldname = 'BSTNK'.
APPEND s_fieldcatalog TO lt_fieldcatalog.
CLEAR s_fieldcatalog.
Creation date.
s_fieldcatalog-col_pos = '3'.
s_fieldcatalog-fieldname = 'ERDAT'.
s_fieldcatalog-tabname = 'T_VBAK'.
s_fieldcatalog-ref_tabname = 'VBAK'.
s_fieldcatalog-ref_fieldname = 'ERDAT'.
APPEND s_fieldcatalog TO lt_fieldcatalog.
CLEAR s_fieldcatalog.
Customer
s_fieldcatalog-col_pos = '4'.
s_fieldcatalog-fieldname = 'KUNNR'.
s_fieldcatalog-tabname = 'T_VBAK'.
s_fieldcatalog-ref_tabname = 'VBAK'.
s_fieldcatalog-ref_fieldname = 'KUNNR'.
APPEND s_fieldcatalog TO lt_fieldcatalog.
CLEAR s_fieldcatalog.
ENDFORM.
FORM GET_FIELDCAT2
Get the field catalog for the second block
FORM get_fieldcat2 CHANGING lt_fieldcatalog TYPE
slis_t_fieldcat_alv.
DATA: s_fieldcatalog TYPE slis_fieldcat_alv.
Order number
s_fieldcatalog-col_pos = '1'.
s_fieldcatalog-fieldname = 'VBELN'.
s_fieldcatalog-tabname = 'T_VBAP'.
s_fieldcatalog-ref_tabname = 'VBAP'.
s_fieldcatalog-ref_fieldname = 'VBELN'.
APPEND s_fieldcatalog TO lt_fieldcatalog.
CLEAR s_fieldcatalog.
Material number
s_fieldcatalog-col_pos = '2'.
s_fieldcatalog-fieldname = 'MATNR'.
s_fieldcatalog-tabname = 'T_VBAP'.
s_fieldcatalog-ref_tabname = 'VBAP'.
s_fieldcatalog-ref_fieldname = 'MATNR'.
APPEND s_fieldcatalog TO lt_fieldcatalog.
CLEAR s_fieldcatalog.
Net price
s_fieldcatalog-col_pos = '3'.
s_fieldcatalog-fieldname = 'NETPR'.
s_fieldcatalog-tabname = 'T_VBAP'.
s_fieldcatalog-ref_tabname = 'VBAP'.
s_fieldcatalog-ref_fieldname = 'NETPR'.
s_fieldcatalog-cfieldname = 'WAERK'.
s_fieldcatalog-ctabname = 'T_VBAP'.
APPEND s_fieldcatalog TO lt_fieldcatalog.
CLEAR s_fieldcatalog.
Currency.
s_fieldcatalog-col_pos = '4'.
s_fieldcatalog-fieldname = 'WAERK'.
s_fieldcatalog-tabname = 'T_VBAP'.
s_fieldcatalog-ref_tabname = 'VBAP'.
s_fieldcatalog-ref_fieldname = 'WAERK'.
APPEND s_fieldcatalog TO lt_fieldcatalog.
CLEAR s_fieldcatalog.
Quantity
s_fieldcatalog-col_pos = '5'.
s_fieldcatalog-fieldname = 'KWMENG'.
s_fieldcatalog-tabname = 'T_VBAP'.
s_fieldcatalog-ref_tabname = 'VBAP'.
s_fieldcatalog-ref_fieldname = 'KWMENG'.
s_fieldcatalog-qfieldname = 'MEINS'.
s_fieldcatalog-qtabname = 'T_VBAP'.
APPEND s_fieldcatalog TO lt_fieldcatalog.
CLEAR s_fieldcatalog.
UOM
s_fieldcatalog-col_pos = '6'.
s_fieldcatalog-fieldname = 'MEINS'.
s_fieldcatalog-tabname = 'T_VBAP'.
s_fieldcatalog-ref_tabname = 'VBAP'.
s_fieldcatalog-ref_fieldname = 'MEINS'.
APPEND s_fieldcatalog TO lt_fieldcatalog.
CLEAR s_fieldcatalog.
ENDFORM.
Plz Reward points if contents are useful,,,
Regards,
Mandeep. -
Insert/Update multiple checkbox values into a table
Hi all,
I created an interactive report with checkboxes in it.
My application is like,
step 1: user will give his ID in a text box and click on 'submit' which redirects to IR page which has got checkboxes
step 2: IR report displays all the environments and access levels as two of its columns
step 3: if user checks on some box in IR, those particular environments and access levels (may be multiple environments and access levels) for that particular ID should get inserted into a table.
I have created a model application at http://apex.oracle.com/pls/apex/f?p=71510:20 (wokspace:test_me, username=test, paswrd: apex14gm)
I found this forum too, https://forums.oracle.com/thread/2387391?start=0&tstart=0. But I am confused of how to implement it!
How to achieve this??
Pls help me out....
Thanks in advanceHi Kanishkaa,
I've taken a look at your application.
So the things that I noticed that are wrong:
1)Your report: You created 2 items but you gave the 2 items the same idx. This is really weird I'm not sure if APEX knows how to handle this. Don't give 2 items the same idx. Furthermore you need to create 2 additional hidden items since you also want to store the access level and the environment.
2)The PL/SQL Process: Your PL/SQL Process: your making a type t_checkboxes, but your not actually doing anything with this type. Your not giving this any value. So obviously you get an error.
You really should rewrite this process based on the process in my blog. Please read it again carefully, if you just use the one insert statement you are using then even if you write a correct process that doesn't give any errors, the wrong data will be inserted.
Regards,
Joni -
Error when inserting Adhoc characteristic value next time through SDK
Hi,
while inserting an adhoc characteristic value to person through algorithm with different effective dates its working fine
for the first time but for the second time its showing error like "morethan one row matches the specified criteria"
--while entering manually through front-end its allowing to insert two values for the same characteristic type with different effective dates but if we edit any one of them its showing same error ......
can any one help me out in this? Is there any restriction that there should be only one characteristic value for one characteristic type in an entity?
thanks
sivaramSuggestions for your ODP.NET code.
1.
using Oracle.DataAccess.Types;
OracleBlob myBlob = new OracleBlob(con);
myBlob.Write(myByteArray, 0, count); //where myByteArray is populated by a file stream and count is the number of bytes to be written to myBlob
cmd.Parameters[0].Value = myBlob;
2. Check only when it's not null then dispose blob object, command object, and connection object. (No need to close connection before dispose)
This is not relevant to the issue.
Edited by: shsu on Jan 12, 2012 4:16 PM -
Split one column value and insert into multiple columns
hi
am new to plsql .
i want to split a characters from one column and insert into multiple columns
i tried used substr function the symbol ',' vary his place dynamically ,so i can't apply substr function.
for eg: before split
col1 :
col2 :
col3 :
col4 :
colu5: adsdf,fgrty,erfth,oiunth,okujt
after split
col1 :adsd
col2 :fgrty
col3 :erfth
col4 :oiunth
col5 : adsdf,fgrty,erfth,oiunth,okujt
can anyone help me
thanks
Edited by: 800324 on Dec 23, 2010 8:28 AM
Edited by: 800324 on Dec 23, 2010 8:36 AMHow about:
SQL> create table t
2 (col1 varchar2(30)
3 ,col2 varchar2(30)
4 ,col3 varchar2(30)
5 ,col4 varchar2(30)
6 ,col5 varchar2(30)
7 );
Table created.
SQL> insert into t (col5) values ('adsdf,fgrty,erfth,oiunth,okujt');
1 row created.
SQL> insert into t (col5) values ('x,y');
1 row created.
SQL> insert into t (col5) values ('a,b,c,d');
1 row created.
SQL> select * from t;
COL1 COL2 COL3 COL4 COL5
adsdf,fgrty,erfth,oiunth,okujt
x,y
a,b,c,d
3 rows selected.
SQL>
SQL> merge into t a
2 using ( with t1 as ( select col5||',' col5
3 from t
4 )
5 select substr(col5, 1, instr(col5, ',', 1, 1)-1) col1
6 , substr(col5, instr(col5, ',', 1, 1)+1, instr(col5, ',', 1, 2)- instr(col5, ',', 1, 1)-1) col2
7 , substr(col5, instr(col5, ',', 1, 2)+1, instr(col5, ',', 1, 3)- instr(col5, ',', 1, 2)-1) col3
8 , substr(col5, instr(col5, ',', 1, 3)+1, instr(col5, ',', 1, 4)- instr(col5, ',', 1, 3)-1) col4
9 , rtrim(col5, ',') col5
10 from t1
11 ) b
12 on ( a.col5 = b.col5 )
13 when matched then update set a.col1 = b.col1
14 , a.col2 = b.col2
15 , a.col3 = b.col3
16 , a.col4 = b.col4
17 when not matched then insert (a.col1) values (null);
3 rows merged.
SQL> select * from t;
COL1 COL2 COL3 COL4 COL5
adsdf fgrty erfth oiunth adsdf,fgrty,erfth,oiunth,okujt
x y x,y
a b c d a,b,c,d
3 rows selected.
SQL> Assuming you're on 9i... -
Multiple Single Values in Characteristic Variable
Hi,
I set up a characteristic variable in the Query Designer and opt for "multiple single values" . When I execute the query, the variable dialog box does not give me those check boxes which I can use to check which values I want to see in the report.
How come? Can you help me with that?
Thanks,
SabineHi Sabine.
Did you remember to set the variable processing type as a user entry?
In the query designer do you see the characteristic restricted to a variable?
BR
Stefan -
MULTIPLE VALUES INSERTION INTO MULTIPLE TEXTBOXES
I HAVE TO INSERT DATA INTO DATABASE TABLE FROM TEXTBOXES.DTABASE STRUCTURE
table name Insert_damo_1
name nvarchar(50)
lastname nvarchar(50)
addr nvarchar(50)
C# CODING
SqlConnection cnn1 = new SqlConnection("my connection string");
cnn1.Open();
SqlCommand cmd;
String[] nam1 = {TextBox1.Text,TextBox2.Text,TextBox3.Text };
foreach (String na in nam1)
cmd = new SqlCommand("insert into Insert_damo_1(name) values(@name)",cnn1);
cmd.Parameters.AddWithValue("@name",na);
cmd.ExecuteNonQuery();
String[] last1 = { TextBox4.Text, TextBox5.Text, TextBox6.Text };
foreach (String la1 in last1)
cmd = new SqlCommand("insert into Insert_damo_1(lastname) values(@lastname)", cnn1);
cmd.Parameters.AddWithValue("@lastname", la1);
cmd.ExecuteNonQuery();
String[] ad1 = { TextBox7.Text, TextBox8.Text, TextBox9.Text };
foreach (String a1 in ad1)
cmd = new SqlCommand("insert into Insert_damo_1(addr) values(@addr)", cnn1);
cmd.Parameters.AddWithValue("@addr", a1);
cmd.ExecuteNonQuery();
cnn1.Close();
Response.Write("insert successful");
I GOT THE RESULT AS
name lastname
address
a null null
b null null
c null null
null d null
null e null
null f null
null null g
null null h
null null i
1. I WANT RESULT WITHOUT NULL
2. IF USER DOES'T INSERT ANYTHING IN A TEXT BOX THEN ONLY NULL IS INSERTED AT THAT PLACE
ANY HELP WILL BE DEEPLY APPRECIATED.
THANK YOU.Try this
cnn1.Open();
SqlCommand cmd;
String[] nam1 = {TextBox1.Text,TextBox2.Text,TextBox3.Text };
String[] last1 = { TextBox4.Text, TextBox5.Text, TextBox6.Text };
String[] ad1 = { TextBox7.Text, TextBox8.Text, TextBox9.Text };
cmd = new SqlCommand("insert into Insert_damo_1(name,lastname,addr) values(@name,@lastname,@addr)",cnn1);
cmd.Parameters.Add("@name", SqlDbType.VarChar);
cmd.Parameters.Add("@lastname", SqlDbType.VarChar);
cmd.Parameters("@addr", SqlDbType.VarChar);
for(int i; i < nam1.Length; i++)
cmd.Parameters["@name"].Value = nam1[i];
cmd.Parameters["@lastname"].Value = last1[i];
cmd.Parameters["@addr"].Value = last1[i];
cmd.ExecuteNonQuery();
cnn1.Close();
Response.Write("insert successful");
jdweng -
Query on classification material characteristic values update/insert
Hi,
I have a requirement to change classification characteristic values of a material via Txn MM02.
The function modules tried are as follows which did not serve the purpose:
1.UPDATE_MATERIAL_CLASSIFICATION
2.CLVF_VB_INSERT_CLASSIFICATION
3.CLVF_INSERT_AUSP
4.CLVF_UPDATE_AUSP
The characteristic values are not getting updated in the table AUSP(Where the values must have been updated) . So the updating of material classification characteristic values via txn MM02 is failing.
Please can anybody help on any function modules or alternate solutions that will help to update the classification char. values of the materials.
Also,for info please let know of the tables that maybe related for this updation other than AUSP.
Any input at the earliest would be of great help.
Thanks in advance.
Regards,
Leeza Roy V.
EAS-SAP Practice,
Wipro Technologies,
Bangalore.
Mob : 9886676986.
Extn : 1152Leeza,
There are quite a few standard BAPI function modules that can be used exactly for this. Look into the BAPI transaction under the CROSS APPLICATION SYSTEM --> CLASSIFICATION .
BAPI_OBJCL_CHANGE
BAPI_OBJCL_CREATE
BAPI_OBJCL_DELETE
BAPI_OBJCL_GETCLASSES
BAPI_OBJCL_GETDETAIL
These can be used to modify / create any classification data for the materials.
Regards,
Ravi
Note : Please mark the helpful answers. -
Issue in Custome FM of Characteristic Value
Hi All,
I have created Custom FM for possible values of Characteristic.
Its working fine in all transaction except CU60.
In Cu60 Transaction if user click on F4 for characteristic value My custom help popup is coming. when user select any of the value its populating in table maintenance. But Issue the issue is when user is saving those value those value are not saving in table maintenance.
Please tell me if I need to do any addition stuff.
I have created FM using below SAP Doc.
Function Module for Checking Values
In this field, you can enter the name of a function module for checking characteristic values entered by the user. The function module can be created in any function group.
The following restrictions apply:
The function module must use the standardized interface.
The function module name cannot have more than 27 characters.
This allows names to be inferred for further function modules: for the possible entries on the value assignment screen, and for copying language-dependent value descriptions:
Function module for possible entries
<function module for value check> + suffix "_F4"
Function module for language-dependent value descriptions
<function module for value check> + suffix "_DC"
Interface for Function Module for Checking Values
Import Parameters:
CHARACT_NO LIKE CABN-ATINN Internal characteristic number
CHARACT LIKE CABN-ATNAM Characteristic name
VALUE LIKE CAWN-ATWRT Value to be checked
Exceptions:
NOT_FOUND Value not found
Interface for Function Module for Possible Entries
Import Parameters:
CHARACT_NO LIKE CABN-ATINN Internal characteristic number
CHARACT LIKE CABN-ATNAM Characteristic name
DISPLAY Display values only,
if DISPLAY = 'X'
ADDITIONAL_VALUES LIKE CABN-ATSON Additional values allowed
if ADDITIONAL_VALUES = 'X'
(if you want the possible
entries dialog box to contain an
additional line for entry)
MULTIPLE_VALUES LIKE RCTMV-ATLIS Multiple values allowed
LANGUAGE LIKE SY-LANGU Language indicator
DISPLAY_WITH_LANGUAGE Display value with description
Tables
VALUES LIKE RCTVALUES Selected values
When you call this table, it
contains existing values.
Deleted values have status 'D'
in the table.
New values have status 'I'
in the table.
The function module must also let you display and select values using the possible entries pushbutton. To display possible entries, you can use function modules in function group SHL3, such as HELP_VALUES_GET_WITH_TABLE_EXT. The content is described in the function module documentation.
Interface for Function Module for Language-Dependent Value Descriptions
Import parameters
CHARACT_NO LIKE CABN-ATINN Internal characteristic number
CHARACT LIKE CABN-ATNAM Characteristic name
VALUE LIKE CAWN-ATWRT Value to be checked
LANGUAGE LIKE SY-LANGU System language
Exceptions
NOT_FOUND Value not found
If you use this function module after the function module for checking values, the language-dependent description of the value is copied to the value assignment screen.
Note
Please note that the program code must be based on the predefined interfaces. If your program is not based on these interfaces, the program may terminate with a short dump.
Please note also that the function module cannot take into account any restrictions on allowed values that are due to inheritance or object dependencies, because the function can only read data that is already saved to database tables. The function cannot read current user entries.I have Created two FM Function Module for Checking Values and Function Module for Possible Entries
-
Auto Update of characteristic values in PO from SRM.
Hi,
For Configurable material we have characteristics values.
Material is configurable material with material type as services.
Same ECC material is replicate in SRM.
Create Shopping cart in portal SRM EBP for Multiple line item for material. Each material item will have different characteristics value.
Currently User attaching excel sheet with different characteristic value in Shopping cart.
Once Shopping cart no is created and Shopping cart no goes for approval.
Once approved, PR is created automatically.
Attached document is available in PR.
Buyer has to maintain manually characteristics value for material in Purchase order (PO) for each material item.
Is any way to Update Characteristics values in PR automatically when saving?
Regards,
Swapnilcheck if the condition is marked as statstical one in the pricing procedure
-
Characteristic values in BAPI_SALESORDER_CHANGE
Hi,
I want to add new configurable item in existing sales order with charactersitic values.
Iam using bapi BAPI_SALESORDER_CHANGE.
Iam now able to insert configurable item in existing sales order.
But the characteristic values are not getting stored.
Latest code is attached. What else is missing for storing characteristic values ?
select maximum item number in sales order
SELECT MAX( POSNR ) FROM VBAP CLIENT SPECIFIED
INTO MAX_POSNR
WHERE MANDT = SY-MANDT AND
VBELN = I_SORDER.
TMP_POSNR = MAX_POSNR + 10.
WA_HDRX-UPDATEFLAG = 'U'. "update
SALES_DOC = I_SORDER.
item data
WA_ITEM-ITM_NUMBER = TMP_POSNR.
WA_ITEM-MATERIAL = 'LEFTEYE'.
WA_ITEM-PLANT = I_STORE.
WA_ITEM-SHIP_POINT = I_STORE.
APPEND WA_ITEM TO IT_ITEM.
WA_ITEMX-ITM_NUMBER = TMP_POSNR.
WA_ITEMX-UPDATEFLAG = 'I'. "add
WA_ITEMX-MATERIAL = 'X'.
WA_ITEMX-PLANT = 'X'.
WA_ITEMX-SHIP_POINT = 'X'.
APPEND WA_ITEMX TO IT_ITEMX.
Schedule lines
WA_SCHD-ITM_NUMBER = TMP_POSNR.
WA_SCHD-SCHED_LINE = TMP_POSNR.
WA_SCHD-REQ_DATE = SY-DATUM.
WA_SCHD-REQ_QTY = 1.
WA_SCHD-SCHED_TYPE = 'CN'.
APPEND WA_SCHD TO IT_SCHD.
WA_SCHDX-ITM_NUMBER = TMP_POSNR.
WA_SCHDX-SCHED_LINE = TMP_POSNR.
WA_SCHDX-REQ_DATE = 'X'.
WA_SCHDX-REQ_QTY = 'X'.
WA_SCHDX-SCHED_TYPE = 'X'.
APPEND WA_SCHDX TO IT_SCHDX.
config & characteristic values
WA_VALUE-CONFIG_ID = '000001'.
WA_VALUE-INST_ID = '00000001'.
WA_VALUE-CHARC = 'PRES_DIST_SPH'.
WA_VALUE-VALUE = '3.2'.
APPEND WA_VALUE TO IT_VALUE.
WA_INST-CONFIG_ID = '000001'.
WA_INST-INST_ID = '00000001'.
WA_INST-OBJ_TYPE = 'MARA'.
WA_INST-CLASS_TYPE = '300'.
WA_INST-OBJ_KEY = 'LEFTEYE'.
WA_INST-QUANTITY = 1.
WA_INST-QUANTITY_UNIT = 'NO'.
APPEND WA_INST TO IT_INST.
WA_REF-POSEX = TMP_POSNR.
WA_REF-CONFIG_ID = '000001'.
WA_REF-ROOT_ID = '00000001'.
APPEND WA_REF TO IT_REF.
WA_PART-CONFIG_ID = '000001'.
WA_PART-PARENT_ID = '00000001'.
WA_PART-INST_ID = '00000001'.
WA_PART-OBJ_TYPE = 'MARA'.
WA_PART-CLASS_TYPE = '300'.
WA_PART-OBJ_KEY = 'LEFTEYE'.
APPEND WA_PART TO IT_PART.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = SALES_DOC
ORDER_HEADER_INX = WA_HDRX
TABLES
RETURN = IT_RET
ORDER_ITEM_IN = IT_ITEM
ORDER_ITEM_INX = IT_ITEMX
ORDER_CFGS_REF = IT_REF
ORDER_CFGS_PART_OF = IT_PART
ORDER_CFGS_INST = IT_INST
ORDER_CFGS_VALUE = IT_VALUE
SCHEDULE_LINES = IT_SCHD
SCHEDULE_LINESX = IT_SCHDX.
READ TABLE IT_RET INTO WA_RET WITH KEY TYPE = 'E'.
IF SY-SUBRC = 0.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF.
I get the following messages from BAPI :
ORDER_HEADER_IN has been processed successfully.
ITEM_IN has been processed successfully
The sales document is not yet complete: Edit data
TIL-Direct Sales TINDC01372 has been saved
What else is missing ? Any help is appreciated.
thanks,
Nagarajan.JHello Nagarajan,
I have used this BAPI in my last task. You are passing the values correctly. I will tell you why it is giving like that message.
Whenever we will create a sales order in VA01 transaction, you will get a message like "The sales order is not complete, would you like to EDIT" while saving the sales order.... This is because of not providing complete data required for careation of sales order.
Try to implement the changes manually in VA02, if you get same errors, then you can find your code is correct.
Even I got same type of messages when changing a sales order to change the Rejection Reason for the items.
Best Regards,
Sasidhar Reddy Matli.
Edited by: Sasidhar Reddy Matli on Jul 31, 2008 2:20 PM -
Purchase order release strategy with a characteristic value as a variable
Hi all,
We have Purchase order release strategy based on the following characteristics:
Total Net Order Value
Purchasing Organization
a few other custom fields
We would like to add a characteristic based on the creator of the PO. In the purchasing department there are two person which have the authorization to create an release POs. The goal is now to check if the actual user, who release the PO, is different from the PO creator. The value of this characteristic may not be a fix value, it must be contain the name of the actual user name.
Is there are a possibility to insert the characteristic value as a variable such as SY-UNAME instead a fix value?
Thanks,
Charlesthis is verymuch possible. You can use unsed fields user1, user2 etc in CEKKO or (ii) insert a new field in CEKKOZZ and use the new field. You need to build up logic in user-exit such that this field will take the value of person who had logged in. This can be done by ABAPer.
Hope this resolves ur problem -
Show Multiple Filter Values in a Web Template
Hello
I have a Web Template based on a query. On this Web Template I can set multiple single filter values for one characteristic.
Now I want to show these filtered values for this characteristic on the web item. This is possible for ONE filter value when you use the XML path (f.e. DATA_PROVIDER:DP1?/BICS_VIEW/SELECTION_STATE/SELECTION/CHARACTERISTICS/CHARACTERISTIC[@name='CHARNAME']/SELECTIONS/SELECTION[1]/MEMBER/@text)
Is there a possibility to show MULTIPLE filter values for one characteristics in a text or input field? I don't want to use a drop down box or the info field.
Kind Regards,
AndreasHI,
the best ay to do is create a query with same variable parameters as of the main query and place filter Characters on rows.
Use this query in one analysis item and use it on top row of the template as Filters information.This will give better look and feel as well solve your requirement -
How to - Select Multiple Filter Values w/o Navigation ability
Just FYI, I had a requirement to allow users to select multiple characteristic filter values. Something like a capabilities a combo box would afford us.
To do this just use a Generic Nav Block Web Item and in the Web Item configuration just uncheck the "Display Navigation Icons".
It gives them the ability to select multiple filter values without all the Drill up/down capabilities.You can use multiple filter options using the web item dropdwon box.
There is a How to document available in the BW 2.0B section for this..link below.
https://websmp206.sap-ag.de/~sapdownload/011000358700003825382001E/HOWTOMULTIPLESELECTION.DOC
Thanks. -
Gauges: Setting multiple intervals values
Hi,
I have following report:
ASL Budget Spend Amount
1 100$ 200$
2 200$ 150$
and I've created a gauge view based on "Spend Amount" measure.
Now, I see two gauges, one for each row. If I set intervals values, they are common to both rows. Can I define different intervals values for each row? For example
For first row interval must be
Green Range 0 - 150
Orange Range: 151 - 200
Red Range: 201 - 300
For second row interval must be
Green Range 0 - 150
Orange Range: 151 - 300
Red Range: 301 - 320
So, for first row, gauge indicator must be on Orange Range, on the other hand for second row, indicator must be on Green Range.
All Regards
GiancarloHi,Try the follwing exit:
Cerate a variable which represents Multiple single values and ready for input.
replace 001 and 002 with Keys of your characteristic values.
DATA:L_S_RANGE TYPE RSR_S_RANGESID.
I_STEP = 1.
CLEAR L_S_RANGE.
L_S_RANGE-LOW ='001'.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE.
L_S_RANGE-LOW = '002'.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE.
ENDFUNCTION.
Maybe you are looking for
-
I worked in Adobe FireWorks to make the animated .gif. What program do I use to convert the file from .gif to any video format: .mp4, .m4v, .avi, .wmv, etc. I want to convert it into video format, so that QuickTime Player plays the video, I can inser
-
Deploying a web application on Sun One app server 7
Hi, I am not able to deploy a web application on sun one server using Sun java studio. I have created Jsp, Servlet, Session bean and entity bean. When I am creating a web_module in the directory where JSP are kept, it is giving me error "directory is
-
Issues with lightroom 5.3 update in windows 7 HP SP1
After downloading and installing the 5.3 update I could open lightroom and it seemed to work fine. But when I tried to open a cr2 file in explorer no known program was found. I instructed to use lightroom now found in the folder lightroom 5.3, but in
-
Hi all, Please tell me how to get field from following path GO to MSC2N -- insert material, batch , plant , storage location Now select classification... there is box containing 'characsteristics descr ' & value so how to get that value I think that
-
User Exit Maintenance Order Business Completion
Hello Gurus, User Exit IWO10004 triggers when TECO the Maintenance order. What is the User Exit which can triggers when Business Completion? My requirement is I want to restrict the Business Completion only for TECO orders, Currently I even REL order