URGENT:calling subscreen in IA05 - Internal tab
Hi All
I have an urgent Requirement.
I need to upload data into SAP using transaction IA05.
In IA05 first we need to enter header data then operation data.
After entering data for particular operation then we need to select "Internal" tab to enter the data. In the "Internal" screen we need to enter standard text Key only.
If we manually enter data in Internal screen then a pop up screen is appearing. In that pop up we need to select "No" so that operation short text will not be replaced with standard text.
But when i do recording i am unable to see that pop up.
I have written the program with out the sub screen .But operation short text is getting replaced with standard text.
But in the program if i pass the subscreen name in the following way i am getting an error message stating that "Invalid OK Code NO".
perform bdc_field using 'BDC_SUBSCR'
'SAPLCPDI3300OPR_DETAIL'.
perform bdc_field using 'BDC_OKCODE'
'=NO'.
If any one have uploaded data using IA05 kindly let me how to avoid overwriting of operation short text with standard text.
Points will be rewarded.
Thanks.
Hi Deepthi,
I have checked the standard code and what I found from that is, you will not get that pop-up during recording or in batch input. But the answer is being taken as 'NO' in batch-input mode directly without any users interaction. You also can check it out by yourself.
The function module which is giving this pop-up is 'TEXT_FOR_OPERATION'. Check from line 321.
Anyways, I hope you will have no problem to fulfill you requirement as the answer is being taken as 'NO' which is required for your case.
Please reward, if helpful.
Regards,
Chiranjit
Similar Messages
-
Facing problem with call subscreen area in standard infotype
Dear SAP Guru's,
I have enhanced standard infotype 0185 from PM01, in assign enhancement tab it create multiple screens ,
my program name ZP018500, screen number 0200 generated,
on 0200 screen i need to display two subscreens tfor that
i have created subscreen area on srcreen 0200 which is already a subscreen.
and i am calling two subscreen 0201 and 0202 on that subscreen area.
while creating entries for 0185 infotype my screen keep going in continious loop for call subscreen statement on 0200 screen number.
roll in fail, session terminated error coming because of this.
is it correct to create subscreen area on subscreen and calling subscreen on that.
Guide me to solve the issue.
Thanks and Regards,
SyedDear Gopal,
Thanks for the reply,
But i can't make 0200 screen as normal screen because it is automatically generated by system while enhancing the standard infotype,
Please let me know any other solution.
Regards,
Syed Taj -
How to call subscreen and provide selection screen in subscreen
Hi experts,
please anybody suggest me how to call subscreen in module pool screen and provide selection screen in that sub screen.
please tell me how to design this subscreen in module pool screen.
adevanced
thank you
regards
vijay krishnaHi,
If you need to have select-options in module pool then follow these steps:-
To implement select-options in module pool, first design two input/output fields (textboxes) for the low and high value of the field and name it as <field_name>-low and <field_name>-high.
Create a button next the high value textbox and keep its sutaible function code.
Now, to call the pop-up on this button click, we have to call the same pop-up as in standard select-options. For this we have to use the function module COMPLEX_SELECTIONS_DIALOG.
For this FM we have to pass the table name, field name and the range for the field whose range needs to fill when using the popup screen.
To pass the table name and field name details into the FM, we have to declare as:
DATA : tab TYPE rstabfield.
This structure comprises of table name and field name.
Pass these details in program as:-
u2003
*-- clear table and field details
CLEAR tab.
*-- append for range depending on the button clicked
* either for sales order or line item
CASE sy-ucomm.
WHEN 'VBELN'.
tab-tablename = 'VBAP'.
tab-fieldname = 'VBELN'.
*--To call the popup screen for the field use code:-
CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
EXPORTING
title = text-002 u201Ctitle text
text = ' '
signed = 'X'
search_help = v_shelp u201Csearch help if required
tab_and_field = tab u201Ctable and field name details
TABLES
range = r_vbeln u201Crange for the associated field
EXCEPTIONS
no_range_tab = 1
cancelled = 2
internal_error = 3
invalid_fieldname = 4
OTHERS = 5.
Hope this helps you.
Regards,
Tarun -
Error in call subscreen.. CALL SUBSCREEN ref1.
Hi Guru's
i am trying to use tabstrip. initially i have created the program using tabstrip control wizard. but now the same code i am writing using tabstrip control.
But while clicking 2nd tab i am getting errot as " Invalid field format (screen error)"
my code is
REPORT ytest2.
DATA: g_tabst_act TYPE sy-ucomm.
CONTROLS: tabstrip_control TYPE TABSTRIP.
DATA: BEGIN OF tabst,
prog TYPE sy-repid VALUE 'YTEST2' ,
screen TYPE sy-dynnr,
press_t TYPE sy-ucomm VALUE 'TAB2',
END OF tabst.
CALL SCREEN 100.
*& Module STATUS_0100 OUTPUT
text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'ST'.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
text
MODULE user_command_0100 INPUT.
CASE sy-ucomm.
WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
SET SCREEN 0.
WHEN OTHERS.
tabst-press_t = sy-ucomm.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Module ACTIVATE_TABSTRIP OUTPUT
text
MODULE activate_tabstrip OUTPUT.
g_tabst_act = tabst-press_t.
tabstrip_control-activetab = g_tabst_act.
CASE g_tabst_act.
WHEN 'TAB1'.
tabst-prog = sy-repid.
tabst-screen = '1001'.
WHEN 'TAB2'.
tabst-prog = sy-repid.
tabst-screen = '1002'.
ENDCASE.
ENDMODULE. " ACTIVATE_TABSTRIP OUTPUT
screen flow logic is
PROCESS BEFORE OUTPUT.
MODULE status_0100.
MODULE activate_tabstrip.
CALL SUBSCREEN ref1 INCLUDING tabst-prog tabst-screen.
PROCESS AFTER INPUT.
MODULE user_command_0100.
CALL SUBSCREEN ref1.
Element list is..
+ TABSTRIP_CONTROL Tab 1 1 78 78 23
- TAB1 Push 1 1 4 4 1
- TAB2 Push 1 2 4 4 1
- REF1 Subsc 3 2 73 73 20
OK 0 0 20 20 1 OK
Can you please help me why i am geting this error.Hi,
Check have you done this .....
"As this is done for you by the wizard, but if you are creating tab control manually you must do this....
*&SPWIZARD: OUTPUT MODULE FOR TS 'DEAL_TABS'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: SETS ACTIVE TAB
MODULE DEAL_TABS_ACTIVE_TAB_SET OUTPUT.
DEAL_TABS-ACTIVETAB = G_DEAL_TABS-PRESSED_TAB.
CASE G_DEAL_TABS-PRESSED_TAB.
WHEN C_DEAL_TABS-TAB1.
G_DEAL_TABS-SUBSCREEN = '0101'.
WHEN C_DEAL_TABS-TAB2.
G_DEAL_TABS-SUBSCREEN = '0102'.
WHEN C_DEAL_TABS-TAB3.
G_DEAL_TABS-SUBSCREEN = '0103'.
WHEN C_DEAL_TABS-TAB4.
G_DEAL_TABS-SUBSCREEN = '0104'.
WHEN OTHERS.
*&SPWIZARD: DO NOTHING
ENDCASE.
ENDMODULE.
*&SPWIZARD: INPUT MODULE FOR TS 'DEAL_TABS'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: GETS ACTIVE TAB
MODULE DEAL_TABS_ACTIVE_TAB_GET INPUT.
OK_CODE = SY-UCOMM.
CASE OK_CODE.
WHEN C_DEAL_TABS-TAB1.
G_DEAL_TABS-PRESSED_TAB = C_DEAL_TABS-TAB1.
WHEN C_DEAL_TABS-TAB2.
G_DEAL_TABS-PRESSED_TAB = C_DEAL_TABS-TAB2.
WHEN C_DEAL_TABS-TAB3.
G_DEAL_TABS-PRESSED_TAB = C_DEAL_TABS-TAB3.
WHEN C_DEAL_TABS-TAB4.
G_DEAL_TABS-PRESSED_TAB = C_DEAL_TABS-TAB4.
WHEN OTHERS.
*&SPWIZARD: DO NOTHING
ENDCASE.
ENDMODULE.
Hope it helps you,
Regards,
Abhijit G. Borkar -
Calling subscreen which is part of tabstrip control
I am trying to call a subscreen which is part of a tab control, but i keep getting the error message: "." or "ID....FIELD..." expected after SUBSCREEN. Here is the code:
CALL SUBSCREEN tab2 including zd_tabstrip 102.
What is my mistake?CALL SUBSCREEN....... statement will not work inside any module. So, you need to set the screen number and than you have to set the subscreen with that screen.
Try like:
In your code:
CASE ok_code.
WHEN 'EDIT'.
CLEAR ok_code.
LOOP AT itab INTO wa_itab.
IF wa_itab-mark = 'X'.
SELECT SINGLE * FROM zdstats WHERE zplayer = wa_itab-zplayer.
W_DYNNR = '0102'.
ENDIF.
ENDLOOP.
endcase.
In your flow logic:
PROCESS BEFORE OUTPUT.
CALL SUBSCREEN tab2 including zd_tabstrip W_DYNNR.
PROCESS AFTER INPUT.
CALL SUBSCREEN tab2.
Regards,
Naimesh Patel -
Hi,
my main screen number is 1001 and in that screen i have a tabstrip with subscreens 1002,1003,1004,1005,1006.Each tab has an ALV...
When i click on excute button in my main screen 1001 then i need to call all the subscreens and all the ALV's should be displayed.
My coding...
Module user-command 1001.
Case Sy-ucomm.
When 'EXCE'.
CALL SUBSCREEN TAB_SCA INCLUDING sy-repid '1002'.
CALL SUBSCREEN TAB_SCA INCLUDING sy-repid '1003'.
CALL SUBSCREEN TAB_SCA INCLUDING sy-repid '1004'.
CALL SUBSCREEN TAB_SCA INCLUDING sy-repid '1005'.
CALL SUBSCREEN TAB_SCA INCLUDING sy-repid '1006'.
endcase.
endmodule.
but error is displayed as "," or "ID ... FIELD ..." expected after "SUBSCREEN".
Guys Please let me know if someone knows the solution.
Regards,
Chaithanya.Hi,
In PAI event, you should not use INCLUDING SY-REPID SCREEN_NO
This is causing error.
Wrting CALL SUBSCREEN TAB_SCA only once is enough as you are displaying
multiple subscreens in same subscreen area.
Regards,
Vishal
Edited by: Vishal Jadhav on Dec 9, 2008 3:54 PM -
Calling Subscreen using tabstrip control
Hello all,
I need to create a tabstrip with 2 tabs.
when i click on the first tab i need to have 4 fieldnames from EKKO.
when i click on the second tab i need to have 2 fieldname from EKPO
I have created a Tabstrip control with 2 tabs.
Subcreen area is also created in this tabstrip control.
And i have created 2 subscreens for the 2 tabs.
but i am not able to call the subcreens.
Can someone tell me how to do this.
Thanks
HarishHi Harish,
Chekc this
Calling subscreen in tabstrip
hope it helps.
Thanks! -
hI ALL
I WANT OT KNOW
1) IS IT POSSIBLE TO NEST INTERNAL TAB ? HOW ?
2 )SYNTEX TO CALL REPORT FROM TRANSACTION ?
3) DIIF WAYS TO PASS DATA BETWEEN LISTS ?
THANKShi,
1. it is possible to club to int tables, only if any commom fields are there..
ex :
consider 3 itab's
begin of itab1 occurs 0,
pernr like pa0001-pernr,
ename like pa0001-ename,
end of itab1.
begin of itab2 occurs 0,
pernr like pa0001-pernr,
icnum like pa0185-icnum,
end of itab2.
begin of itab3 occurs 0,
pernr like pa0001-pernr,
ename like pa0001-ename,
icnum like pa0185-icnum,
end of itab3.
consider u hav data on both the itab;'s....
<b>now to club :</b>
loop at itab1.
loop at itab2 where pernr = itab1-pernr.
move-corresponding itab1 to itab3.
move-corresponding itab2 to itab3.
append itab3.
endloop.
endloop.
2. once u hav crated a report prgm.
then goto <b>SE93</b>, giv a new tcode starts with Z,
then <b>CREATE</b>, it will ask for the pgnm name, giv the progm name.....
save & execute.
reply back
With Regards,
S.Barani
Message was edited by:
S BHARANIDARAN -
HI EVERY BODY,
I AM TRYING TO CALL TABSTRIP SUBSCREENS IN PAI FROM MAIN SCREEN, BUT THE SECOND TAB IS NOT GETTING POPULATED WITH INFORMATION. SO ANYBODY PLEASE GIVE ME AN EXAMPLE OF HOW TO CALL SUBSCREENS FROM PAI
THANX IN ADVANCE,
REGARDS,
MOUNIKA.Mounika,
MODULE tabstrip_active_tab_set OUTPUT.
tabstrip-activetab = g_tabstrip-pressed_tab.
CASE g_tabstrip-pressed_tab.
*--- Personnel Area
WHEN c_tabstrip-tab1.
g_tabstrip-subscreen = '3000'.
*--- Jobs
WHEN c_tabstrip-tab2.
g_tabstrip-subscreen = '3001'.
ENDMODULE.
*--- INPUT MODULE FOR TABSTRIP 'TABSTRIP': GETS ACTIVE TAB
MODULE tabstrip_active_tab_get INPUT.
CASE sy-ucomm.
*--- Personnel Area
WHEN c_tabstrip-tab1.
IF g_ucomm NE 'C'.
<b> Populate your data here.</b>
PERFORM fetch_pa.
ENDIF.
CLEAR sy-ucomm.
g_tabstrip-pressed_tab = c_tabstrip-tab1.
*--- Jobs
WHEN c_tabstrip-tab2.
*--- Get records into IT
PERFORM fetch_jobs.
CLEAR sy-ucomm.
g_tabstrip-pressed_tab = c_tabstrip-tab2.
ENDMODULE.
-Anu -
How do i transfer data from one internal tabe to another.
Hi All,
How do i transfer data from one internal tabe to another.
Can i do it ebven if he tables are different in structure.
Please Advice.
Thanks in advance.Hi Saket Tiwari,
I hope the earlier post by kashyap is good enough an answer. anywas in addition to it let me give a detailed
explanation of how you can populate an internal table.
1) Append data line by line.
Syntax : APPEND [<wa> TO / INITIAL LINE TO] <itab>.
this appends new line to internal table <itab>.
2) Using COLLECT statement.
COLLECT is another form of statement used for populating the internal tables. Generally COLLECT is used while inserting lines into an internal table with unique standard key. The syntax for COLLECT statement is as shown
Syntax : COLLECT [<wa> INTO] <itab>.
3) Using INSERT statement
Syntax INSERT [<wa> INTO / INITIAL LINE INTO] <itab> [index <idx>].
INSERT statement adds a line/work area to the internal table. You can specify the position at which the new line is to be added by using the INDEX clause with the INSERT statement.
Now coming to your request..
To append part or all of an internal table
Syntax
APPEND LINES OF <itab1> [FROM <n1>] [TO <n2>] TO <itab2>.
* Note:
Without the FROM and TO options, this statement appends the entire table <itab1> to <itab2>.*
b) To insert part or all of an internal table into another internal table
Syntax
INSERT LINES OF <itab1> [FROM <n1>] [TO <n2>]
INTO <itab2> [INDEX <idx>].
c) Using Move statement.
To copy entire contents of one table into another in one execution
Syntax MOVE <itab1> To <itab2>.
OR
<itab1> = <itab2>.
but u hav to be careful because he contents of itab2 will eb overwritten on the execution of this statement.
These copy the contents of ITAB1 to ITAB2. Incase of internal tables with header line we have to use [] inorder to distinguish from work area. So, to copy contents of internal tables with header line the syntax becomes,
ITAB1[] = ITAB2[].
Coming to the letter part of your question, Yes, we can copy values between tables having different structures.
for this we use
MOVE-CORRESPONDING <itab1> TO <itab2>
this executes the statement for their header lines. Searches for the sub-fields which occur both in itab1 and itab2 and then generates, for all relevant field pairs which correspond to the
sub-fields ni , statements of the form MOVE itab1-ni TO itab2-ni. The other fields remain unchanged.
I hope the information provided has been of your help.
Reward if useful.
Regards,
Jose -
Calling subscreen on click of radio button
Hi,
I am creating a module pool program , in which on click of a radio butto to 'YES' a subscreen should appear ( on the main screen) with few fields so that the user can input values of it.
But I am having proble in calling the subscreen in PAI event.Actually I think it should be something like this
Module user_command.
case sy-ucomm.
when rb_yes = 'X'
{ CALL SUBSCRREN CODE
ENDIF.
Can this be done? I f yes how? I only know how to call subscreen in PBO, but the syntax for calling subscrren is different in PAI i think.Hi,
Try doing this.
This is your flow logic in the main screen to call the Subscreen's PBO
PROCESS BEFORE OUTPUT.
MODULE STATUS_0110.
CALL SUBSCREEN TAB1_REF1 INCLUDING 'ZTRIAL' '0111'.
In the PAI of the main screen,
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0110.
CALL SUBSCREEN TAB1_REF1.
Assign a function code to your radio button.
Layout -> Attributes -> Function Code
In the TOP include,
DATA: v_dynnr type sy-dynnr.
In module USER_COMMAND_0110.
if p_rad = 'X'.
v_dynnr = '0111'.
else.
v_dynnr = ' '
endif.
You can check this for your reference
[http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dbabfe35c111d1829f0000e829fbfe/content.htm] -
Calling subscreen in module pool
Hi friends,
I am trying to call sub-screen in module pool.
but it is giving me an error as "." or "ID ... FIELD ..." expected after "SUBSCREEN".
i am using followning statement
CALL SUBSCREEN SUB INCLUDING SY-REPID '0101'.
OR
CALL SUBSCREEN SUB. (SUB is screen i have created in layout).
I tried it a lot, but not able to solve it.
Kindly help me.Hi Kiran,
<li>Subscreen concept is like this. You have one main screen. You want another screen which has to be displayed on main screen when you run main screen.
<li>First we need to create subscreen area on main screen. Goto layout and click subscreen element and place on main screen and name to that subscreen area as SUB.
<li>Now create another screen type subscreen. place fields on that and write logic.
<li> Check REPORT demo_dynpro_subscreens.
Thanks
venkat.O -
Call forwarding to an International Number
I am working overseas and have a prepaid phone with a local number in that country. Prior to leaving the US again, can I enter the international number of my prepaid phone into the call forwarding feature on my iPhone and have my calls forwarded to that phone? I assume that the person calling my iPhone will not be charged, but will I be charged for making an international phone call each time a call is forwarded to my international phone number? Are there any other charges involved? Has anyone done this before that can tell me how well it works?
To make sure you should contact AT&T but if you set up call forwarding to an international number, you will be the one charged for the international call since your account/phone is dialing the final number.
Again, find out for sure from AT&T who gets the charge. -
Hi
CALL SUBSCREEN is used only in the flow logic but not in the actual program. I want to know the reason why it is not used in the actual program. please help me.
POINTS WILL BE GIVEN.
thanks,
S.Gangi Reddy.hi,
Subscreens allow you to embed one screen within another at runtime. The term subscreen applies both to the screen that you embed, and the area on the main screen in which you place it. This section is about subscreen areas. The actual screens that you embed are called subscreen screens. When you use a subscreen, the flow logic of the embedded screen is also embedded in the flow logic of the main screen. Using subscreens on screens is like using includes in ABAP programs.
Subscreens are screens which can be embeded into another screen. These can be used and created with both selection screen as well as screen painter.
They differ from normal screens in the way that that they don't have OK_CODE field of ther own and there PBO and PAI transfer data to the ABAP program in which these screens were created and the cannot have module calls which change status or leave screen and module call AT EXIT-COMMAND AND E type function codes.
Subscreens allow you to embed one screen within another at runtime. The term subscreen applies both to the screen that you embed, and the area on the main screen in which you place it. This section is about subscreen areas. The actual screens that you embed are called subscreen screens. When you use a subscreen, the flow logic of the embedded screen is also embedded in the flow logic of the main screen. Using subscreens on screens is like using includes in ABAP programs.
In screen painter(SE51) choose the subscreen tool button and draw a subscreen area on the screen,this subscreen area will be used to hold the subscreen at run time.To make a subscreen select the attribute screen type as subscreen and specify the size of the subscreen according to the size of the subscreen area in which it will be placed.
We use ABAP statement to embed and start the flow logic of the subscreen area in the PBO of a screen. A subscreen can contain another subscreen.
Hope this answers you, Do reward.
Edited by: Runal Singh on Feb 8, 2008 5:36 PM -
To call subscreen in another screen
hi
How to call a subscreen if i check certain checkbox.please helpHi,
In screen painter(SE51) choose the subscreen tool button and draw a subscreen area on the screen,this subscreen area will be used to hold the subscreen at run time.To make a subscreen select the attribute screen type as subscreen and specify the size of the subscreen according to the size of the subscreen area in which it will be placed.
We use ABAP statement to embed and start the flow logic of the subscreen area in the PBO of a screen. A subscreen can contain another subscreen.
CALL SUBSCREEN subscreen_area INCLUDING program screen_number.
A similar call should also exist in PAI of screen.It will also call the PAI modules of the subscreen and will transfer data from subscreen to ABAP program.
CALL SUBSCREEN subscreen_area.
open T.code : ABAPDOCU
path:BC ABAP Prg ->ABAP User dialog ->Screen ->Complex screen element - >Subscreen.
You will get sample prg, Run it.You can get lot of sample prg in T.Code ABAPDOCU.
Regards,
Raj.
Maybe you are looking for
-
Wrong 'mini dvi to video' adapter for my 12" Powerbook 1.33
I recently bought the M9319 mini dvi - video adapter for my 12" Powerbook 1.33 to find that the mini dvi on the adapter is a different size to the one on the computer and the adapters supplied with the computer. I've been doing a bit of research into
-
How to convert java class to dll file for using in Microsoft Technology(.n)
hey hemmj !!!!!! nice replying , first of all i d like to say thanks for response me so frequently..... i like such type of guy... i d never forget ur online support. hey buddy, i ve a problem with applet application... i m working on java chat serve
-
Type conflict with ASSIGN in program in Release time(ESS)
Hi All, On clicking on the link "Release Working Time Data" from EP While releasing working time below exception is being thrown. com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Type conflict with ASSIGN in program SAPLHRXSS_C
-
Custom playlist folder showing songs that aren't in any of the playlists
I'm running iTunes 7 and I've created a folder to store all of the playlists that I use for DJing. Right now I've got about 90 - 100 playlists in that folder. When I highlight the folder to show all of the songs in that folder, I notice that it also
-
hi guys 1.PO craeted 2.MB1B 541 goods transferd with ref to PO 3. J1if01 with ref to Mat doc 4. GR with ref to PO when am entering SC challan number & year its showing error as Challan material is different from material document Message no. 8I572 ca