Concated field( urgent)
hi ,
this is very urgent.
Select AWKEY from BKPF.
AWKEY is the concatenated form of BELNR and GJAHR.
Input this to RSEG in BELNR and GJAHR.
You will get EBELN and EBELP.
can any one suggest me any process, how to split that awkey key for chking belnr and gjahr.
thanks
Santosini
select awkey
from bkpf
into gv_awkey
where < conditions >.
if not gv_awkey is initial.
Gv_belnr = gv_awkey(10).
Gv_gjahr = gv_awkey+14(4).
Endif.
If not gv_belnr is initial and not gv_gjahr is initial.
Select ebeln
Ebelp
From rseg
Into < data variables >
Where belnr = gv_belnr
And gjahr = gv_gjahr.
Endif.
If helpfull reward points.
Thanks
Sumanth
Similar Messages
-
Want to know the flow and fields urgent
Hi ABAP Gurus,
i am developing Smart Form in that i want the details of purchase order no, purchase order date, vendor address information ,vendor pan no, payment terms and item code/description, quantity, rate, uom,amount(currency),
tax code description,
exc/service tax,
edcess,
hsc,
vat/cst
these are the fields i have to use in my smart form i got fields from ekko,ekpo and J_1IMOVEND but where i strucked is in condition fields i.e,
exc/service tax,
edcess,
hsc,
vat/cst
i want the technical name and the logic for the same i will give only po no in my selection. pls help me its urgent.Hi,
VAT INFORMATION field is: VBRK-STCEG
Regards
Basheer -
RSA3 -(Extract Checker ) Target Sys field -Urgent
Hi
Can any one explain what is the use of this field?
I am running a data source in BW using RSA3 , if I use target system name then it gives X number rows and when target system field is empty it gives Y another number of rows. In my cube there is no field called target system? How does the system determines this field.
Please let me know your thoughts. This is quite urgent.
Thanks
VennelaHi Diego,
Thank you for your reply but I am not able to understand your reply.I am using full load so delta option is not relevant.
my question how does the system determines number of records different when I give target system name .
I dont have field called target system in my cube.
It is effecting me because on the target system we are expecting x number of records but it is sending less.
Please expalin. -
One to Many table join -- concat field per record grouped by id
Post Author: wm5
CA Forum: Formula
Hello,
I am using Crystal Reports XI and have two tables that have a one to many relationship and are joined by an JobID (number).
Below is a sample with relative fields for each table.
job_table: JobID (number), Manager (text), Status (text)
jobaudit_table : JobAuditID (number), JobID (Number), FormID (Number)
There is a one to many relationship with jobaudit_table having multiple records for each JobID in job_table.
I have created a Group Header using the job_table.JobID and suppressed the detail section.
In the group header for each JobID I display the JobID, Manager, Status. I also use the below formula to determine if any records in the jobaudit_table has a record where FormID = 90. If so, I display "Yes". If not, "No".
So my report currently looks like.
JobID Manager Status Audit Performed
1 Manager 1 Closed N
2 Manager 2 Closed Y
Here are the formula's I use to determine if any records in jobaudit_table contains a record where FormID = 90.
@ja90exists
if {jobaudit_table.FormID} = 90 then 1else 0;
if sum({@ja90exists},{job_table.JobID}) = 0 then "No"else "Yes";
Everything so far works fine. What I would like to do now is add a hyperlink to a script to view the job audit when in the above report the "Audit Performed" column is "Yes"
So Report is now:
JobID Manager Status Audit Performed
1 Manager 1 Closed N
2 Manager 2 Closed Y (hyperlink to view audit)
I cannot figure out how to gather the valid JobAuditIDs where FormID = 90 grouped by JobID to be used in the Group Heading section of the report.
Also, it is unlikely, but possible that more than one job_audit record exists with FormID = 90 per JobID. So, my hyperlink could look like http://mysite.com/viewjobaudit.aspx?jobid=[jobaudit_table.JobAuditID],[jobaudit_table.JobAuditID] .
Thanks for any help. And if this post is not clear let me know and I will clarify.
wm5Post Author: bettername
CA Forum: Formula
Although I can't think of a way to get multiple hyperlinks, this should be a start. It (should) hyperlink to the last job/audit in the group that formID of 90. Oh, I assumed that the hyperlink should have been xxxx...jobID,jobAuditID!
I think there may be a way of getting hyperlinks to every "90" record, but that will involve a subreport, so lets try this first...
1 - everything from your group header to the group footer...
2 - add a formula into the group header that says:
whileprintingrecords;
stringvar jobauditID="";
stringvar jobID:=";
3 - Then add a formula to the details section:
whileprintingrecords;
stringvar jobauditID;
stringvar jobID;
if {jobaudit_table.FormID} = 90
then (jobID:=totext({job_table.job_id},0,""); jobauditID:=totext({jobaudit_table.jobaudit_id},0,"")
4 - Finally, on your "Audit Performed" formula, have a conditional hyperlink that says:
whileprintingrecords;
stringvar jobauditID;
stringvar jobID;
if {@audit performed} = "Y" then http://mysite.com/viewjobaudit.aspx?jobid=jobID","+jobauditID -
Decode function involving 2 fields (urgent)
Hi .. I am trying to use the decode function involving 2 fields.
The query runs but does not produce the correct results. If
anyone knows, please reply .. Usually decode function involves
one column only but I have more
than one. The situation is : If ins_code = 2 or special_code =
MMI, put a 'Y', otherwise, it's a 'N'. Does anyone know how to
put this in a decode statement? ThanksThanks, Suresh ... but I have to put this condition using the
decode statement because that's how the rest of the program is
written. It's part of the script that I have to change. The
current statement is this: decode(ins_code, '2', 'Y', 'N'). I
have to change it to ins_code =2 or special_feature = MMI.
Please reply ... thanks a lot.... -
Problem in formatting a Numeric Field(Urgent)
Dear All,
I hava a variable of type p decimals 2 in my driver program.
a value of 12.50 is assigned after calculation in Me23n.
when displying the same in sap script it's displying like 12,50 instead of 12.50
I saw in my default settings(SU01)
it's like 1,234,567.89.
In debug mode i found it's like 12,50
how to solve this.
help is highly appriciated
thanks in advance
ArunHi Arun,
1 /: SET COUNTRY 'IN'
Try with country setting command
in sapscript.
2. Such formattings also depend upon the country.
3. T005X
Check out this table for such settings.
XDEZP field is important.
Regards,
Amit M.
Message was edited by: Amit Mittal -
Defaulting the mandatory field to space in a flex field - Urgent...
Hi ,
I have a flex field which is used to render address based on the country selected ( Country is an LOV..)
The flex field details are.
Appl Short Name: AR
Name: Remit Address HZ
Type: descriptive
Address Line 1 is mandatory in the flex field configuration.
My requirement is to default the Address Line 1 with space which I am doing by setting the vo.setAddressLine1(" ")
once the VO is initialized and in the screen Address Line 1 is getting defaulted to space.
But if the user removes the space in it and tabs out, even then I have to default the Address Line 1 with space.
(i.e. if Address Line 1 is null then I have to default it to space)
But as it is a flex field it does not have any Action Type. How can I default it if the user makes the field null..
I tried in the VORowImpl to set the value to space if it is null but it is not working...
public String getAddress1() {
String value = (String) getAttributeInternal(ADDRESS1);
if ( value == null || "".equals(value ) )
return " ";
return (String) getAttributeInternal(ADDRESS1);
When the user makes this field as null and clicks on Apply button, the form validation appears saying the field
is mandatory.( I cannot set the Disable Client Side validation to True for the Apply Button..)
Is there a way
1. To set the value of the VO attribute to space if it is made null
or
To set the VO attribute to a space before the form validation error appears?Hi Friends,
I got the answer. The following link gives the details.
http://www.oraclearea51.com/oracle-technical-articles/oa-framework-articles/184-set-dff-segment-required-in-oaf.html -
Open a new table or chart on clicking on "Input field" - Urgent
Hi all,
I have a form view that contains many input fields. Is it possible to open a new table or a chart if an input field is clicked? If yes then how?
Please respond.
Regards,
Aisha Ishrat
ICI Pakistan Ltd.Hi Govindu,
Its not working without a button. I have tried with all steps. but it does not do anything on clicking on input field.
I proceed as follows:
I create a custom action "Details" on the input field. Then I draw a line from out port of form view and configure it for action "Details" and then pop up and then a new iview. In the iview, I create a chart. Then i deploy but it does not do anything in clicking the input field.
I dont want to give nay inputs or outputs for the pop up.
For new screen, should i place new iview in separate layer or what?
Have I missed anything??
Please respond.
Best Regards,
Aisha Ishrat
ICI Pakistan Ltd. -
Hi all,
using this ZUS_SDN_THREE_ALV_GRIDS program structure i have generated the all the fields from table.
could you please guide me how to generate the ALV report for splecific fileds from individual tables.
if i click in click on grid1 (that is sales header details) we need populate the item details in grid2 and paralally customer details in grid3.
please guide me how to resolve the issuee..
thanks in advance
Srinivas...Hi,
I have done an example, like on 1st grid it displays header data (EKKO) and when you double click on any record, for that PO you will get item details (EKPO) on 2nd grid,
In the similar way, you can add one more grid and populate it with your own data simultaneously along with 2nd grid.
*& Report ZOOABAP1_SOW
report zabap2.
* TABLES
tables:ekko.
* DATA DECLARATIONS
data: grid1 type ref to cl_gui_alv_grid,
grid2 type ref to cl_gui_alv_grid,
container1 type ref to cl_gui_custom_container,
container2 type ref to cl_gui_custom_container,
flag.
* INTERNAL TABLES
data: it_ekko type table of ekko.
data: wa_ekko like line of it_ekko.
data: it_ekpo type table of ekpo.
data: it_fcat1 type lvc_t_fcat,
wa_fcat1 type lvc_s_fcat,
it_fcat2 type lvc_t_fcat,
wa_fcat2 type lvc_s_fcat,
wa_layout1 type lvc_s_layo,
wa_layout2 type lvc_s_layo,
wa_variant type disvariant.
* SELECTION-SCREEN
selection-screen begin of block b with frame title text-s01.
select-options: s_ebeln for ekko-ebeln.
selection-screen end of block b.
* CLASS lcl1 DEFINITION
class lcl1 definition.
public section.
methods:
handler_dbl_clk for event double_click
of cl_gui_alv_grid
importing e_row.
endclass. "lcl1 DEFINITION
* CLASS lcl1 IMPLEMENTATION
class lcl1 implementation.
method handler_dbl_clk.
read table it_ekko into wa_ekko index e_row-index.
if sy-subrc = 0.
perform get_ekpo.
endif.
endmethod. "handler_dbl_clk
endclass. "lcl1 IMPLEMENTATION
* START_OF_SELECTION
start-of-selection.
* Get PO header data
perform get_ekko.
* screen for container
call screen 100.
*& Module STATUS_0100 OUTPUT
* text
module status_0100 output.
set pf-status 'PFS'.
set titlebar 'TIT'.
data: obj type ref to lcl1.
if flag is initial.
create object container1
exporting
container_name = 'CONT1'.
create object container2
exporting
container_name = 'CONT2'.
create object grid1
exporting
i_parent = container1.
create object grid2
exporting
i_parent = container2.
create object obj.
set handler obj->handler_dbl_clk for grid1.
perform build_fcat.
perform build_layout.
call method grid1->set_table_for_first_display
exporting
* i_buffer_active =
* i_bypassing_buffer =
* i_consistency_check =
* i_structure_name = 'EKKO'
* is_variant = wa_variant
i_save = 'X'
* i_default = 'X'
is_layout = wa_layout1
* is_print =
* it_special_groups =
* it_toolbar_excluding =
* it_hyperlink =
* it_alv_graphics =
* it_except_qinfo =
* ir_salv_adapter =
changing
it_outtab = it_ekko
it_fieldcatalog = it_fcat1
* it_sort =
* it_filter =
* EXCEPTIONS
* invalid_parameter_combination = 1
* program_error = 2
* too_many_lines = 3
* others = 4
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
flag = 'X'.
endif.
endmodule. " STATUS_0100 OUTPUT
*& Form get_ekko
* text
* --> p1 text
* <-- p2 text
form get_ekko .
select ebeln bsart lifnr
from ekko
into corresponding fields of table it_ekko
where ebeln in s_ebeln.
endform. " get_ekko
*& Form GET_EKPO
* text
* --> p1 text
* <-- p2 text
form get_ekpo .
select ebeln ebelp menge meins peinh from ekpo
into corresponding fields of table it_ekpo
where ebeln = wa_ekko-ebeln.
if not it_ekpo[] is initial.
call method grid2->set_table_for_first_display
exporting
* i_buffer_active =
* i_bypassing_buffer =
* i_consistency_check =
* i_structure_name =
* is_variant =
* i_save =
* i_default = 'X'
is_layout = wa_layout2
* is_print =
* it_special_groups =
* it_toolbar_excluding =
* it_hyperlink =
* it_alv_graphics =
* it_except_qinfo =
* ir_salv_adapter =
changing
it_outtab = it_ekpo
it_fieldcatalog = it_fcat2
* it_sort =
* it_filter =
* EXCEPTIONS
* invalid_parameter_combination = 1
* program_error = 2
* too_many_lines = 3
* others = 4
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
endif.
endform. " GET_EKPO
*& Module USER_COMMAND_0100 INPUT
* text
module user_command_0100 input.
case sy-ucomm.
when 'BACK' or 'EXIT' or 'CANC'.
call method container1->free.
call method container2->free.
leave to screen 0.
endcase.
endmodule. " USER_COMMAND_0100 INPUT
*& Form build_fcat
* text
* --> p1 text
* <-- p2 text
form build_fcat .
* fieldcatalog for EKKO table
wa_fcat1-col_pos = '1'.
wa_fcat1-fieldname = 'EBELN'.
wa_fcat1-tabname = 'EKKO'.
wa_fcat1-coltext = 'PO No.'.
append wa_fcat1 to it_fcat1.
clear wa_fcat1.
wa_fcat1-col_pos = '2'.
wa_fcat1-fieldname = 'BSART'.
wa_fcat1-tabname = 'EKKO'.
wa_fcat1-coltext = 'PO Type'.
append wa_fcat1 to it_fcat1.
clear wa_fcat1.
wa_fcat1-col_pos = '3'.
wa_fcat1-fieldname = 'LIFNR'.
wa_fcat1-tabname = 'EKKO'.
wa_fcat1-coltext = 'Vendor No.'.
append wa_fcat1 to it_fcat1.
clear wa_fcat1.
* fieldcatalog for EKPO table
wa_fcat2-col_pos = '1'.
wa_fcat2-fieldname = 'EBELN'.
wa_fcat2-tabname = 'EKPO'.
wa_fcat2-coltext = 'PO No.'.
append wa_fcat2 to it_fcat2.
clear wa_fcat2.
wa_fcat2-col_pos = '2'.
wa_fcat2-fieldname = 'EBELP'.
wa_fcat2-tabname = 'EKPO'.
wa_fcat2-coltext = 'PO Item'.
append wa_fcat2 to it_fcat2.
clear wa_fcat2.
wa_fcat2-col_pos = '3'.
wa_fcat2-fieldname = 'MENGE'.
wa_fcat2-tabname = 'EKPO'.
wa_fcat2-coltext = 'Quantity'.
append wa_fcat2 to it_fcat2.
clear wa_fcat2.
wa_fcat2-col_pos = '4'.
wa_fcat2-fieldname = 'MEINS'.
wa_fcat2-tabname = 'EKPO'.
wa_fcat2-coltext = 'UOM'.
append wa_fcat2 to it_fcat2.
clear wa_fcat2.
wa_fcat2-col_pos = '5'.
wa_fcat2-fieldname = 'PEINH'.
wa_fcat2-tabname = 'EKPO'.
wa_fcat2-coltext = 'Price Unit'.
append wa_fcat2 to it_fcat2.
clear wa_fcat2.
endform. " build_fcat
*& Form build_layout
* text
* --> p1 text
* <-- p2 text
form build_layout .
clear wa_layout1.
wa_layout1-grid_title = 'Header data'.
* wa_layout-sel_mode = 'A'. "allow to select multiple lines
clear wa_layout2.
wa_layout2-grid_title = 'Item Data'.
endform. " build_layout
If you have any poblems while doing this, post it.
Do reward points for all helpful answers
Regards,
Sowjanya -
Production order - SP field (urgent)
Hi all,
I converted a planned order to a production order & in the component overview, i find for few materials, the SP filed with the value 2 (Project Stock). I would like to know how did this field get automatically filled, i.e. where-in material master is it mentioned as project stock? & if i dont want it to appear as 2, what should i do? Hope my problem is clear, await inputs.
VivekHi,
You have got the solution.
Little addition to the same-
The indicator ind/coll = 1 indicates that the procurement/stocking is going to be specific (e.g Sales order specific or Project specific). If you are working in a project based scenario, then most of the materials will be specific to your project (except standard components like, fasteners, few small bearings, fittings etc.), so you have to always maintain the indicator to blank or 1.
Fasteners, fittings etc are purchased and stocked in bulk so they should have the indicator as 2, So that we can consume them against any project.
Also, if you intend to produce some project specific material in alternative plant, you need to maintain the indicator as 2 and not one.
Regards,
Mahesh Patil. -
Re:SAP Implementation in Travel Field(URGENT)
Hi Friends,
Can any body tell me FI-MM-SD integration in Travel field.
Regards,
Shekarwhat is your exact requirement. Using Travel Management module, you can integrate to FI. There is no relaitons with FI-MM-SD integration.
Kesari -
Hi Gurus,
There is a programme which will update all the business place field for WHT reporting purpose for from april to till today.
But the issue is it will update even the rent and vendor accounts business place field with the data. In this case it is company code,.
I would like to know is there any impact on these two accounts if it updates business place field for expneses account and vendor accounts. Normally we know that business place is only for taxes.
Pl let me know, useful answer will be assigned with points.
Regards
SAP OnlyHello Only Sap,
The business place is used in countries that by law require returns for taxes on sales/purchases to be submitted at a level below the company code. For this reason, companies have to register each business place with the tax authorities as the unit responsible for tax reporting.
In some countries, the business place is also used to assign official document numbers to outgoing documents and so it is the level at which these documents are issued. In most cases, these documents are concerned with value-added tax (VAT) or similar tax types.
The idea behind running a program to poulate this field with companyt code seems to be on the above mentioned logic. As per my understanding there will not be any impact on the two accounts.
Hope this helps. please assign points.
Rgds
Manish -
How to maintain default values for custom table fields -- Urgent
Hi all,
I've a requirement wherein i need to create a Z table (with maintainence view) in which i'll have date and time as two of its field which should have current date and current time as default value. Can somebody suggest as how am i to maintain the date and time fields defaulting to current date and current time.
Incase if someone is unable to intrepret what i'm trying to say, please query me, i'll elaborate it further.
Please give in your quick inputs which is highly valuable to me and also will be highly appreciated.
Thanks in advance,
Vaishnavi VaradarajanWe have a following custom table which contains the fields Date on which record was created and Name of the person who created the object. We would like to have these to be filled up with SY-DATUM and SY-UNAME respectively.
Using the events, we can achieve this.
Please refer the following link:
http://abapliveinfo.blogspot.com/2007/12/events-in-table-maintenance-in-sap.html
Also,
Write a form routine in table maintanance generator.
1. SE11 > utilities > table maintenance generator
2. environment > modification > event
define the event and form routine to make use of the tigger. in the form routine define an object for the class and call the relevant method.
Or u can do it as:
Table maintenance generator is basically used to do table operations like (insert, delete, modify...).
if you create table maintenance for your table it will build a module pool program, by using you do the above operations.
below is the procedure to create table maintenance generator.
1) Create one function group.
2) after activating your Ztable, choose 'Utilities'----> 'Table maintenance genrator'.
3) then give the authorization group and function group created abobe in the next screen.
4) Then choose the "create" button in your application tool bar, which will creates the module pool program.
5) then create one Tcode by chosing "Transaction with parameters( parameter transaction)".
6) in transaction field give "SM30", select the check box "Skip initial screen".
7) in the below of that screen you can find the "Default values" frame.
8) there under the "name of screen field" select the "View name' and 'update".
9) in value column against to "view name" give you table name, and against to "Update" put 'X' in capital letters.
save it then you can straight away use this newly created Tcode to maintain your table.
Note:- 1) make the modification while saving the data into your table using this newly generated program to carry out your validation (even though it looks like standard program; no need to enter the access key).
2) if you do any changes to your table and press the activate button automatically the table maintenace generator will be goes off, you need to create this again.
cheers, -
TABSPACE between FIELDS in BARCODE
Hi Experts,
I am printing a barcode label containing multiple fields through smartform.
I want to separate fields to be displayed with TAB space.
i tried with cl_abap_char_utilities=>HORIZONTAL_TAB.
but the output which is getting scanned is showing ' # ' in between the fields and i want tabspace.
Any suggestions friends?
Thanks in advance.
Srikanth.Hi Kate,
I have tried many things now
we are using key-board wedge scanners that plug into the keyboard port on the back of the PC, and then the PC's keyboard plugs into the scanner cord.
model is :
MFG: Symbol
P/N: LS2208-SR20001R-UR
refered to it's manual, it said for Code 39 Full ASCII, tab is a $I.
concated field with that too...but to no use.
I am not sure of how to go forward with this.
if you find any solution please post here.
Thanks in advance,
Regards,
Srikanth. -
Hi Everyone,
so I have run into this very odd problem. When I am trying to configure my main submit for my infopath 2010 form, and it says File Name, I put in concat(field 1, field 2, field 3), and when the form submits, I get the following as a name for my form: field
1, field 2, field 3, exactly like that. so I went back into the main submit and typed concat( and then used the function button, which brought up the list of controls to choose from, so I choose field 1, field 2, field 3 and when I hit ok, I keep getting this
error:
Expected value type: end-of-string
Actual value: ,
my:secReqMetaData/my:field 1-->,<-- my:secReqMetaData/my:field 2,my:secReqMetaData/my:field 3
does anyone have any idea why this is happening?
Best regards, MikeThanks for sharing the answer here, it would be helpful for others with similar issue.
Qiao Wei
TechNet Community Support
Maybe you are looking for
-
Adobe Photoshop CS3 crashing at open file screen
Hi all I've searched online but can't find a relative discussion or solution. I have Adobe Photoshop CS3. My system is Windows 7 and it's 64-bit (that's about as far as my hardware/technical knowledge goes...). The problem has only started happening
-
Hi all, How should i write select query into Jquery. My query is like this select SERVICE_name into :p20_service_name from new_service where service_id=(SELECT max(service_id) from NEW_SERVICE);Thanks for help!
-
Why are my parameter values not setting in report?
G'day, Like many others I am a developer who is new to crystal reports. I have researched a lot for setting report parameters and although my code seem to be working when I open the report through code I'm always asked to re-enter the parameter valu
-
Non-Breaking Hyphen in MIF String ?
I'm using a spreadsheet (LibreOffice Calc) to generate the MIF for a Framemaker table: Paste in lines of tab-separated part_numbers and descriptors, copy out raw MIF that opens in Frame as a 3-column table with callout#, part_number and descriptor, e
-
Scroll all the rows in a table except the first row
I have an HTML table for eg... <html> <div style="height:100px;overflow:auto"> <table> <tr><td>xyz</td></tr> ///this row should not scroll <tr><td>123</td></tr> ///the rows repeated 100 times to allow scrolling </table> </div> </html> it gives me a n