Bdc for material schedule update for me38. i try below code but its log shows it is changed and when i go to trnsaction me38
REPORT zbdc_me38
NO STANDARD PAGE HEADING LINE-SIZE 255.
*include bdcrecx1.
*parameters: dataset(132) lower case.
*** DO NOT CHANGE - the generated data section - DO NOT CHANGE ***
* If it is nessesary to change the data section use the rules:
* 1.) Each definition of a field exists of two lines
* 2.) The first line shows exactly the comment
* '* data element: ' followed with the data element
* which describes the field.
* If you don't have a data element use the
* comment without a data element name
* 3.) The second line shows the fieldname of the
* structure, the fieldname must consist of
* a fieldname and optional the character '_' and
* three numbers and the field length in brackets
* 4.) Each field must be type C.
*** Generated data section with specific formatting - DO NOT CHANGE ***
DATA: file_path TYPE string.
DATA:
l_log_handle TYPE balloghndl,
l_s_log TYPE bal_s_log,
l_s_msg TYPE bal_s_msg,
l_msgno TYPE symsgno.
DATA: i_bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE.
* messages of call transaction
DATA: MESSTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
* error session opened (' ' or 'X')
DATA: E_GROUP_OPENED.
* message texts
TABLES: T100.
DATA: BEGIN OF record OCCURS 0,
* data element: EVRTN
EVRTN_001(010),
* data element: AUFEP
EBELP_002(005),
* data element: TCSELFLAG
TCSELFLAG_01_003(001),
* data element: ETNR1
ETNR1_004(004),
* data element: LPEIN
LPEIN_02_005(001),
* data element: EEIND
EEIND_02_006(010),
* data element: ETMEN
MENGE_02_007(017),
* data element: ETNR1
ETNR1_008(004),
END OF record.
START-OF-SELECTION.
SELECTION-SCREEN BEGIN OF BLOCK mode WITH FRAME TITLE text-003.
PARAMETERS: file_url TYPE rlgrap-filename MODIF ID xyz .
SELECTION-SCREEN END OF BLOCK mode .
INITIALIZATION.
PERFORM log_create.
*PARAMETERS: dataset(132) lower case.
*perform open_dataset using dataset.
*Uploading data from the local file C:\MSchedule.txt
*CALL FUNCTION 'WS_UPLOAD'
* EXPORTING
* FILENAME = 'C:\MSCHEDULE.TXT'
* FILETYPE = 'DAT'
* TABLES
* data_tab = I_BDCDATA .
*IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*ENDIF.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR file_url.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
field_name = ''
IMPORTING
file_name = file_url.
start-of-selection.
IF NOT file_url IS INITIAL.
MOVE file_url TO file_path.
PERFORM read_file.
ENDIF.
LOOP AT record. "Filling the BDC table with data
*read dataset dataset into record.
perform bdc_dynpro using 'SAPMM06E' '0205'.
perform bdc_field using 'BDC_CURSOR'
'RM06E-EVRTN'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RM06E-EVRTN'
record-EVRTN_001.
perform bdc_dynpro using 'SAPMM06E' '0222'.
perform bdc_field using 'BDC_CURSOR'
'RM06E-EVRTP(01)'.
perform bdc_field using 'BDC_OKCODE'
'=ET'.
perform bdc_field using 'RM06E-EBELP'
record-EBELP_002.
perform bdc_field using 'RM06E-TCSELFLAG(01)'
record-TCSELFLAG_01_003.
perform bdc_dynpro using 'SAPMM06E' '1117'.
perform bdc_field using 'BDC_CURSOR'
'EKET-MENGE(02)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RM06E-ETNR1'
record-ETNR1_004.
perform bdc_field using 'RM06E-LPEIN(02)'
record-LPEIN_02_005.
perform bdc_field using 'RM06E-EEIND(02)'
record-EEIND_02_006.
perform bdc_field using 'EKET-MENGE(02)'
record-MENGE_02_007.
perform bdc_dynpro using 'SAPMM06E' '1117'.
perform bdc_field using 'BDC_CURSOR'
'RM06E-LPEIN(02)'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.
perform bdc_field using 'RM06E-ETNR1'
record-ETNR1_008.
perform bdc_dynpro using 'SAPLSPO1' '0300'.
perform bdc_field using 'BDC_OKCODE'
'=YES'.
perform bdc_transaction using 'ME38'.
*perform bdc_dynpro using 'SAPMM06E' '0205'.
*perform bdc_field using 'BDC_CURSOR'
* 'RM06E-EVRTN'.
*perform bdc_field using 'BDC_OKCODE'
* '/00'.
*perform bdc_field using 'RM06E-EVRTN'
* record-EVRTN_001.
*perform bdc_dynpro using 'SAPMM06E' '0222'.
*perform bdc_field using 'BDC_CURSOR'
* 'RM06E-EVRTP(01)'.
*perform bdc_field using 'BDC_OKCODE'
* '=ET'.
*perform bdc_field using 'RM06E-EBELP'
* record-EBELP_002.
*perform bdc_field using 'RM06E-TCSELFLAG(01)'
* record-TCSELFLAG_01_003.
*perform bdc_dynpro using 'SAPMM06E' '1117'.
*perform bdc_field using 'BDC_CURSOR'
* 'EKET-MENGE(02)'.
*perform bdc_field using 'BDC_OKCODE'
* '/00'.
*perform bdc_field using 'RM06E-ETNR1'
* record-ETNR1_004.
*perform bdc_field using 'RM06E-LPEIN(02)'
* record-LPEIN_02_005.
*perform bdc_field using 'RM06E-EEIND(02)'
* record-EEIND_02_006.
*perform bdc_field using 'EKET-MENGE(02)'
* record-MENGE_02_007.
*perform bdc_dynpro using 'SAPMM06E' '1117'.
*perform bdc_field using 'BDC_CURSOR'
* 'RM06E-LPEIN(02)'.
*perform bdc_field using 'BDC_OKCODE'
* '=BU'.
*perform bdc_field using 'RM06E-ETNR1'
* record-ETNR1_008.
*perform bdc_dynpro using 'SAPLSPO1' '0300'.
*perform bdc_field using 'BDC_OKCODE'
* '=YES'.
*perform bdc_transaction using 'ME38'.
WAIT UP TO 2 SECONDS.
clear i_bdcdata[].
CLEAR record.
ENDLOOP.
perform log_show.
*& Form BDC_DYNPRO
* text
* -->PROGRAM text
* -->DYNPRO text
FORM bdc_dynpro USING program dynpro.
CLEAR i_bdcdata.
i_bdcdata-program = program.
i_bdcdata-dynpro = dynpro.
i_bdcdata-dynbegin = 'X'.
APPEND i_bdcdata.
ENDFORM. "BDC_DYNPRO
**& Form BDC_FIELD
** text
** -->FNAM text
** -->FVAL text
FORM bdc_field USING fnam fval.
CLEAR i_bdcdata.
i_bdcdata-fnam = fnam.
i_bdcdata-fval = fval.
APPEND i_bdcdata.
ENDFORM. "BDC_FIELD
*& Form BDC_TRANSACTION
* text
* -->TCODE text
FORM bdc_transaction USING tc TYPE sy-tcode.
DATA tcode LIKE tstc-tcode.
* tcode = 'ME38'.
CALL TRANSACTION tc USING i_bdcdata
MODE 'E' " modes can A = step by step foreground.
" mode N = background direct.
" mode E = using error display.
MESSAGES INTO messtab.
PERFORM msg_generation.
ENDFORM. "BDC_TRANSACTION
FORM read_file .
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = file_path
filetype = 'ASC'
has_field_separator = 'X'
* HEADER_LENGTH = 0
read_by_line = 'X'
* DAT_MODE = ' '
* CODEPAGE = ' '
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* CHECK_BOM = ' '
* IMPORTING
* FILELENGTH =
* HEADER =
TABLES
data_tab = record
* EXCEPTIONS
* FILE_OPEN_ERROR = 1
* FILE_READ_ERROR = 2
* NO_BATCH = 3
* GUI_REFUSE_FILETRANSFER = 4
* INVALID_TYPE = 5
* NO_AUTHORITY = 6
* UNKNOWN_ERROR = 7
* BAD_DATA_FORMAT = 8
* HEADER_NOT_ALLOWED = 9
* SEPARATOR_NOT_ALLOWED = 10
* HEADER_TOO_LONG = 11
* UNKNOWN_DP_ERROR = 12
* ACCESS_DENIED = 13
* DP_OUT_OF_MEMORY = 14
* DISK_FULL = 15
* DP_TIMEOUT = 16
* OTHERS = 17
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " read_file
*& Form msg_generation
* text
* --> p1 text
* <-- p2 text
FORM msg_generation .
DATA: l_mstring(480).
DATA: l_subrc LIKE sy-subrc.
DATA: l_error TYPE c.
LOOP AT messtab.
* add message to log file
CLEAR l_s_msg.
l_s_msg-msgty = messtab-msgtyp.
l_s_msg-msgid = messtab-msgid.
l_s_msg-msgno = messtab-msgnr.
l_s_msg-msgv1 = messtab-msgv1.
l_s_msg-msgv2 = messtab-msgv2.
l_s_msg-msgv3 = messtab-msgv3.
l_s_msg-msgv4 = messtab-msgv4.
CALL FUNCTION 'BAL_LOG_MSG_ADD'
EXPORTING
i_log_handle = l_log_handle
i_s_msg = l_s_msg
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
IF messtab-msgtyp EQ 'E' OR l_subrc NE 0.
l_error = 'X'.
ENDIF.
ENDLOOP.
CLEAR messtab[].
ENDFORM. " msg_generation
*& Form log_create
* text
* --> p1 text
* <-- p2 text
FORM log_create .
CALL FUNCTION 'BAL_LOG_CREATE'
EXPORTING
i_s_log = l_s_log
IMPORTING
e_log_handle = l_log_handle
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " log_create
*& Form log_show
* text
* --> p1 text
* <-- p2 text
FORM log_show .
DATA:
l_s_display_profile TYPE bal_s_prof.
* get a prepared profile
CALL FUNCTION 'BAL_DSP_PROFILE_SINGLE_LOG_GET'
IMPORTING
e_s_display_profile = l_s_display_profile
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
* use grid for display if wanted
l_s_display_profile-use_grid = 'X'.
* set report to allow saving of variants
l_s_display_profile-disvariant-report = sy-repid.
* when you use also other ALV lists in your report,
* please specify a handle to distinguish between the display
* variants of these different lists, e.g:
l_s_display_profile-disvariant-handle = 'LOG'.
* call display function module
* We do not specify any filter (like I_S_LOG_FILTER, ...,
* I_T_MSG_HANDLE) since we want to display all logs available
CALL FUNCTION 'BAL_DSP_LOG_DISPLAY'
EXPORTING
i_s_display_profile = l_s_display_profile
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " log_show
It's not possible to delete an iCloud account.
You can turn off the services, but that doesn't delete the account.
Similar Messages
-
I want to download the new updates I think to the 10.9 but our mac was given to us and when it comes to the last page it asks for the user name and password but this mac was wiped clean. How do I find out this info so I can get iPhoto? To be honest I'm not even sure what type of Mac I have and don't know how to find out what kind it is
I'd also like to make address labels and don't know where to find that eitherYou would make address lables with the Contacts app.
If you don't have the user name and password used to set up the machine then you need to purchase the apps for yourself. -
My Verizon Cloud says "Content is pending for backup" and (Update pending), but it's been doing this for over a day now. The number of photos hasn't changed and I have 26GB of space. What's going on?
Tinigal2112,
We want to make sure your photos are backed up successfully! Have you tried to stop the process and start it again? You can stop the process by stopping the Cloud and backup process completely in Settings>Applications>All>Verizon Cloud>Force stop. One it has stopped make sure you care connected to WiFi and try the backup again.
LindseyT_VZW
Follow us on Twitter @VZWSupport -
I have 2 Macbooks each with an account for me and one for my wife. I use one Macbook logged in with my account and my wife uses the other Macbook only logged in on her account. We both make regular time-machine back-ups each on a separate external disk. Is it possible to update her account on my macbook using her external disk without overwriting my stuff on the same Macbook and vice versa?
Time Machine does not do individual accounts. It records the complete drive. So if you were to use her TM backup on your Mac it would make your Mac just like hers. Both yours and her account on your MAC.
Just copy the missing files over from her Mac to yours. If there are differennt programs on each then they would need to be installed on both. -
I use lightroom with the soft proofing feature for my printing. I used to make a copy proof, but all of the sudden something changed, and even if I'm on the copy in the developing mode it prints the original. Also, If i chose a file that was already in light room to print, even though I have the chosen file up in the developing mode, it will instead print the most recent file that I added to lightroom. If found a way to work around these problems, (check make this the copy in the soft proofing, and copy my settings and delete and reload the old files) but it's a slight hassle and it didn't use to do this. Not sure why it changed. Could I have accidentally changed a setting?
See
iOS: Device not recognized in iTunes for Windows
- I would start with
Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
or
Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
However, after your remove the Apple software components also remove the iCloud Control Panel via Windows Programs and Features app in the Window Control Panel. Then reinstall all the Apple software components
- Then do the other actions of:
iOS: Device not recognized in iTunes for Windows
paying special attention to item #5
- New cable and different USB port
- Run this and see if the results help with determine the cause
iTunes for Windows: Device Sync Tests
Also see:
iPod not recognised by windows iTunes
Troubleshooting issues with iTunes for Windows updates
- Try on another computer to help determine if computer or iPod problem -
Trying to install FF 4 beta 2 for Maemo 5 on my N900 but it still shows as 1.1.
Trying to install FF 4 beta 2 for Maemo 5 on my N900 but it still shows as 1.1. Uninstalled, removed all Mozilla repositories, rebooted, sufed back to firefox.com/m/beta and clicked the install link. The N900 switched over to my app manager and re-installed the beta repository then tried to download/install 1.1.
Has the repository been updated for beta 2?There's a problem with the Maemo application manager that causes it to always use the version in the Ovi Store, even if you try to install a newer version from a different source. For a possible solution, see http://talk.maemo.org/showthread.php?t=63508
-
i enter too many times a wrong pasword and it lock for 23,465,444 minutes and i try to reset but its not hapening
Locked Out, Forgot Lock or Restrictions Passcode, or Need to Restore Your Device: Several Alternative Solutions
A
1. iOS- Forgotten passcode or device disabled after entering wrong passcode
2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
3. Restoring iPod touch after forgotten passcode
4. What to Do If You've Forgotten Your iPhone's Passcode
5. iOS- Understanding passcodes
6. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
7. iOS - Unable to update or restore
Forgotten Restrictions Passcode Help
iPad,iPod,iPod Touch Recovery Mode
You will need to restore your device as New to remove a Restrictions passcode. Go through the normal process to restore your device, but when you see the options to restore as New or from a backup, be sure to choose New.
You can restore from a backup if you have one from BEFORE you set the restrictions passcode.
Also, see iTunes- Restoring iOS software. -
My itunes 11 Home sharing is not working with my windows 7 PC and iPad it shows up on iPad and when I go to share the music app does loading for 3 mins and crashes I am using a virgin super hub router please please please help
My itunes 11 Home sharing is not working with my windows 7 PC and iPad it shows up on iPad and when I go to share the music app does loading for 3 mins and crashes I am using a virgin super hub router please please please help
-
I changed my email address for my apple id but icloud still has old email adress and when I try to signout so I can sign in with new address it asks for password and then says invalid so I cannot delete the account to sign in with the new one! Please help
OK...now I appear to 'progressed' I changed my email address back to original on Apple id and then was able to delete icloud account. Apparently I couldnt do it as it kept requesting password when I entered passsword ( both old and new one, it wouldnt accept it as it had my old email address in ) It didnt do that on ios6 . Anyway I deleted account, but now I tried to login in with my new id/password and it says unable as already in use!!! More help needed please! Its a nightmare!!
-
I just bought the new HDMI cord for the IPad, it works good but a small potion of the TOP and the BOTTOM is cut off. It doesn't seem to do it for movies(although I can't really tell. My monitor is a 23 IN' acer s series. I just installed the drivers for my monitor with no change. I think I have a CD somewhere for my monitor maybe it has some kind of program in there that can help me. I can post a picture if I need to. Thanks
No work around that I know of.
Apple Feedback http://www.apple.com/feedback/ -
How to purchase apps in App Store? When I am trying to buy those apps, it is asking for my card details. I have entered my debit card number and then it asked for 3 digit security code. I have entered cvv secure code but it is showing an invalid security
Debit cards are no longer accepted in the iTunes Store, it seems. The current valid payment methods are listed here:
http://support.apple.com/kb/HT5552
You can try contacting the iTunes Store and asking if there is any way to use your card, but they probably will tell you that it's not possible.
http://www.apple.com/emea/support/itunes/contact.html
Using a debit card in any online service where it stores your card is a bad idea in any case since if someone gains access to your account in the service, they can quickly drain your bank account. Credit cards limit your liability, as do prepaid iTunes cards.
Regards. -
I can't import MXF files shot on a Canon C300 into FCP 10.1.2. I have the Canon plug in for MXF file to FCP import but FCPX still doesn't recognize MXF files when I try to import. Premiere works fine importing MXF on the same computer. Any help is appreciated.
Russ and Luis,
I did uninstall and re-install Canon XF Utility and the Canon FCPX plug in. Still no luck. I checked the CanonXF64.RADPlug folder is on my computer in the Rad Plugins folder in application support This is where it is supposed to be as far as I can figure out.
Another piece of the puzzle is that footage shot on a Canon C300 in 2013 and I reimported today and it DOES import into FCP10.1.3. Footage shot on a different Canon C300 filmed this summer will NOT import into FCPX. The latter will import into Premiere. But I am trying to work in FCPX, but maybe I shouldn’t be??
Any ideas? (screen shots below)
Thanks.
Peace, Huey
FYI Here is what Canon says
"There is another trick that works sometimes though. Try uninstalling the plugin and XF Utility. Then, install the latest XF Utility, followed by the plugin, in that order."
I did do this but no results. Otherwise they say I need to wait for a new plugin.
Here's 2014 Canon C300 files does NOT import to FCPX
Here's 2013 Canon C300 files does import into FCPX. I thought it was Contents folder but another set of footage shot on C300 does import and there is no contents folder for that. -
HT4245 facetime for mac I can hear caller but my mike is locked on mute and grayed out
facetime for mac I can hear caller but my mike is locked on mute and grayed out. I am on mountain lion 10.8
Double-click the Home button to display recently used apps.
Flick from left to right along the bottom of the screen.
Tap the Mute button on the bottom left of the screen.
A slash will appear across the Mute button: -
For some reason when I plug my ipod into my comp itunes freezes but my ipod says it is plugged and when I plug it into a different comp it works. How can I fix this?
Setesh, See if both computer has the same version of iTunes, if both are the same, then it is your PC, that has plug-ins which is in conflict it iTunes. ( normally it is the Antivirus or some plug-ins to beautify your screen)
If it is different, most likely the other PC has an older version of iTunes, so you should downgrade your iTunes to that older version, which your iPod interface well with.
Other probable causes,
you are using the USB 1.1 port at the front of your PC, and not the USB2,0 port at the back of your PC. so switch to the back.
Dont use any other USB devices, when you are syncing the iPod.
Dont use any USH Hub.
Have a nice day! -
After altering the "Processes" list in Task manager, almost all of my programs show the iTunes icon, and when I click on, for example, Firefox, iTunes will load. Uninstalling iTunes restores the normal loading of other programs, but re-installation of iTunes makes the problem recur. Any answers?
First I'd set up a System Restore point. Then try applying the LNK registry fix from the following document:
File Association Fixes for Windows 7
Does that get your icons back to normal?
Maybe you are looking for
-
Hi, Can I hide a column in select query output? I have a Rank() function in my query for computing other results ,but i don't want to show the Rank() in the result output. Is it possible to hide it? Thanks Harhsini
-
ITunes 7 and downloaded video?
Before upgrading I had downloaded 2 episodes of a tv show from the itunes store which played beautifully. When I went to buy the latest episode, it prompted me to upgrade, and reluctantly I agreed. I downloaded the show I wanted on the new version, a
-
Can anyone guide me through Config steps for By Product cost in detail ? Thanks & Regards Radha
-
SLD Configuration for WEB As JAVA
SDN TEAM, PLease can you send the screen shots for configuring SLD for WEB AS Java For valuable answer definity i will reward points Regards' CHANDU
-
Hi, Unfortunately i've been almost a year out of abap,so its kinda rusty, so pls bear with my question. I've to develop this upload program, which would read from file, but the catchy part is that to filter out the records by either pernr, bukrs, sub