Screen changes in BDC
Hi Experts.
Please let me know the way to solve the scenario that while bdc prog is running , after processing frst screen it will go to another screen rathar than thesecond screen.I mean to say that after processing frst screen control will go to the 4th screen( let's say) directly .
Thanks in adv.
A Miter.
Hi A Miter,
I saw that the thread is closed, but I don't fully agree with the previous answers that it's not possible to make a screen automatically filled and action executed.
That could be done in some rare situations where a screen is displayed and is to be quit always by the same function code: you use CALL TRANSACTION ... USING bdcdata MODE 'E', where BDCDATA only contains that given screen. When the transaction is executed, the first screen is displayed because it does not correspond to the bdcdata. When the screen of the BDCDATA is reached, then the BDC executes the bdcdata automatically. If you later come back to that screen by some function code, then it will be displayed as the bdcdata has been "consumed". But you could also fill the screen several times in the bdcdata to avoid the user to enter it multiple times. What must be understood is that in mode 'E' (also for 'A' but that's not the topic here), the bdcdata is paused each time the current screen doesn't match.
BR
Sandra
Similar Messages
-
How to change the property of the fields on screen while using BDC
Hello,
I am working on a program where I am using BDC call transaction method to update vendor master data using Fk02. I need to call the transaction in mode 'E'. As per the requirement I don't want user to see all the fields available on that screen. For example on Payment transactions screen I only want user to see fields like Bank key, bank number in the editable mode and rest all the fields on the screen should be greyed out.
Can you please help with how can i do this.Hi,
I think you can achieve this using transaction variant. Create a transaction variant using SHD0 and grey out the fields which you want. After that in BDC, instead of calling FK02, call the transaction variant you created. you may have to change the BDC recording a bit, but i think you can give it a try?
Do let me know if it helps you.
Regards,
Raghav. -
How to create screen resolution in bdc table control
hi gurus
can anyone suggest me
how to create screen resolution in bdc table control
thanks®ards
mark.Hi ,
Using CTU_PARAMS table for screen resolution .
For this sample code.
This is for Transation FB60.
report ZZFB60
no standard page heading line-size 255.
tables t100.
PARAMETERS : p_file1 like rlgrap-filename,
p_doctyp like RF05A-BUSCS,
p_invdat like INVFO-BLDAT,
p_posdat like INVFO-BUDAT.
CONSTANTS : C_TRANS_FB60(4) VALUE 'FB60'.
*Parameter string for runtime of CALL TRANSACTION
data : l_option type ctu_params,
l_subrc type sysubrc.
DATA : l_mstring(150).
data accnt type char17.
data : day type char2,
month type char2,
year type char4,
date1 type char10,
date2 type char10.
data : cnt(2) TYPE n,
cnt1 type i,
fld(25) TYPE c.
data : begin of excel occurs 0,
fieldname(255) type c,
end of excel.
DATA:BEGIN OF it_mess OCCURS 0,
msgtyp(5),
lms(200),
msgv1(50),
END OF it_mess.
data: begin of t_record occurs 0,
BUKRS(004),
ACCNT(017),
XBLNR(016),
WRBTR1(016),
WAERS(005),
SECCO(004) ,
SGTXT(050),
HKONT(010),
WRBTR2(017),
MWSKZ(002),
GSBER(004),
KOSTL(010),
end of t_record.
*Internal Table for Header Data
DATA : BEGIN OF t_head OCCURS 0,
BUKRS(004), "Company Code
ACCNT(017), "Account or Vendor
XBLNR(016), "Reference
WRBTR1(017), "Amount in document currency
WAERS(005), "Currency
SECCO(004), "Section Code
SGTXT(050), "Text
END OF t_head.
*Internal table for Item Data
DATA : BEGIN OF t_item OCCURS 0,
ACCNT(017), "Account
HKONT(010), "GL Account
WRBTR2(017), "Line item Amount in document currency
MWSKZ(002), "Tax Code
GSBER(004), " Business Area
KOSTL(010), "Cost centre
END OF t_item.
DATA: IT_BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE,
IT_BDC_MESSAGES LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
*include bdcrecx1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file1.
PERFORM file_selection.
PERFORM data_upload.
PERFORM table_control.
start-of-selection.
l_option-defsize = 'X'.
l_option-dismode = 'A'.
l_option-updmode = 'S'.
day = p_invdat+6(2).
month = p_invdat+4(2).
year = p_invdat+0(4).
concatenate day month year into date1 SEPARATED BY '.'.
day = p_posdat+6(2).
month = p_posdat+4(2).
year = p_posdat+0(4).
concatenate day month year into date2 SEPARATED BY '.'.
*perform open_group.
loop at t_head.
CLEAR IT_BDCDATA.
REFRESH IT_BDCDATA.
perform bdc_dynpro using 'SAPLACHD' '1000'.
perform bdc_field using 'BDC_OKCODE' '=ENTR'.
perform bdc_field using 'BKPF-BUKRS' t_head-bukrs.
perform bdc_dynpro using 'SAPMF05A' '1100'.
perform bdc_field using 'BDC_OKCODE' '/00'.
perform bdc_field using 'RF05A-BUSCS' p_doctyp.
perform bdc_field using 'INVFO-ACCNT' t_head-accnt.
perform bdc_field using 'INVFO-BLDAT' date1.
perform bdc_field using 'INVFO-BUDAT' date2.
perform bdc_field using 'INVFO-XBLNR' t_head-xblnr.
perform bdc_field using 'INVFO-WRBTR' t_head-wrbtr1.
perform bdc_field using 'INVFO-WAERS' t_head-waers.
perform bdc_field using 'INVFO-SECCO' t_head-secco.
perform bdc_field using 'INVFO-SGTXT' t_head-sgtxt.
cnt = 1.
cnt1 = 1.
loop at t_item where accnt = t_head-accnt.
*if cnt > 4.
*cnt = 4.
*endif.
if cnt1 gt 1.
CONCATENATE 'ACGL_ITEM-MARKSP(' cnt ')' INTO fld.
perform bdc_field using fld 'X'.
perform bdc_dynpro using 'SAPMF05A' '1100'.
perform bdc_field using 'BDC_OKCODE' '=0005'.
endif.
perform bdc_dynpro using 'SAPMF05A' '1100'.
perform bdc_field using 'BDC_OKCODE' '/00'.
CONCATENATE 'ACGL_ITEM-HKONT(' cnt ')' INTO fld.
perform bdc_field using fld t_item-hkont.
CONCATENATE 'ACGL_ITEM-WRBTR(' cnt ')' INTO fld.
perform bdc_field using fld t_item-wrbtr2.
CONCATENATE 'ACGL_ITEM-MWSKZ(' cnt ')' INTO fld.
perform bdc_field using fld t_item-mwskz.
CONCATENATE 'ACGL_ITEM-GSBER(' cnt ')' INTO fld.
perform bdc_field using fld t_item-gsber.
CONCATENATE 'ACGL_ITEM-KOSTL(' cnt ')' INTO fld.
perform bdc_field using fld t_item-kostl.
perform bdc_field using 'BDC_CURSOR' fld.
*CONCATENATE 'ACGL_ITEM-MARKSP(' cnt ')' INTO fld.
*perform bdc_field using fld 'X'.
cnt1 = cnt1 + 1.
*cnt = cnt + 1.
*if cnt > 1.
*perform bdc_dynpro using 'SAPMF05A' '1100'.
*perform bdc_field using 'BDC_OKCODE' '=0005'.
**perform bdc_field using 'BDC_OKCODE' '=0006'.
*endif.
endloop.
perform bdc_dynpro using 'SAPMF05A' '1100'.
perform bdc_field using 'BDC_OKCODE'
'=BS'.
perform bdc_dynpro using 'SAPMSSY0' '0120'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.
*perform bdc_transaction using 'FB60'.
CALL TRANSACTION C_TRANS_FB60 USING IT_BDCDATA options from l_option
MESSAGES INTO IT_BDC_MESSAGES.
perform error.
perform errordownload.
endloop.
*perform close_group.
*Form data_upload
FORM data_upload .
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
FILENAME = p_file1
FILETYPE = 'DAT'
TABLES
DATA_TAB = t_record.
ENDFORM. " data_upload
*Form file_selection
FORM file_selection .
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
field_name = 'p_file1'
IMPORTING
file_name = p_file1.
ENDFORM. " file_selection
Form BDC_DYNPRO
FORM BDC_DYNPRO using program dynpro.
CLEAR IT_BDCDATA.
IT_BDCDATA-PROGRAM = PROGRAM.
IT_BDCDATA-DYNPRO = DYNPRO.
IT_BDCDATA-DYNBEGIN = 'X'.
APPEND IT_BDCDATA.
endform.
*Form BDC_FIELD
FORM bdc_field using fnam fval.
CLEAR IT_BDCDATA.
IT_BDCDATA-FNAM = FNAM.
IT_BDCDATA-FVAL = FVAL.
APPEND IT_BDCDATA.
ENDFORM.
Table Control
FORM table_control .
LOOP AT t_record.
ON CHANGE OF t_record-accnt.
MOVE-CORRESPONDING t_record TO t_head.
APPEND t_head.
ENDON.
loop at t_head.
t_item-accnt = t_head-accnt.
t_item-hkont = t_record-hkont.
t_item-wrbtr2 = t_record-wrbtr2 .
t_item-mwskz = t_record-mwskz .
t_item-gsber = t_record-gsber .
t_item-kostl = t_record-kostl.
APPEND t_item.
endloop.
If t_record-level = 'H'.
t_head-bukrs = t_record-text1.
t_head-accnt = t_record-text2.
t_head-xblnr = t_record-text3.
t_head-wrbtr1 = t_record-text4.
t_head-waers = t_record-text5.
t_head-secco = t_record-text6.
t_head-sgtxt = t_record-text7.
APPEND t_head.
else.
t_item-accnt = t_head-accnt.
t_item-hkont = t_record-text1.
t_item-wrbtr2 = t_record-text2.
t_item-mwskz = t_record-text3.
t_item-gsber = t_record-text4.
t_item-kostl = t_record-text5.
APPEND t_item.
endif.
ENDLOOP.
ENDFORM.
FORM error .
LOOP AT IT_BDC_MESSAGES.
IF IT_BDC_MESSAGES-msgtyp = 'E'.
SELECT single * FROM t100 WHERE
sprsl = it_BDC_MESSAGES-msgspra
AND arbgb = IT_BDC_MESSAGES-msgid
AND msgnr = IT_BDC_MESSAGES-msgnr.
IF sy-subrc = 0.
l_mstring = t100-text.
IF l_mstring CS '&1'.
REPLACE '&1' WITH IT_BDC_MESSAGES-msgv1 INTO l_mstring.
REPLACE '&2' WITH IT_BDC_MESSAGES-msgv2 INTO l_mstring.
REPLACE '&3' WITH IT_BDC_MESSAGES-msgv3 INTO l_mstring.
REPLACE '&4' WITH IT_BDC_MESSAGES-msgv4 INTO l_mstring.
ELSE.
REPLACE '&' WITH IT_BDC_MESSAGES-msgv1 INTO l_mstring.
REPLACE '&' WITH IT_BDC_MESSAGES-msgv2 INTO l_mstring.
REPLACE '&' WITH IT_BDC_MESSAGES-msgv3 INTO l_mstring.
REPLACE '&' WITH IT_BDC_MESSAGES-msgv4 INTO l_mstring.
ENDIF.
CONDENSE l_mstring.
it_mess-msgtyp = IT_BDC_MESSAGES-msgtyp.
it_mess-lms = l_mstring.
it_mess-msgv1 = IT_BDC_MESSAGES-msgv1.
APPEND it_mess.
ELSE.
it_mess-msgtyp = IT_BDC_MESSAGES-msgtyp.
it_mess-lms = l_mstring.
it_mess-msgv1 = IT_BDC_MESSAGES-msgv1.
APPEND it_mess.
ENDIF.
ENDIF.
ENDLOOP.
ENDFORM.
form errordownload.
*down the internal table to excel file.
call function 'EXCEL_OLE_STANDARD_DAT'
EXPORTING
file_name = 'c:/Error.xls'
TABLES
data_tab = it_mess
fieldnames = excel
EXCEPTIONS
file_not_exist = 1
filename_expected = 2
communication_error = 3
ole_object_method_error = 4
ole_object_property_error = 5
invalid_filename = 6
invalid_pivot_fields = 7
download_problem = 8
others = 9.
endform.
Reward if useful
Regards,
Narasimha
Edited by: narasimha marella on May 13, 2008 12:12 PM -
Screen changes during an upgrade
Hi,
Is there any way we can find out the obsolete screens and the screen changes from lower version to higher version during an upgrade.
Thank You.
Regards,
SoumyaHi
While doing Upgrade You have to aware of all related program like BDC's , Screens related errors and all dictionary related problems.
Some function modules may become obsolete, and some screens will change
and some new fields will be added in the new versions etc.
Also take care of SPAU and SPDD tcodes.
You should be able to know about Unicode concept in sap.
check this
http://www.thespot4sap.com/upgrade_guide_v2.pdf#search=%22upGRADE%20STEPS%20-%20SAP%22
also chk these 2 notes in service.sap.com
Technical Upgrade is only a version upgrade without any functionality changes.
The objects that are needed to be upgraded are:
Includes
Function Groups / Function Modules
Programs / Reports
OSS Notes
SAP Repository Objects
SAP Data Dictionary Objects
Domains, Data Elements
Tables, Structures and Views
Module Pools, Sub Routine pools
BDC Programs
Print Programs
SAP Scripts, Screens
User Exits
You can refer to the below links for more information on technical upgrade:
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/07/upgradeFROMR3TOmySAPERP-PARTII&
https://wiki.sdn.sap.com/wiki/display/profile/UPGRADEFROMR3TOmySAPERP-PARTIII
http://help.sap.com/saphelp_nw2004s/helpdata/en/60/d6ba7bceda11d1953a0000e82de14a/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/2e/6d66647d9011d396b60000e82de14a/content.htm
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5ac31178-0701-0010-469a-b4d7fa2721ca
Hope this will help you
Regards
Kiran -
I'm running Mozilla-firefox on a Lenovo laptop. Last night the screen changed suddenly. brief alert about patch. unable to open email inbox to read/send emails. logged off thinking all would be right by morning. today, can access internet, google, etc, but unable to open email inbox. plus the listing of the various yahoo accts has changed the sequence order. please help. i depend on my email for my livelihood. i can read emails on my blackberry so the issue is not my internet provider.
In the patch 29, it is
function encode_attachment(str) {
var c, i, s = ''
for (i = 0; i < str.length; i++) {
switch (c = str.charAt(i)) {
case ' ':
case '#':
case '?':
case '%':
s += NN ? '_' : escape(c); break
default:
s += c
return s
NO issues seen, Able to open attachment which has space in the file name. -
HI,
CAN ANY ONE TELL ABOUT SCREEN RESOLUTION IN BDC.
REGARDS.
B.SREENIVASULU.Hi,
Screen resolution means different in the screen display depending on ur system screen resolution.
suppose ur system resolution is diff and another's system is different then like in Tcode VA01, there will be 3 lineitems and another there will be 5 lineitems ,
so while doing recording and page down that will bw diff so there will be some problem
So u have to set the screen resolution as default by using CTU parameters..
write this code then
f_option-updmode = 'S'.
<b> f_option-defsize = 'X'.</b> f
_option-dismode = 'N'.
*call transaction 'VA01' using bdcdata options from f_option messages into bdcerror.
Hope it helps.
Regards,
Sonika -
How to handle screen resolution in bdc session method.
hi all,
how to handle screen resolution in bdc session method.Hello,
Why do need that for? Is it to add rows on a table control??
If it does, add new rows by using the add button instead of adding into the table control directly to each row.
Bye
Gabriel. -
Screen changes are not active in production tenent
Hi Experts,
I realized the transport of a solution to the production environment and as can be seen in the attached image the solution has been successfully activated.
The scripts "OnSave", "AfterModify", etc for example are up and running in the production environment, but all the changes that were made on screen are not displayed to users.
Does anyone know how to make the screen changes available to users?
Best regards.Hello Felipe,
What tool did you use to "make changes on screens"?
UI Designer started from SDK?
Adaption mode in UI?
Bye,
Horst -
I have mapped the fields on the selection-screen to the BDC on transaction
I have mapped the fields on the selection-screen to the BDC on transaction F110.
When I am selecting a particular any value in select-option on the selection screen, it is giving some default value and the value given by me,for example:
Payment methods:C
but in BDC recording for F110 Payment methods:IEQC when the programs is running in foreground mode.
how can I rectify it?This is because payment methods may be a table and what you see IEQC is actually, I for include, EQ for equal and C as your payment method. This is standard structure for ranges or select-options. You can use variable-low which will give you only C.
-
What makes my screen change after going to sleep?
I have os10.9.2 and since I installed it 6 weeks ago my screen changes sizes after it wakes up. I have a mac mini.
At the bottom of your thing it says you are using 10.7.1. Is this correct? If so, run Software Update first, and see where that takes ya. From there, if you are still having issues with the black screen, try opening Disk Utility, and hit Verify Disk. If this comes up with errors, re-start your computer holding the Option button down, from there, select Recovery Disk as your start up disk. You will be able to locate Disk Utility in there, and you can Repair Disk from there.
If it does repair disk successfully, that could be part of the problem. If that doesn't work, follow the steps in this article to reset PRAM/NVRAM http://support.apple.com/kb/ht1379
Even still, if that doesn't seem to correct the problem, i would back up everything on your computer to an external harddrive, erase, and re-install 10.6, run Software Update a few times, check the app store for the digital download of Lion....you should not need to "buy" this again, it should see it in the purchased section..
Update again with Software Update when you get the successful re-installation of Lion. I'm not 100% positive with the whole re-installation steps, if it walks you through going through the Migration Assistant or not, but even if it doesn't, that's okay. You can still locate Migration Assistant via the Utilities folder and bring back all your Time Machine stuff again.
Still if you want to dig even deeper to see if there is a problem with your hardware, you can run Apple Hardware Test. Check this article for steps...http://support.apple.com/kb/HT1509 -
Hey guys. Lately every time I've woken up my Macbook the screen changes colors. It will go through all of the primary colors and then some gray horizontal and diagnoal stripes, and sometimes the screen will flash in and out. Usually if I close the lid and reopen a couple seconds later, it's fine. But, is there any way of fixing this? I don't want it to turn into a bigger problem.
You may be having a problem with your screen, your integrated GPU or your connection cable between the logic board and the screen. The only way to ferret out which problem you have would be to take your machine into your local Apple Store or an AASP and have them run diagnostics on the unit. They can give you an idea of what's up with the machine and an estimate on what it would cost to fix it.
Good luck,
Clinton -
Pavilion DV& screen changing colors
When turning on the laptop, the screen changes colors (red, green, gray, blue, etc) before coming on. It took almost 25 minutes for it to stop and then finally get the sign on screen.
What could be the problem? The laptop is about 3 years old.
If it need to be repaired, where would i go (Staples? BestBuy?)
Is it something I could fix myself?
TIA@harperhp ,
Hello and thank you for posting on the HP support forum. Generally when you experience this issue it is due to a failure of the graphics card.
Does this happen if you try and boot into safe mode?
Entering Safe Mode (Windows 7)
Please post back if you can get into safe mode without this issue. If you have the same problem going into safe mode then you will want to contact HP phone support for repair options. You may not be able to get the parts through third party vendors.
Please call our technical support at 800-474-6836. If you live outside the US/Canada Region, please click the link below to get the support number for your region.
http://www8.hp.com/us/en/contact-hp/ww-phone-assist.html
Thank you again for posting and have a great day.
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 -
Computer Screen Changes Colors
When I open Adobe Acrobat 8 my computer screen changes color and the dots on the screen show. Do you know what setting is wrong?
This is the Reader forum. The Acrobat one is here:
http://forums.adobe.com/community/acrobat -
Screen changes colors after macbook dropped
Yesterday I accidentally dropped my laptop and when trying to recover, the screen changes from alternating full screen colors (red - green - blue and then black and white gradients). I'm guessing this has to do with the graphics but I am not sure if this has happened to anyone else and if there is some sort of reset button.?
That symptom appearing after a drop surely indicates hardware damage so no reset, even if available, is going to help. You'll need to have an Apple Store or Authorized service provider evaluate it. Hopefull it is something small like a damaged display cable but, if the GPU was jarred from its solder joints by the impact (quite likely) the only real cure is a new logic board.
If you have homeowners'/renters' insurance, put your carrier on notice of an accident. many such policies cover repair/replacement after an accident--even outside the home--subject to the usual deductible. -
How to solve screen resolution in bdc
hi experts,
please tell me how to solve screen resolution in bdc.
regards.
subhasisHi,
<b>Pls check other posts in SDN before posting ur thread..there is same thread related to this on this forum on same day.</b>
Screen resolution means different in the screen display depending on ur system screen resolution.
suppose ur system resolution is diff and another's system is different then like in Tcode VA01, there will be 3 lineitems and another there will be 5 lineitems ,
so while doing recording and page down that will bw diff so there will be some problem
So u have to set the screen resolution as default by using CTU parameters..
write this code then
f_option-updmode = 'S'.
f_option-defsize = 'X'.* f
_option-dismode = 'N'.
*call transaction 'VA01' using bdcdata options from f_option messages into bdcerror.
Hope it helps.
Regards,
Sonika
Maybe you are looking for
-
Is it possible to use a variable in the name of other variables?
Trying to avoid a long post; is there some command in Java that would allow a variable to be read before the rest of the statement it is in? For example, using a pair "@" to encapsulate a variable with the mystery command I'm looking for: *public cla
-
I need to know how far past the due date I can go
I lost my job and am able to pay half my bill today and the other half when my first check arrives. How far behind can you be, and do they warn you before they cut your service?
-
S/w from 33MHz to PowerPC 120MHz?
Hi, I have a PowerBook 540 c modified to a PowerPC 120MHz processor. I have a wonderful computer game (called Capitalist Pig) originally purchased for my 33 MHz PowerBook 120. Unfortunately, the game won't run on my PowerBook 150. Is there any way I
-
9.0.5.1: Puzzled by classes in client packages
Currently we're using 9.0.3.3. We started to look into 9.0.5.1. Now, when the migration is done, there are lots of new client packages containing ...Client and ...RowClient classes. This is completely new to us. And we have problems with these classe
-
Remove a terminal command?
Hi guys, I was looking for a command to remove Finder from my dock and I found this... f=/System/Library/CoreServices/Dock.app/Contents/Resources/DockMenus; sudo cp $f.plist $f-old.plist; sudo defaults write $f finder-running -array-add '<dict><key>c