BDC validation for vk11
Hi friends
I have created a bdc(by call transaction ) to upload data to tcode vk11 and it works fine but also I need to add a validation that if a duplicate value is found in local file that is already found in vk01 it should give information that value already found how this can be achieved .
Hi,
1.Get all the values into internal table.
2. get all the values from vk11 DB table.
3. Loop VK11 table records and read the internal table records. If sy-subrc fails, then process the BDC.
Regards,
Veda Moorthy Rajan
Similar Messages
-
I hav to upload bdc for vk11 trans and table konv.
hi experts,
i m new in BDC... i hav to upload bdc for vk11 trans and table konv.
frst doubt is
i hv to run shdb transc?? or just i hv to write program??
nd cn any1 send me teps as hw to create upload..
Condition Type Sales Organisation Distribution channel Material Price Unit Valid from Valid to
KSCHL VKORG VTWEG MATNR_01 KBETR_01 KPEIN_01 DATAB_01 DATBI_01
now plz tel me hw to do this...whether to run shdb or jus to write program in se38..
or i hv to do both...bt plz tel me step by stepPlease don't ignore the warnings. Read the rules of engagement.
Thread locked, again.
Thomas
wrking on ABAP OOPS, oput is coming but 1 field name wd customer name is nt -
hi!
can anybody plz tell me how to do bdc for vk11 and vk12.
the scene is that i have zpogram which displays the data and from there i have to add one button and whenever that button is triggred bdc had to be performed for vk11 and vk12 only for those fields which are diaplayed by my z program.
kindly help me out.
regards
anjaliHi Anjali
It is not advicable to create BDC for transactions like VK11, MEK1 ... which we use to create condition records. The reason is for each condition type, the options we see might vary when ever there is change in access sequences and their precedence. So if we create BDC, our program needs to modified everytime there is change in the access sequences and condition tables.
I would recommed you to either use the program that i have provided or use some BAPI's to upload/change condition records.
As you are saying, you have the data in your internal table. Download the data to a file in the format RV14BTCI needs and SUBMIT the program.
For understanding on the structure for this program, use transaction SXDB.
Kind Regards
Eswar -
i have created a BDC program for uploading data into VK11 & VK12 .what it does that it compares the valid from and valid to dates from the flat files
and if they already exist then for that condiotn type it goes to vk 12 and changes the prices and scalling quantity according to the falt file
and if the date range is not present then it oes to VK11 and creates the same from the flat file
now i want a bapi that works the same manner..
if any body can hel;p me
thanks in advanceI am using the RV_condition_copy function the way it is described in this post, I am able to update the date but not the price in Vk12 / vk13 . I am using option D for maintain_mode (create with reference) - > this is essentially what I want to do, as we already ahve the pricing in vk13, we want to change it for year 2008.
Please advise what I must be doing wrong. I do not get any errors while running the following code. Also I am doing commit. Thanks.
Pranav
Do I have to pass any values to I_komk I_komp, i do not have anything to pass.??!$#?
ls_komg-kunnr = '0001000008'. " Cust number
ls_komg-matnr = 'PP500P3'. " Mat number
ls_komg-VKORG = 'PPC1'.
ls_komg-vtweg = 'BB'.
clear: Lt_komv,LS_KOMV.
ls_komv-kappl = 'V '. " Application V = Sales
ls_komv-kschl = 'PR00'. " Condition type
ls_komv-waers = 'USD'. " Currency
ls_komv-kmein = 'EA'. " Unit of measurement
ls_komv-kpein = '100'.
ls_komv-krech = 'C'. " calculation type;
"M = Quantity - monthy price
LS_KOMV-KAWRT = '251.00'.
ls_komv-kbetr = '121.50'. " new condition value
*LS_KOMV-KWERT_K = '251.10'.
*LS_KOMV-KNUMV ='0000008911'
append ls_komv to lt_komv.
CLEAR LT_KOMV.
call function 'RV_CONDITION_COPY'
exporting
application = 'V'
condition_table = '005' " cond. table
condition_type = 'PR00' " cond. type
date_from = '20070108' " valid on
date_to = '99991231' " valid to
enqueue = 'X' " lock entry
i_komk = ls_komk
i_komp = ls_komp
key_fields = ls_komg " key fields
maintain_mode = 'D' " A= create
" B= change,
" C= display
" D= create with reference
with reference
no_authority_check = 'X'
keep_old_records = 'X'
overlap_confirmed = 'X'
no_db_update = space
importing
e_komk = ls_komk
e_komp = ls_komp
new_record = lv_new_record
tables
copy_records = lS_komv
EXCEPTIONS
ENQUEUE_ON_RECORD = 1
INVALID_APPLICATION = 2
INVALID_CONDITION_NUMBER = 3
INVALID_CONDITION_TYPE = 4
NO_SELECTION = 5
TABLE_NOT_VALID = 6
NO_AUTHORITY_EKORG = 7
NO_AUTHORITY_KSCHL = 8.
call function 'RV_CONDITION_SAVE'.
call function 'RV_CONDITION_RESET'.
necessary to write data
commit work.
Message was edited by:
pranav kulkarni -
hi
i have been asked to do bdc recording for the transaction mek1 through the call transaction method.can u people plss tell me how to go abt it?Hi,
You can Record using the Tcode SHDB and format the program and use.
You can use VK11 tcode also which is similar to MEK1.
see the sample code for VK11 ; You can change as per your requirement.
report ZSDBDCP_PRICING no standard page heading
line-size 255.
Includes
include zbdcrecx1.
Internal Tables
*--Internal Table To hold condition records data from flat file.
Data: begin of it_pricing occurs 0,
key(4),
f1(4),
f2(4),
f3(2),
f4(18),
f5(16),
end of it_pricing.
*--Internal Table To hold condition records header .
data : begin of it_header occurs 0,
key(4),
f1(4),
f2(4),
f3(2),
end of it_header.
*--Internal Table To hold condition records details .
data : begin of it_details occurs 0,
key(4),
f4(18),
f5(16),
end of it_details.
data : v_sno(2),
v_rows type i,
v_fname(40).
start-of-selection.
refresh : it_pricing,it_header,it_details.
clear : it_pricing,it_header,it_details.
CALL FUNCTION 'UPLOAD'
EXPORTING
FILENAME = 'C:\WINDOWS\Desktop\pricing.txt'
FILETYPE = 'DAT'
TABLES
DATA_TAB = it_pricing
EXCEPTIONS
CONVERSION_ERROR = 1
INVALID_TABLE_WIDTH = 2
INVALID_TYPE = 3
NO_BATCH = 4
UNKNOWN_ERROR = 5
GUI_REFUSE_FILETRANSFER = 6
OTHERS = 7.
WRITE : / 'Condition Records ', P_FNAME, ' on ', SY-DATUM.
OPEN DATASET P_FNAME FOR INPUT IN TEXT MODE.
if sy-subrc ne 0.
write : / 'File could not be uploaded.. Check file name.'.
stop.
endif.
CLEAR : it_pricing[], it_pricing.
DO.
READ DATASET P_FNAME INTO V_STR.
IF SY-SUBRC NE 0.
EXIT.
ENDIF.
write v_str.
translate v_str using '#/'.
SPLIT V_STR AT ',' INTO it_pricing-key
it_pricing-F1 it_pricing-F2 it_pricing-F3
it_pricing-F4 it_pricing-F5 .
APPEND it_pricing.
CLEAR it_pricing.
ENDDO.
IF it_pricing[] IS INITIAL.
WRITE : / 'No data found to upload'.
STOP.
ENDIF.
loop at it_pricing.
At new key.
read table it_pricing index sy-tabix.
move-corresponding it_pricing to it_header.
append it_header.
clear it_header.
endat.
move-corresponding it_pricing to it_details.
append it_details.
clear it_details.
endloop.
perform open_group.
v_rows = sy-srows - 8.
loop at it_header.
perform bdc_dynpro using 'SAPMV13A' '0100'.
perform bdc_field using 'BDC_CURSOR'
'RV13A-KSCHL'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RV13A-KSCHL'
it_header-f1.
perform bdc_dynpro using 'SAPMV13A' '1004'.
perform bdc_field using 'BDC_CURSOR'
'KONP-KBETR(01)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'KOMG-VKORG'
it_header-f2.
perform bdc_field using 'KOMG-VTWEG'
it_header-f3.
**Table Control
v_sno = 0.
loop at it_details where key eq it_header-key.
v_sno = v_sno + 1.
clear v_fname.
CONCATENATE 'KOMG-MATNR(' V_SNO ')' INTO V_FNAME.
perform bdc_field using v_fname
it_details-f4.
clear v_fname.
CONCATENATE 'KONP-KBETR(' V_SNO ')' INTO V_FNAME.
perform bdc_field using v_fname
it_details-f5.
if v_sno eq v_rows.
v_sno = 0.
perform bdc_dynpro using 'SAPMV13A' '1004'.
perform bdc_field using 'BDC_OKCODE'
'=P+'.
perform bdc_dynpro using 'SAPMV13A' '1004'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
endif.
endloop.
*--Save
perform bdc_dynpro using 'SAPMV13A' '1004'.
perform bdc_field using 'BDC_OKCODE'
'=SICH'.
perform bdc_transaction using 'VK11'.
endloop.
perform close_group.
Regards,
Anji -
BAPI for VK11,VK12,MEK1,MEK2
Hi,
1) Is there a BAPI or standard function module for MEK1 and MEK2?
2) I searched and found for VK11 and VK12 we have the following function modules
BAPI_PRICE_CONDITIONS
RV_KONDITION_SICHERN
RV_KONDITION_SICHERN_V13A
Please share if you has used the aboveGot it to work. With the sequence :
<b>1.</b> RV_CONDITION_COPY
<b>2.</b> RV_CONDITION_SAVE
<b>3.</b> RV_CONDITION_RESET
<b>4.</b> commit
* At least the key fields of the conditiontable
* (here 800) must be filled in structure ls_komg.
ls_komg-vbeln = '1234567890'. " document number
ls_komg-posnr = '000010'. " item number
clear wt_komv.
ls_komv-kappl = 'V '. " Application V = Sales
ls_komv-kschl = lc_kschl. " Condition type
ls_komv-waers = 'EUR'. " Currency
ls_komv-kmein = 'ST'. " Unit of measurement
ls_komv-kpein = '1'.
ls_komv-krech = 'M'. " calculation type;
"M = Quantity - monthy price
ls_komv-kbetr = '1234.56'. " new condition value
append ls_komv to lt_komv.
call function 'RV_CONDITION_COPY'
exporting
application = 'V'
condition_table = '800' " cond. table
condition_type = lc_kschl " cond. type
date_from = '20061101' " valid on
date_to = '20061130' " valid to
enqueue = 'X' " lock entry
i_komk = ls_komk
i_komp = ls_komp
key_fields = ls_komg " key fields
maintain_mode = 'A' " A= create
" B= change,
" C= display
" D= create
with reference
no_authority_check = 'X'
keep_old_records = 'X'
overlap_confirmed = 'X'
no_db_update = space
importing
e_komk = ls_komk
e_komp = ls_komp
new_record = lv_new_record
tables
copy_records = lt_komv
exceptions
call function 'RV_CONDITION_SAVE'.
call function 'RV_CONDITION_RESET'.
* necessary to write data
commit work.
Check data with transaction VK12
Thank you for your support
Thomas -
Validation for Business Place in line item wise
Dear All,
I have written one validation for Business Place is mandatory
my requirement BUPLA mandatory what are t.codes i have eentred in the prerequisite.
but system asking for business place other than those t.codes.
it's not taken in to consideration what are the t.codes i have entered in the prereqiuiste.
In Prerequisite
( SYST-TCODE = 'FB01' OR SYST-TCODE = 'F-22' OR
SYST-TCODE = 'F-27' ) AND
BSEG-KOART = 'D' AND
BSEG-QSSKZ <> ''
in Check
BSEG-BUPLA <> ''
message
Enter Business Place
Now my requirement is that when i am proceesing any other transcation like f-02, f-21 and all BDC which are related to customer business place is mandatory.
my requirement is business place is required only for TDS related documents.
please advise how to write validation for non tds related documents.
thanks in advance.
mohan
Edited by: bangaru mohan on May 7, 2008 6:44 AM
Edited by: bangaru mohan on May 7, 2008 6:45 AMEarlier i have given replay for same query so many times
Re: Business Place / Section Code Mandatory : How to?
you can write the following validation for your requirement.
Open GGB0, press financial accounting, press line item, press validation button, give your validation name, press step button give the step name then press to prerequisites. give the inputs in prerequisites as follows.
PREREQUISITES:
SYST-TCODE = 'FB60' AND BSEG-KOART = 'K' OR
SYST-TCODE = 'F-43' AND BSEG-KOART = 'K' OR
SYST-TCODE = 'F-48' AND BSEG-KOART = 'K' OR
BSEG-BSCHL = '29' AND BSEG-UMSKZ = 'A' AND
BSEG-KOART = 'K'
CHECK:
BSEG-BUPLA = 'YOUR BUSINESS PLACE'
In message
you can create the message class with the help of your ABAPer and assign the message or you can use the available message and put it as Warning or Error message.
after complete the above go to OB28 and put the active.
If want to feel dificulty take the aboper help.
don't forgat to assign the points.
If u find solution from our answer, please close the issue and assign points, otherwise ask your futher problem.
sai krishna -
Driver not valid for HP Pavilion dv6t
Need to update my Intel HD Graphic driver.
Tried HP and Intel and both are stating that the driver being installed is not validated for this computer. Please obtain the appropriate driver from the computer manufacture. Set up will exit.
Can anyone help? TY@ls1313 ,
Hello and thank you for posting on the HP support forums. Here is the link to the only supported drivers for your notebook.
HP Pavilion dv6t-3000 CTO Entertainment Notebook PC
I hope this helps.
Have a great day and thank you for posting.
Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
D5GR
I work on behalf of HP -
Validation for text field: Null and contains no spaces
Currently on APEX 3.2
I want to check 1 text field and 2 text areas to ensure they are not null and blank (hitting the space bar in the field) before submitting the page. How do I do both validations for on each field?I created a validation with a type of 'Function Returning Boolean' and using the following code in the expression:
IF( TRIM( :P1_Text_Field) IS NULL
Or LTRIM( :P1_Text_Field ) != :P1_Text_Field )
THEN
RETURN false;
ELSE
RETURN true;
END IF;
Edited by: Jeremy_F on Apr 12, 2012 8:15 AM -
When trying to update or purchase Apps I am being advised my account is not valid for the UK Store and I must switch to the IReland store. How do I do this?
Change App Store
1. Tap "Settings"
2. Tap "iTunes & App Stores"
3.Tap "View Apple ID"
4. Enter your user name and password.
5. Tap "Country/Region."
6. Tap "Change Country/Region"
7. Select the region where you will be located.
8. Tap "Done". -
I have been using my Apple ID in India and recently i moved to Spain and now i can not see my indian apps.it says my apple ID is valid for only spanish store.how to download apps from Indian store being in Spain.
Did you try to change the location in Settings/iTunes & AppStore/AppleID -> view Apple ID, log in ->Country/Region -> India?
-
Whenever I updated or downloaded a new app from the App Store, a message appears saying:
"Account Not In This Store
Your account is not valid for use in the U.S. store. You must switch to the Swedish. store before purchasing."
I made some research online and asked a few of my friends with the same problem. All they did was sign out of iTunes from settings>iTunes & App Stores or from the App Store itself and signed back in. It worked for many of them but not with my iPhone 4s. It really does get on my nerves to always sign out and back in to the App Store as it sometimes works and allows me to update and download or most of the time it doesnt.
When viewing my Apple ID account on my iPhone (after entering the password) it either views my account or says:
"This Apple ID is only valid for purchases in the U.S. iTunes Store. You will be switched to that Store. Try your purchase again."
So I press on OK then either switches me to the App Store app of its choice, or says "Cannot connect to iTunes Store".
I tried restoring iOS6 hoping it was a bad installation, but i still have the same problem.
Can anyone help me please?
ArianAre you sure your AppleID is NOT tied to the US store? If you are trying to buy an app from the Swedish store you will be unable to do that. Some apps are only available on certain stores. That is why you get the "Cannot connect to the iTunes store" message when trying to buy that app. Your updates are being done from the US store ; thats why you can update sometimes and sometimes not.
If you keep encountering problems contact iTunes support. They will help you sort it out. -
When I try to buy either an app or a song via iTunes, I have just started getting the following message and I am unable to change the store location. "Account Not In This Store. Your account is not valid for use in the U.S. store. You must switch to the New Zealand store before purchasing."
This problem has only just started happening. I am on an iPhone5 iOS 7.0.4.
Very frustrating. Can someone please tell me why & where the change has occured and how to fix it? In the past I have purchased many apps and songs on itunes and never had this problem.
Thanks a mill :-)Click here and follow the instructions to change the iTunes Store country.
(97125) -
AD password change comes up, user changes password.
Tries to send signed or encrypted email with a Comodo S/MIME certificate, and gets the following error:
""An error occurred in the underlying security system. Key not valid for us in specified state."
I now have two reports of this error - one on Windows 7, and one on Windows 8.0 (remote user).
The one on Windows 8.0, we tried removing their S/MIME cert from Outlook/Windows and re-adding, this did NOT resolve the issue.
Plan was originally to have the 8.0 user ship their machine in, and wipe it, since nothing else could fix it and I wasn't finding anyone else with the same issue. Now that I've got a second user with the same issue, its looking like a bug/issue and
not a random glitch.
Thanks in advance for any and all help with this!Hi,
Thank you for your question.
I am trying to involve someone familiar with this topic to further look at this issue.
Thanks,
Melon Chen
Forum Support
Come back and mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback on our support, please click
here -
Product is not valid for Sales org and distribution chain
Hello friends,
When i am saving the trade promotions , i am getting error message
"Product XXXX is not valid for distribution chain XXXX, XXXX"
I have maintained sales organization and distribution channel in commpr01 under sales and distribution tab.
kindly help.
Regards,
SrinivasHi Srinivas,
the error is raised from the trade promotion CCA check - raised from method CL_CRM_MKTGS_PD_CCA_CHECK_HDLR~CHECK. There are the following checks performed:
* There are several checks to do based on the distribtion chain
* Execute the checks and identify which products fail which check
1. * Determine if the product passes the distribution chain check
2. * Determine if the product category 1 of the product assignment
* passes the product category check
3. * Determine if the product category 2 of the product assignment
* passes the product category check
4. * Determine if the product group of the product assignment
* passes the product group check
5. * Determine if the sales status of the product is set to blocked
You may also need to check the sales and distribution data of the product category or product group of the mentioned product, if this is assigned to any.
best regards,
Johannes
Maybe you are looking for
-
How to stop jobs after a system copy
Hi All, After doing a system copy from the Production system to some test system, all the jobs that are supposed to be triggered in the production server will also trigger in the test system which is not good. For example, If we have a payroll runnin
-
Panerai fake, panerai fake watch, panerai fake watches
Despite the fact that solar energy is a superb approach to make free of charge electrical power through sun rays, it will take a bit of function to know precisely how fractional laser treatments does apply to your dwelling. There are lots of sites av
-
Fix for WebHelp output issues with IE 11 breaks Search function
I use RoboHelp HTML 9 and have been having issues with generated WebHelp in IE 11. The TOC was totally blank and the Search tab looked fine but did not function. Everything worked fine in Firefox. After much experimenting and online research in these
-
T440s has anyone else remapped their keys?
I missed having my page up and down by the top right. Especially in bed. So what I did was UNMAP the F11 and F12 keys since you can easily use these with two locations for page up and page down (delete and insert) and the normal default page up and d
-
Search Help 'TIMEFIELD' to appear in ICWC
Hi Experts, Is it possible to have the search help 'TIMEFIELD' tied to a field in the ICWC? I tried doing so in the view, but in ICWC, it launches a blank pop up help screen. Thanks