How to use upload condition record program RV14BTCI
Hi
how to use upload condition record program RV14BTCI.
kathir.
Hi,
To run this program we have to maintain Upload file in Application Directory,
We have to maintain 3 levels of records in that file.. my feel you upload through BDC or LSMW.
For your information,
The batch input program RV14BTCI reads the parameters is necessary
Giving sequential file and creates (depending on the data
In the file seq) one or more batch input sessions.
The data are seq file in the following structure expected:
- The session a session intent (Table KOBTCI, Record 0)
All other records until the next session, the intent
Last session assigned to read
- The head condition Sentence (Table KOBTCI, record 1)
All other records until the next condition,
Last read head appropriate rate
This includes the corresponding condition
Condition table
- The key sentence of a Main (Table KOBTCI, record 2)
It must be directly on the head set to follow
It contains the key condition of the table
+ Detail fields
- The season record has a subordinate clause (Table KOBTCI, record 3)
The teams relate to the key sentence in the main
Best Regards,
KSK
Similar Messages
-
How to Delete the condition record in CRM
HI,
Can you please help me how to delete the condition record from condition table in CRM.
Please explain the usage of FM CRMXIF_CONDITION_SEL_DELETE with examples.
I have also read the documention of the function module. How to use this FM for custom defined condition table.
(this is the code given in Documentation)
DATA-OBJECT_REPRESENTATION = 'E'
DATA-SEL_OPT-CT_APPLICATION = 'CRM'
DATA-SEL_OPT-OBJECT_TASK = 'D'
DATA-SEL_OPT-RANGE-FIELDNAME = 'PRODUCT_ID'
DATA-SEL_OPT-RANGE-R_SIGN = 'I' (Including)
DATA-SEL_OPT-RANGE-R_OPTION = 'EQ'
DATA-SEL_OPT-RANGE-R_VALUE_LOW = 'PROD_1'
Thanks
ShankarHi Shankar,
I am using the same CRMXIF_CONDITION_SEL_DELETE function module to delete condition record present in CRM.
But it is giving me below error in the return table of the FM after i run the program. Can you please correct me if I am doing any thing wrong?
Error in lt_return: SMW3 CND_MAST_SEL_DEL_EXT_VALIDATE CND_M_SD
code:
ls_range-fieldname = 'PRODUCT_ID''.
ls_range-R_SIGN = 'I'.
ls_range-R_OPTION = 'EQ'.
ls_range-R_VALUE_LOW = '123456'.
APPEND ls_range TO lt_range.
MOVE lt_range TO ls_entry-SEL_OPT-range.
ls_data-SEL_OPT-object_task = 'D'.
ls_data-SEL_OPT-ct_application = 'CRM'.
ls_data-object_representation = 'E'.
CALL FUNCTION 'CRMXIF_CONDITION_SEL_DELETE'
EXPORTING
DATA = ls_date
IMPORTING
RETURN = lt_return
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
IMPORTING
return = lt_ret.
Edited by: Saravanaprasad Nadar on Jul 7, 2010 1:27 AM -
FM to upload condition records into inforecord (ME12).
Hai experts,
Can any one let me know if there is a FM or BAPI which can be used to update/upload condition records into inforecord (Transaction ME12). I need to know it to write a program for mass change/adding of conditions for huge number of inforecords.
A sample program would be more helpful for me.
Thanks in advance.
Matt.Hi,
Please try given below code.
CALL FUNCTION 'ME_INITIALIZE_INFORECORD'.
CALL FUNCTION 'ME_DIRECT_INPUT_INFORECORD'
EXPORTING
activity = 'V'
i_eina = ls_eina
i_eine = ls_eine
i_no_suppose = ' '
i_vorga = 'A'
IMPORTING
e_eina = ls_eina_new
e_eine = ls_eine_new
TABLES
t_head = lt_head
t_line = lt_line
EXCEPTIONS
textname_invalid = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
CALL FUNCTION 'ME_POST_INFORECORD'
EXPORTING
i_matnr = ls_eina-matnr
o_matnr = ls_eina-matnr
TABLES
t_eina_i = lt_eina.
IF sy-subrc IS INITIAL.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
Regards,
Narendra -
How to use the DISPLAY RECORD Setup Command in an etext file?
Hi All,
How to use the DISPLAY RECORD Setup Command in an etext file?
I want to display a <NEW RECORD> conditionally. The condition will be based on the data coming through from the xml file.
Please help me with an example. The BI User guide also doesnt show any examples.
Your help is appreciated.
Rgds,
Kiran PanditiHi,
You can use vb coding in BEx Analyser to calculate your unit price. For this you have to first display the attributes of your object "XYZ". Then you can use VB cosing to calculate the value for the unit price field.
One more thing cna you clarify whether is it display attribute or variable ?
Regards,
Balajee -
How to use if condition in XML Publisher Desk Top
Hi..,
How to use if condition in XML Publisher desk Top.
Please guide me.
Thanks,
Suresh.What kind of condition you want to use?
You can use Condition like this:
<?xdofx:if condition then value1
else if condition then Value2
else Value3
end if?>
Please go thru XML Publisher User Guide.
Thanks
Ravi
[email protected] -
How to maintain a condition record for a output type ?
Hi All
How to maintain a condition record for a output type ?Hi,
Goto NACE and there is a button for maintiaining the Condition Reocrds. -
How to use Enhancement spot in program
Hi gurus,
now i am working ecc 6.0, so how to use Enhancement spot in program, can anybody explain step by step.
Rewarded with points.
Thanks
NaveenHi Naveen ,
Enhancement Spot are available.
Examples:
-End of Executable Program, Include, Function group, Dialog module
-Begin/End of Form routine / Function module / Method
-End of a structure
-End of Private/Protected/Public Section of a local class
If you want to create Implementation , You have to right click on yellow color line and gve Zxxx and save it in any
transport request under any dev class. Then you can write your own code and save it and activate it .
Later If you want to Transport it you need to transport this request.
Reqward if usefuil
Thanks
Jagadeesh.G -
Right now I use null modem cable, I can communicate 2 PCs use hyper-terminal. I wonder how to use ComponentWork CWSerial to program such kind of job? Thanks!
Hi Kevin,
Of course this will take a little work, but CWSerial should be able to handle this without too much hassle. Take a look at the example program usually included in C:\Program Files\National Instruments\MeasurementStudio\VB\Samples\Instr\Basic Serial
You should be able to use this example as a starting point.
Hope this helps out!!!
Best Regards,
Aaron Kobayashi
Application Engineer
National Instruments -
How to create the condition record by ABAP program
Hi Friends,
I want to create/change the condition record of PR00 by ABAP program. It seems that there have no such BAPI/standard function can help on this. Can any one of you point out a way to me?? Thanks in addvance.
Joe GR.Joe,
Check with below FM..
BAPI_PRICES_CONDITIONS.
Check this link:
Re: Sample code for BAPI_PRICES_CONDITIONS
examples....
http://www.4ap.de/abap/bapi_prices_conditions.php
Two useful threads on Same topic
Re: Sample code for BAPI_PRICES_CONDITIONS
Re: Problem with BAPI_PRICES_CONDITIONS
BAPI_PRICES_CONDITIONS
Please check this sample code from other thread.
wtable1-table_no = '306'.
wtable1-applicatio = 'V'.
wtable1-cond_type = 'ZPR0'.
wtable1-operation = '009'.
wtable1-varkey = '13001001USD 000000000050068946'.
wtable1-valid_to = '99991231'.
wtable1-valid_from = '20051101'.
wtable1-cond_no = '$000000001'.
APPEND wtable1 TO table1.
wtable2-operation = '009'.
wtable2-cond_no = '$000000001'.
wtable2-created_by = sy-uname.
wtable2-creat_date = '20051022'.
wtable2-cond_usage = 'A'.
wtable2-table_no = '110'.
wtable2-applicatio = 'V'.
wtable2-cond_type = 'ZPR0'.
wtable2-varkey = '13001001USD 000000000050068946'.
wtable2-valid_from = '20051101'.
wtable2-valid_to = '99991231'.
APPEND wtable2 TO table2.
wtable3-operation = '009'.
wtable3-cond_no = '$000000001'.
wtable3-cond_count = '01'.
wtable3-applicatio = 'V'.
wtable3-cond_type = 'ZPR0'.
wtable3-scaletype = 'A'.
wtable3-scalebasin = 'C'.
wtable3-scale_qty = '1'.
wtable3-cond_p_unt = '1'.
wtable3-cond_unit = 'EA'.
wtable3-calctypcon = 'C'.
wtable3-cond_value = '454'.
wtable3-condcurr = 'USD'.
APPEND wtable3 TO table3.
CALL FUNCTION 'BAPI_PRICES_CONDITIONS'
EXPORTING
PI_initialmode = 'X'
PI_BLOCKNUMBER =
TABLES
ti_bapicondct = table1
ti_bapicondhd = table2
ti_bapicondit = table3
ti_bapicondqs = table4
ti_bapicondvs = table5
to_bapiret2 = table6
to_bapiknumhs = table7
to_mem_initial = table8
EXCEPTIONS
update_error = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
READ TABLE table6 WITH KEY type = 'E' TRANSPORTING NO FIELDS.
IF sy-subrc = 0.
loop at table6 into ret.
write: / ret-type, ret-message, ret-id, RET-LOG_NO, RET-LOG_MSG_NO,
RET-MESSAGE_V1, RET-MESSAGE_V2, RET-MESSAGE_V3, RET-MESSAGE_V4,
RET-PARAMETER,RET-ROW,RET-FIELD.
endloop.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
*EXPORTING
WAIT =
IMPORTING
return = ret
ENDIF.
Don't forget to reward if useful.... -
How to update all condition records at a time with some percentage or some
Dear Sir,
In PRD system we have more than 600 condtion records.
Noe desiel hikes happend, due to that client want to update all condition records(600) at a time with required percentage or required value.
How to update all records at a time
With regards
LakshmikanthHi,
Through BDC or LSMW first you have to do the recording for particular transaction code and then base on that u have to prepare the flat file to upload the file for the same.
For BDC programing you have to take the help of ABAP progmer but LSMW you can also do.
For more information about LSMW plz go to following link :
[LSMW |http://www.slideshare.net/arun_bala1/sap-sd-lsmw-legacy-system-migration-workbench/]
[Step-by-Step Guide for using LSMW|www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc ]
BDC
[BDC Call Transaction|http://www.sapdevelopment.co.uk/bdc/bdc_ctcode.htm]
[BDC Recording|http://www.sapdevelopment.co.uk/bdc/bdc_recording.htm]
But it would be better for you to please contact to your ABAPer for BDC programming.
Cheers... -
Upload condition records in SD
Hi,
How to upload more condition records in SD
kathir.Hi,
U can do it using VK11 itself. If u hv only 100 materials then it is beeter to do it manually. One condition record page itself will take around 10 materials. So just create excel sheet same as vk11 condition record format, copy & paste it.
otherwise u need to go with BDC or LSMW.
Regards, -
Upload Condition Records?
Hi MM Gurus,
I would like to upload the condition records. (not info records).
Are there any standard functionality available for this purpose? I had seen a Standard Direct Input Data Transfer Object in LSMW. But, I don't know how to use this, like for various Access sequences for a single condition type, even though I know LSMW upload method for Material, POs etc..
Please can anyone suggest me which will be the better way to upload the condition records?
Thanks & Regards,
RamkumarHi,
We use a BDC to load condition records (pricing) for both material and services.
Cheers ! -
How to use ranges in the program
hi all,
my requirement is i need to create a range for srat date so iam creating a structure say name of the range table is zstartdate. how to use this table in my program.
selct * from zuser_Secobjects where start_date in zstartdate. is it ok ?
thanks
maheedhar.thi maheedhar,
I am sending u the sample program and the docs also.
Program:
T A B L E D E C L E R A T I O N *
**-- Tables used
**-- VBAK. "Sales Document: Header Data
T Y P E D E C L E R A T I O N *
**-- Type for VBAK
TYPES: BEGIN OF T_VBAK,
VBELN LIKE VBAK-VBELN,
ERDAT LIKE VBAK-ERDAT,
AUART LIKE VBAK-AUART,
END OF T_VBAK.
I N T E R N A L T A B L E D E C L E R A T I O N *
**-- Internal table to store header data
DATA: IT_VBAK TYPE STANDARD TABLE OF T_VBAK WITH HEADER LINE.
**-- Ranges for Inquiry/Quotation
RANGES R_AUART FOR VBAK-AUART.
C O N S T A N T S D E C L E R A T I O N *
**-- Constant to store value of Inquiry (IN) / Quotation (QT).
CONSTANTS: C_IN LIKE VBAK-AUART VALUE 'AF',
C_QT LIKE VBAK-AUART VALUE 'AG',
C_EQ(4) TYPE C VALUE 'EQ',
C_I(2) TYPE C VALUE 'I'.
I N I T I A L I Z A T I O N *
**-- Clear the internal tables and flag.
CLEAR: IT_VBAK,
R_AUART.
**-- Refresh the internal tables.
REFRESH: IT_VBAK,
R_AUART.
**-- Initialization of ranges
R_AUART-SIGN = C_I.
R_AUART-OPTION = C_EQ.
R_AUART-LOW = C_IN.
APPEND R_AUART.
CLEAR R_AUART.
R_AUART-SIGN = C_I.
R_AUART-OPTION = C_EQ.
R_AUART-LOW = C_QT.
APPEND R_AUART.
CLEAR R_AUART.
S E L E C T I O N S C R E E N *
SELECTION-SCREEN BEGIN OF BLOCK CHARLY WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: S_VBELN FOR IT_VBAK-VBELN OBLIGATORY.
SELECT-OPTIONS: S_ERDAT FOR IT_VBAK-ERDAT.
SELECTION-SCREEN END OF BLOCK CHARLY.
A T S E L E C T I O N S C R E E N ( V A L I D A T I O N S ) *
AT SELECTION-SCREEN.
**-- Check the sales order number exists in the database table or not
SELECT SINGLE VBELN
FROM VBAK
INTO IT_VBAK
WHERE VBELN IN S_VBELN
AND ERDAT IN S_ERDAT
AND AUART IN R_AUART.
**-- If no single data selected display error message.
IF SY-SUBRC <> 0.
MESSAGE E000.
ENDIF.
S T A R T O F S E L E C T I O N *
START-OF-SELECTION.
**-- To fetch data from database table (VBAK)
**-- Store the data into the internal tabe (IT_VBAK)
PERFORM ZF_GETDATA.
E N D O F S E L E C T I O N *
END-OF-SELECTION.
**-- To display sales order.
PERFORM ZF_CHECK_DISPLAY.
T O P O F P A G E *
TOP-OF-PAGE.
**-- Page header
PERFORM ZF_TOP_OF_PAGE.
E N D O F P A G E *
END-OF-PAGE.
**-- Page footer
PERFORM ZF_END_OF_PAGE.
*& Form ZF_GETDATA
text
--> p1 text
<-- p2 text
FORM ZF_GETDATA .
SELECT VBELN
ERDAT
AUART
INTO TABLE IT_VBAK
FROM VBAK
WHERE VBELN IN S_VBELN
AND ERDAT IN S_ERDAT
AND AUART IN R_AUART.
IF SY-SUBRC <> 0.
MESSAGE S001 WITH IT_VBAK-VBELN.
ELSE.
SORT IT_VBAK.
ENDIF.
ENDFORM. " ZF_GETDATA
*& Form ZF_CHECK_DISPLAY
text
--> p1 text
<-- p2 text
FORM ZF_CHECK_DISPLAY .
CLEAR: IT_VBAK.
LOOP AT IT_VBAK.
IF IT_VBAK-AUART = C_IN.
ULINE.
WRITE:/1 SY-VLINE, 10 TEXT-006 INVERSE COLOR COL_HEADING,
50 TEXT-007 INVERSE COLOR COL_HEADING,
143 SY-VLINE.
WRITE:/1 SY-VLINE,12 IT_VBAK-VBELN INVERSE COLOR COL_NORMAL,
52 IT_VBAK-ERDAT INVERSE COLOR COL_NORMAL,
143 SY-VLINE.
ENDIF.
IF IT_VBAK-AUART = C_QT.
ULINE.
WRITE:/1 SY-VLINE, 10 TEXT-008 INVERSE COLOR COL_HEADING,
50 TEXT-007 INVERSE COLOR COL_HEADING,
143 SY-VLINE.
WRITE:/1 SY-VLINE,12 IT_VBAK-VBELN INVERSE COLOR COL_NORMAL,
52 IT_VBAK-ERDAT INVERSE COLOR COL_NORMAL,
143 SY-VLINE.
ULINE.
ENDIF.
ENDLOOP.
ENDFORM. " ZF_CHECK_DISPLAY
*& Form ZF_TOP_OF_PAGE
Header of the page gets displayed as soon as a new page is generated
FORM ZF_TOP_OF_PAGE .
ULINE.
WRITE:/1 SY-VLINE, 5 TEXT-002 INVERSE COLOR 7,143 SY-VLINE.
WRITE:/1 SY-VLINE, 143 SY-VLINE .
WRITE:/1 SY-VLINE, 30 TEXT-003 INVERSE COLOR 7,143 SY-VLINE.
WRITE:100 TEXT-004 INVERSE COLOR 7,120 SY-DATUM INVERSE COLOR 7,
143 SY-VLINE.
WRITE:/1 SY-VLINE,100 TEXT-005 INVERSE COLOR 7,
120 SY-PAGNO INVERSE COLOR 7,143 SY-VLINE.
ULINE.
ENDFORM. " ZF_TOP_OF_PAGE
*& Form ZF_END_OF_PAGE
Footer text displayed in each page
FORM ZF_END_OF_PAGE .
WRITE:/60 TEXT-008.
Docs:
Ranges
A selection table is linked to the column of a database table, or to an internal field in the program. A selection table is an internal table object of the standard table type that has a standard key and a header line.
In addition to selection tables that we create using SELECT-OPTIONS, we can use the RANGES statement to create internal tables that have the structure of selection tables. You can use these tables with certain restrictions the same way you use actual selection tables.
A ranges table type is a special case of a table type. A ranges table type describes the structure of an internal table for administrating complex areas, i.e. the type of an internal table ranges table in the ABAP program.
The row type of a ranges table type has a fixed structure. The row type consists of 4 components SIGN (sign), OPTION (comparison operator), LOW (lower limit) and HIGH (upper limit) in this order.
1. SIGN The database type of SIGN is C with length 1. The contents of SIGN determine for each row whether the result of the row condition is to be included in or excluded from the resulting set of all rows. Possible values are I (inclusion criterion operators are not inverted) and E (exclusion criterion operators are inverted).
2. OPTION The database type OPTION is C with length 2. It contains the selection operator. The following operators are available:-
- If HIGH is empty, we can use EQ, NE, GT, LE, LT, CP, and NP.
- CP and NP are only allowed if wildcards (*' or '+) are used in the input fields.
- If wildcards are entered on the selection screen, the system automatically uses the operator CP. The escape character is defined as #.
- If HIGH is filled, you can use BT (Between) and NB (Not Between). We cannot use wildcard characters.
3. LOW - The data type of LOW is the same as the column type of the database table, to which the selection criterion is linked.
If HIGH is empty, the contents of LOW define a single field comparison. In combination with the operator in OPTION, it specifies a condition for the database selection.
If HIGH is filled, the contents of LOW and HIGH specify the upper and lower limits for a range. In combination with the operator in OPTION, the range specifies a condition for the database selection.
4. HIGH - The data type of HIGH is the same as the column type of the database table, to which the selection criterion is linked. The contents of HIGH specify the upper limit for a range selection.
If the selection table contains more than one row, the system applies the following rules when creating the complete selection criterion:
1. Form the union of sets defined on the rows that have SIGN field equal to I (inclusion).
2. Subtract the union of sets defined on the rows that have SIGN field equal to E (exclusion).
3. If the selection table consists only of rows in which the SIGN field equals E, the system selects all data outside the set specified in the rows.
RANGES tables
We can use the following variants of the TYPES and DATA statements to create internal tables of the same type as selection tables.
TYPES|DATA .
An elementary associated type defines the type of components LOW and HIGH. It can be defined by specifying a data element or by directly defining the data type, number of places and if necessary the number of decimal places.
A ranges table type always has Standard table access mode and a standard key that is non-unique.
I think this will help u .
Reward points if helpful.
Regards
Nilesh -
How to Use MAX condition using Query Report
Hi SAP Abap Expert,
Can we use the MAX condition in Query Report (SQ01/SQ02) ?
I have created one sample query using table VBRP and VBRK then i need to use max condition to get the MAX record in VBELN.
Please Help ???Hi Ashishsingh,
According to your description, you want to know how to use MAX function in SQL Server Analysis Services MDX Query, right? In this case, please refer to the link below which describe the syntax and sample of MDX function.
http://technet.microsoft.com/en-us/library/ms145601.aspx
http://www.mdxpert.com/Functions/MDXFunction.aspx?f=64
Hope this helps.
Regards,
Charlie Liao
TechNet Community Support -
Error while uploading conditions records in MEK1
Hi All,
I have a code that updates condition records in MEK1 from an excel sheet. The no of records in an excel sheet can go up to 60 k records. If i try to upload 5000 records, the coditions records are saved successfully. But then, if I try to upload 10000 records i get a error saying " Condition blocked by user " . On debugging I found out that the user id is mine. That is, same id as the person who is trying to upload records. The transaction is not open in any window as well.
My question is, why do we encounter this error and is there any limit to number of records that can be uploaded at a time in MEK1?
Thanks in advance,
SapnaHi Rao,
For blocking you can commit in intevals or you can use wait command but it will take extra time but your records will update in one go,when a condition record is created,then after you try to update for same material or plant thats the reason its blocking,you can either use wait or adjust your excel files and avoid duplication of materials or whatever you are using in sequential manner.
Maybe you are looking for
-
My Iphone 5 has white bars on top of my screen and i sometimes
My iphone 5 keeps coming up with white bars on top of the screen and i sometimes can't even control my phone. It goes al crazy when the white bars show. These bars fade in then out all the time. HELP pleeeeeeease
-
Hello Guys, Could you please tell me how to display the BEx Analyser graph in Pie. I have created a query and when run it....its displaying data. then when i select display as option to graph....its displaying the bar format. I can find any option to
-
Hold on screen the apps permanently
Dear all, i'd like to hold on the smartwatch screen the apps i'm using permanently. I don't want that the smartwatch return on stand-by state after few inaction second, only displaing the watchface. Someone can help me? Many thanks in advance.
-
Exchange 2013 Load Balancing Question
Hey Everyone, I have recently started building up my companies Exchange 2013 environment and ran into some questions that I can't seem to find clear answers for on Google. First, a little bit about my set up: 2 CAS Servers 2 Mailbox Servers C
-
[Weblogic Security In Action]
摘要 本文将探讨Weblogic Platform中的安全框架以及在该框架下如何实现企业安全(Weblogic Enterprise Security,简称WLES). 本文分为上中下三篇. 上篇主要阐述WLES的概念,将按照如下的思路,让读者对Weblogic安全框架有一个明晰的理解,并在此基础上明白Weblogic基本安全要素如User,Group,Role,Resource.并探讨在WLES下实现认证和授权的方法. 中篇主要阐述WLES的配置,重点讲述如何在WLS中配置SSL和证书,如何配