Error in bdc uploading for transaction F-02
Hi all,
Iam uploading transactional data for the transaction F-02 using BDC call transaction.
I have recorded all the screens of F-02 and internal table with fields also declared.
While running the program, it is showing the error saying -- " Input value is longer than screen field "
In debugging, Iam getting all the data from flat file into the internal table.
Iam unable to identify where it has gone wrong.
Can anybody look into it.
Thanks and Regards,
Murali Krishna .T
Moderator message - Please search before asking - post locked
Rob
Similar Messages
-
Hi all,
Can anyone of you provide me complete BDC code for Transaction XD01.
An early reply will be highly appreciated and would be rewarded.
Regards,
NeerajHi Prakash
hope this code will help you.
ABAP BDC SAMPLE CODE XD01
Table/Structure declarations. *
TABLES : KNA1. "Customer master
Constants declarations. *
CONSTANTS : C_MODE VALUE 'A',
C_UPDATE VALUE 'S',
C_X VALUE 'X',
C_SESS TYPE APQI-GROUPID VALUE 'ZCUSTOMER', "Session Name
C_XD01 LIKE TSTC-TCODE VALUE 'XD01'.
Variable declarations. *
DATA : V_FNAME(15) VALUE SPACE, " Name of file to be created
V_FAILREC TYPE I, " No of failed records
V_MSG(255), " Message Text
V_ERRREC TYPE I, " No of failed records
V_LINES TYPE I, " No of records
V_BANKS(15), " Table column BANKS
V_BANKL(15), " Table column BANKL
V_BANKN(15), " Table column BANKN
V_TIDX(2) TYPE N. " Table row index
*-- FLAG DECLARATIONS
DATA : FG_DATA_EXIST VALUE 'X', " Check for data
FG_SESSION_OPEN VALUE ' '. " Check for Session Open
*-- MACRO DEFINITIONS
*-- Macro for BANKS
DEFINE BANKS.
CLEAR V_BANKS.
CONCATENATE 'KNBK-BANKS(' &1 ')' INTO V_BANKS.
CONDENSE V_BANKS.
END-OF-DEFINITION.
*-- Macro for BANKL
DEFINE BANKL.
CLEAR V_BANKL.
CONCATENATE 'KNBK-BANKL(' &1 ')' INTO V_BANKL.
CONDENSE V_BANKL.
END-OF-DEFINITION.
*-- Macro for BANKN
DEFINE BANKN.
CLEAR V_BANKN.
CONCATENATE 'KNBK-BANKN(' &1 ')' INTO V_BANKN.
CONDENSE V_BANKN.
END-OF-DEFINITION.
Structures / Internal table declarations *
*-- Structure to hold BDC data
TYPES : BEGIN OF T_BDCTABLE.
INCLUDE STRUCTURE BDCDATA.
TYPES END OF T_BDCTABLE.
*-- Structure to trap BDC messages
TYPES : BEGIN OF T_MSG.
INCLUDE STRUCTURE BDCMSGCOLL.
TYPES : END OF T_MSG.
*-- Structure to trap ERROR messages
TYPES : BEGIN OF T_ERR_MSG,
MESSAGE(255),
END OF T_ERR_MSG.
*--Internal table to store flat file data
DATA : BEGIN OF IT_KNA1 OCCURS 0,
KUNNR LIKE KNA1-KUNNR,
KTOKD LIKE T077D-KTOKD,
NAME1 LIKE KNA1-NAME1,
SORTL LIKE KNA1-SORTL,
ORT01 LIKE KNA1-ORT01,
PSTLZ LIKE KNA1-PSTLZ,
LAND1 LIKE KNA1-LAND1,
SPRAS LIKE KNA1-SPRAS,
LZONE LIKE KNA1-LZONE,
END OF IT_KNA1.
*--Internal table to store bank details
DATA : BEGIN OF IT_BANK OCCURS 0,
BANKS LIKE KNBK-BANKS,
BANKL LIKE KNBK-BANKL,
BANKN LIKE KNBK-BANKN,
END OF IT_BANK.
*-- Internal table to hold BDC data
DATA: IT_BDCDATA TYPE STANDARD TABLE OF T_BDCTABLE WITH HEADER LINE,
*-- Internal Table to store ALL messages
IT_MSG TYPE STANDARD TABLE OF T_MSG WITH HEADER LINE,
*-- Internal Table to store error messages
IT_ERR_MSG TYPE STANDARD TABLE OF T_ERR_MSG WITH HEADER LINE.
Selection Screen. *
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS : P_FLNAME(15) OBLIGATORY.
SELECTION-SCREEN END OF BLOCK B1.
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : R_LIST RADIOBUTTON GROUP GRP1.
SELECTION-SCREEN COMMENT 5(20) TEXT-003.
PARAMETERS : R_SESS RADIOBUTTON GROUP GRP1.
SELECTION-SCREEN COMMENT 30(20) TEXT-004.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK B2.
Event:Initialization *
INITIALIZATION.
AT Selection Screen. *
AT SELECTION-SCREEN.
Event: Start-of-Selection *
START-OF-SELECTION.
V_FNAME = P_FLNAME.
PERFORM GET_DATA.
PERFORM GET_BANKDATA.
PERFORM GENERATE_DATASET.
Event: End-of-Selection *
END-OF-SELECTION.
IF FG_DATA_EXIST = ' '.
MESSAGE I010 WITH TEXT-009.
EXIT.
ENDIF.
PERFORM GENERATE_BDCDATA.
PERFORM DISPLAY_ERR_RECS.
Event: top-of-page
TOP-OF-PAGE.
FORM DEFINITIONS *
*& Form get_data
Subroutine to get the data from mard
--> p1 text
<-- p2 text
FORM GET_DATA.
CALL FUNCTION 'UPLOAD'
EXPORTING
CODEPAGE = ' '
FILENAME = 'C:\XD01.TXT'
FILETYPE = 'DAT'
ITEM = ' '
FILEMASK_MASK = ' '
FILEMASK_TEXT = ' '
FILETYPE_NO_CHANGE = ' '
FILEMASK_ALL = ' '
FILETYPE_NO_SHOW = ' '
LINE_EXIT = ' '
USER_FORM = ' '
USER_PROG = ' '
SILENT = 'S'
IMPORTING
FILESIZE =
CANCEL =
ACT_FILENAME =
ACT_FILETYPE =
TABLES
DATA_TAB = IT_KNA1
EXCEPTIONS
CONVERSION_ERROR = 1
INVALID_TABLE_WIDTH = 2
INVALID_TYPE = 3
NO_BATCH = 4
UNKNOWN_ERROR = 5
GUI_REFUSE_FILETRANSFER = 6
OTHERS = 7
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 IT_KNA1[] IS INITIAL.
FG_DATA_EXIST = ' '.
ENDIF.
ENDFORM. " get_data
*& Form GENERATE_DATASET
text
--> p1 text
<-- p2 text
FORM GENERATE_DATASET.
MESSAGE I010 WITH 'OPENING FILE IN APPLICATION SERVER'.
**--Creating a data set in application server
OPEN DATASET V_FNAME FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
**---Transfering data from internal table to dataset
MESSAGE I010 WITH 'TRANSFERING DATA FROM INETERAL TABLE TO THE FILE'.
LOOP AT IT_KNA1.
TRANSFER IT_KNA1 TO V_FNAME.
ENDLOOP.
**--Closing the dataset
MESSAGE I010 WITH 'CLOSING THE FILE'.
CLOSE DATASET V_FNAME.
ENDFORM. " GENERATE_DATASET
*& Form BDC_DYNPRO
text
-->P_0467 text
-->P_0468 text
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
text
-->P_0472 text
-->P_0473 text
FORM BDC_FIELD USING FNAM FVAL.
IF NOT FVAL IS INITIAL.
CLEAR IT_BDCDATA.
IT_BDCDATA-FNAM = FNAM.
IT_BDCDATA-FVAL = FVAL.
APPEND IT_BDCDATA.
ENDIF.
ENDFORM.
*& Form GENERATE_BDCDATA
text
--> p1 text
<-- p2 text
FORM GENERATE_BDCDATA.
REFRESH IT_KNA1.
Opening dataset for reading
OPEN DATASET V_FNAME FOR INPUT IN TEXT MODE ENCODING DEFAULT.
Reading the file from application server
DO.
CLEAR: IT_KNA1,IT_BDCDATA.
REFRESH IT_BDCDATA.
READ DATASET V_FNAME INTO IT_KNA1.
IF SY-SUBRC <> 0.
EXIT.
ELSE.
Populate BDC Data for Initial Screen
PERFORM : BDC_DYNPRO USING 'SAPMF02D' '0100',
BDC_FIELD USING 'BDC_CURSOR' 'RF02D-KUNNR',
BDC_FIELD USING 'BDC_OKCODE' '/00',
BDC_FIELD USING 'RF02D-KUNNR' IT_KNA1-KUNNR,
BDC_FIELD USING 'RF02D-KTOKD' IT_KNA1-KTOKD.
Populate BDC Data for Second Screen
PERFORM : BDC_DYNPRO USING 'SAPMF02D' '0110',
BDC_FIELD USING 'BDC_CURSOR' 'KNA1-NAME1',
BDC_FIELD USING 'BDC_OKCODE' '/00',
BDC_FIELD USING 'KNA1-NAME1' IT_KNA1-NAME1,
BDC_FIELD USING 'KNA1-SORTL' IT_KNA1-SORTL,
BDC_FIELD USING 'KNA1-ORT01' IT_KNA1-ORT01,
BDC_FIELD USING 'KNA1-PSTLZ' IT_KNA1-PSTLZ,
BDC_FIELD USING 'KNA1-LAND1' IT_KNA1-LAND1,
BDC_FIELD USING 'KNA1-SPRAS' IT_KNA1-SPRAS.
Populate BDC Data for Third Screen
PERFORM : BDC_DYNPRO USING 'SAPMF02D' '0120',
BDC_FIELD USING 'BDC_CURSOR' 'KNA1-LZONE',
BDC_FIELD USING 'BDC_OKCODE' '/00',
BDC_FIELD USING 'KNA1-LZONE' IT_KNA1-LZONE.
Populate BDC Data for Fourth Screen
PERFORM : BDC_DYNPRO USING 'SAPMF02D' '0125',
BDC_FIELD USING 'BDC_CURSOR' 'KNA1-NIELS',
BDC_FIELD USING 'BDC_OKCODE' '/00'.
Populate BDC Data for Table control for bank details.
V_TIDX = '01'.
LOOP AT IT_BANK.
BANKS V_TIDX.
BANKL V_TIDX.
BANKN V_TIDX.
PERFORM : BDC_DYNPRO USING 'SAPMF02D' '0130',
BDC_FIELD USING 'BDC_CURSOR' V_BANKN,
BDC_FIELD USING 'BDC_OKCODE' '=ENTR',
BDC_FIELD USING V_BANKS IT_BANK-BANKS,
BDC_FIELD USING V_BANKL IT_BANK-BANKL,
BDC_FIELD USING V_BANKN IT_BANK-BANKN.
V_TIDX = V_TIDX + 1.
ENDLOOP.
PERFORM : BDC_DYNPRO USING 'SAPMF02D' '0130',
BDC_FIELD USING 'BDC_CURSOR' V_BANKS,
BDC_FIELD USING 'BDC_OKCODE' '=UPDA'.
CALL TRANSACTION C_XD01 USING IT_BDCDATA
MODE C_MODE
UPDATE C_UPDATE
MESSAGES INTO IT_MSG.
IF SY-SUBRC <> 0.
*--In case of error list display
IF R_LIST = C_X.
V_ERRREC = V_ERRREC + 1.
PERFORM FORMAT_MESSAGE.
IT_ERR_MSG-MESSAGE = V_MSG.
APPEND IT_ERR_MSG.
CLEAR : V_MSG,IT_ERR_MSG.
ENDIF.
*--In case of session log
IF R_SESS = C_X.
*-- In case of transaction fails.
IF FG_SESSION_OPEN = ' '.
FG_SESSION_OPEN = C_X.
PERFORM BDC_OPEN_GROUP.
ENDIF. " IF FG_SESSION_OPEN = ' '.
*-- Insert BDC Data..
PERFORM BDC_INSERT_DATA.
ENDIF. " IF R_SESS = C_X.
ENDIF. " IF SY-SUBRC <> 0.
ENDIF. " IF SY-SUBRC <> 0.
ENDDO.
Closing the dataset
CLOSE DATASET V_FNAME.
*-- Close the session if opened
IF FG_SESSION_OPEN = C_X.
PERFORM BDC_CLOSE_GROUP.
CALL TRANSACTION 'SM35'.
ENDIF.
ENDFORM. " GENERATE_BDCDATA
*& Form BDC_OPEN_GROUP
text
--> p1 text
<-- p2 text
FORM BDC_OPEN_GROUP.
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
CLIENT = SY-MANDT
DEST = FILLER8
GROUP = C_SESS
HOLDDATE = FILLER8
KEEP = C_X
USER = SY-UNAME
RECORD = FILLER1
IMPORTING
QID =
EXCEPTIONS
CLIENT_INVALID = 1
DESTINATION_INVALID = 2
GROUP_INVALID = 3
GROUP_IS_LOCKED = 4
HOLDDATE_INVALID = 5
INTERNAL_ERROR = 6
QUEUE_ERROR = 7
RUNNING = 8
SYSTEM_LOCK_ERROR = 9
USER_INVALID = 10
OTHERS = 11
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. " BDC_OPEN_GROUP
*& Form BDC_INSERT_DATA
text
--> p1 text
<-- p2 text
FORM BDC_INSERT_DATA.
CALL FUNCTION 'BDC_INSERT'
EXPORTING
TCODE = C_XD01
POST_LOCAL = NOVBLOCAL
PRINTING = NOPRINT
TABLES
DYNPROTAB = IT_BDCDATA
EXCEPTIONS
INTERNAL_ERROR = 1
NOT_OPEN = 2
QUEUE_ERROR = 3
TCODE_INVALID = 4
PRINTING_INVALID = 5
POSTING_INVALID = 6
OTHERS = 7
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. " BDC_INSERT_DATA
*& Form BDC_CLOSE_GROUP
text
--> p1 text
<-- p2 text
FORM BDC_CLOSE_GROUP.
CALL FUNCTION 'BDC_CLOSE_GROUP'
EXCEPTIONS
NOT_OPEN = 1
QUEUE_ERROR = 2
OTHERS = 3.
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. " BDC_CLOSE_GROUP
*& Form FORMAT_MESSAGE
text
--> p1 text
<-- p2 text
FORM FORMAT_MESSAGE.
CLEAR V_LINES.
DESCRIBE TABLE IT_MSG LINES V_LINES.
READ TABLE IT_MSG INDEX V_LINES.
CLEAR V_MSG.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
ID = IT_MSG-MSGID
LANG = IT_MSG-MSGSPRA
NO = IT_MSG-MSGNR
V1 = IT_MSG-MSGV1
V2 = IT_MSG-MSGV2
V3 = IT_MSG-MSGV3
V4 = IT_MSG-MSGV4
IMPORTING
MSG = V_MSG
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2.
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. " FORMAT_MESSAGE
*& Form DISPLAY_ERR_RECS
text
--> p1 text
<-- p2 text
FORM DISPLAY_ERR_RECS.
LOOP AT IT_ERR_MSG.
WRITE: / IT_ERR_MSG-MESSAGE.
ENDLOOP.
ENDFORM. " DISPLAY_ERR_RECS
*& Form GET_BANKDATA
text
--> p1 text
<-- p2 text
FORM GET_BANKDATA.
IT_BANK-BANKS = 'AD'.
IT_BANK-BANKL = '1000'.
IT_BANK-BANKN = 'S.B A/C'.
APPEND IT_BANK.
IT_BANK-BANKS = 'AD'.
IT_BANK-BANKL = 'CITY'.
IT_BANK-BANKN = 'CURR. A/C'.
APPEND IT_BANK.
IT_BANK-BANKS = 'AD'.
IT_BANK-BANKL = 'H001'.
IT_BANK-BANKN = 'S.B A/C'.
APPEND IT_BANK.
reward if help. -
Problem in creating a BDC program for transaction cj20n(project sytem)
Hi all,
I am trying to create project,WBS element ,network and activity using a BDC program,
I am able to create to a recording for the transaction cj20n using tcode shdb but when i run the recording it doesnt run properly i am not able to create any thing.
I get error saying that a particular field doesnt exist on the screen.
Is possible to create a BDC program for transaction CJ20N ?
Also is there any other alternative apart from using a BAPI or a function module.
Thanks,
NishantHi,
Check below link for BAPIs of transaction cj20n.
[BAPI for cj20n|BAPI for CJ20N transaction]
Thanks,
Asit Purbey. -
Cancel a SD invoice error message "no authorization for transaction FB08"
Hi Gurus,
I am trying to cancel a SD invoice and am receiving the error message " no authorization for transaction FB08" is coming. Never has this happened in past, i have checked all the security authorizations also and they are in place. Accounting document status is showing as not cleared. Also, as per my understanding cancellation of invoice happens through VF11 which does not calls FB08. Please point out reasons as to why this could be happening and the possible solution thereof.
regards
Anmol PareekHi Anmol
Once you got the error screen, immediately after that goto T code SU53 and expand all link. Take the screen shot and send it to your BASIS team to provide you proper access.
Yes you are correct cancellation is done through VF11 but sometime some programs internally calls other T codes.
take help of your basis team. -
BDC recording for transaction 'Me01'
Hi,
Can u help me in BDC recording for transaction 'ME01' .
I have no idea for transaction 'ME01' .
give sample code if possible.
ThanksFor creating source list you will check that purchasing view has been maintained for this material
Source list for resticting, purcasing a material from a specific vendor only for the period specified in source list
Regards,
Amit R. -
Hi,
I am facing a problem in BDC upload for hr master data tcode pa40.
I want to stop bdc after 3 screens and i dont want to processforthe remaining screens.
Can anyone help me onthis?
Thanks in advance.Hi Anil,
I am regret to you becz i could nt tell thanks because i am full busy of my work.
Thanks a lot.
I have checked with your valuable logic. Now I am processing BDC upto two screens.
Regards,
Sreekanth -
Data Upload for Transaction KE51 through LSMW/BDC
Dear All,
I have a requirement where in i have to upload the customized data for Transaction KE51 and KS01 using LSMW or BDC or BAPI.
Please let me know the best possible procedure to achieve this task and how to do it. What are the validation we need to do etc.
If possible kindly send the screen shots or step by step procedure to do it.
Thanks in Advance.
Full Rewards if Usefull.
Regards
Vikas Badhan.Hi
Actually BDC call transaction methos s very to Upload.
u sit with ur functional consulant and recording ur Tcode.Because he oly know Functionalty based on that u have write ur program.
2. LSMW recording methos also very simply...Record ur Tcode and mapping ur fields orrectely.
Regards:
Prabu -
Uploading for Transaction IA05
Hi,
Does anybody have any idea what are the ways to upload data for transaction IA05 - General Task List. I understand there are LSMW direct inputs 470 and 490, but both of them lead to the same transaction IA01 i.e Equipment Task List.
I have created the BDC for this transaction but there is one problem with that the component data we want should be coming form BOM and while we do the transaction the component that getting selected are not from the BOM but of different category.
Can any please guide on this?
Regards
SaurabhThis requirement is like one-off. Would like to share with the community how it was eventually done as there is no standard functionality like BAPI or even BDC won't work.
This is done by updating the PLMZ table by calling the FM. Stringent validations will have to be performed before calling this FM as there can be a case where there is no Task list is created and there is a entry in PLMZ table which is for Components.
This function is used to record the changes done in IA06.
CALL FUNCTION 'CHANGEDOCUMENT_OPEN'
EXPORTING
objectclass = v_objectclass
objectid = v_objectid
planned_change_number = space
planned_or_real_changes = space
EXCEPTIONS
sequence_invalid = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
v_count = text-075.
This is the main function module that will update the PLMZ table with data from it_plmzf*
CALL FUNCTION 'CM_VB_PLMZ_POST'
EXPORTING
aeb_kz = c_x
count_max = v_count
TABLES
planmz = it_plmzf
plmz_old = it_pplmz.
This function module is used to close the record log opened by 'CHANGEDOCUMENT_OPEN'.
CALL FUNCTION 'CHANGEDOCUMENT_CLOSE'
EXPORTING
date_of_change = sy-datum
objectclass = v_objectclass
objectid = v_objectid
tcode = 'IA06'
time_of_change = sy-uzeit
username = sy-uname
object_change_indicator = c_u
planned_or_real_changes = space
no_change_pointers = space
EXCEPTIONS
header_insert_failed = 1
no_position_inserted = 2
object_invalid = 3
open_missing = 4
position_insert_failed = 5
OTHERS = 6.
Call change document modules to record changes.
This will create the components by passing the task list number and operations.
Saurabh.
Edited by: Saurabh Maynil on Dec 29, 2009 8:00 PM
Edited by: Saurabh Maynil on Dec 29, 2009 8:02 PM -
Need to write BDC program for Transaction VA01(Sales order creation)
Dear Friends,
I need to write a BDC program for uploading data into sap from an excel sheet file. The data contain Material Description,Customer Name,Date of Delivery,Quantity,Unit of measure etc.
material desc customer date of delivery quantity unit of measure
abcdf xyz ltd 24.12.2011 2 4 gm
The transaction is VA01.How will I find the correct fields and related tables? What are the related fields needed in the transaction VA01.
Thanking you
Sacheen Pukhrambam
Moderator Message: Put some self-effort before posting your question. Thread locked.
Edited by: Suhas Saha on Nov 25, 2011 1:25 PMHello,
You could try using a BDC with VL04 but first preference would be to see if there are any BAPI functions (search for BAPI) that can do this.
If BUS2032 doesn't have an attribute that you want (eg shipping point) then sub-delegate to ZBUS2032 and add the attribute, it's straightforward. You just have to know how to determine the value programmatically.
regards
Rick Bakker
hanabi technology -
Problem in BDC recording for transaction /J4I/015W3A
hello all,
i am recording for transaction /J4I/015W3A it has 4 select options if we enter all select options and press enter it will guide to another screen which has table control . i need the fill the entries there also and save the recording.
i have completed recording with all the steps.
if i try to run the report with this recording the problem is that the first screen the entries which i have entered in select options are not defaulted and instead first enter okcode is getting triggered as there are no values on select options and enter is triggered an error message is displayed saying enter all the values .
how can i over come this problem...........?hi,
while recording, ok code will come first, for each screen you have to kept ok code at last .
This will work.
regards,
pavan -
Uploads for transaction MC62 change planning & MC94 cosistent planning
Hi
Has anyone have code for upload program code for
1) (Changing Planning Hierarchy) MC62 for a particular infostructure my case S504 & i want to upload for hierarchy like season_category, promotion, catalog, generic article, variant article,site ..or any relevant to MC62.. is there any BAPI's, FM, or by copy LIS management
2) MC94 change plan (consistent planning).. This is a matrix upload in my case is weekly 52 column against in my case for
a) sales at cost
b) sales qty
c) actual sales qty
d) avg selling price
e) lost sales qty
f) return qty
or any relevant to transaction MC94..
is there any BAPI's, FM, or by copy LIS management
Can anyone provide me the codes pls..
THanx
TonyHello, please click the link below.
WANTED: Function Module (Product Allocation Planning Hierarchy Upload Tool) -
Error in BDC program for Block vendor in SAP R/3
Hello friends,
I wrote a BDC program to block vendor using FK02.
When I debug the program in <b>No screen</b> mode
the program gives a error 'No batch input data for screen SAPMSSY3 0131.
But the screen name and screen number is not available in the program.
When I execute without debugging in No screen mode, the program works correctly.
When I run in ALL screen mode, the program works correctly and the program does not prompt for SAPMSSY3 0131 screen.
Is there any solution for this problem.check this
... MODE mode
Effect
The processing mode can take the following values:
'A' Display screen
'E' Display only if an error occurs
'N' Do not display
<b>'P' Do not display; debugging possible</b>
If the MODE addition is omitted, then the processing mode is 'A'.
If a screen is displayed in processing mode 'E' because the system reached the end of the BDC data, the system automatically switches to processing mode 'A'.
If breakpoints are set in a transaction tcod called using the CALL TRANSACTION tcod USING itab variant, these are not actually reached in 'N' mode. The system tries to insert data in the Debugger screen; the call ends with SY-SUBRC = 1001 and the message "Batch input data is not available for screen SAPMSSY3 0131" (S 00 344).
Conversely, in 'P' mode, transaction screens are processed in the background (as in 'N' mode) and debugging is possible.
Regards
Prabhu -
Error in BDC of F110 transaction?
Hi,
I am getting an error during the execution of the BDC in foreground Mode which is "Field F110O-XPOS1(7) doesnot exist in the screen SAPF110O1003".
This appears when i am trying to edit a payment proposal using BDC .
Codes used in the main program are :
PERFORM F4312_BDC_FIELD USING 'BDC_CURSOR' 'F110O-XPOS1(07)'.
PERFORM F4312_BDC_FIELD USING 'BDC_OKCODE' '=PI'.
PERFORM F4312_BDC_FIELD USING 'F110O-ABPOS' '1'.
PERFORM F4312_BDC_FIELD USING 'F110O-XPOS1(01)' ''.
PERFORM F4312_BDC_FIELD USING 'F110O-XPOS1(07)' 'X'.
Is it possible that the screen feild name has changed from server to server because these codes are copied from old server to new one?Hi,
This is my sample code for F110 BDC: This is a automated process for which we have written code.
REPORT YF110_SAMPLE .
tables: lfa1,
t001,
t042z,
varid.
DATA: i_bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE.
DATA: messtab TYPE TABLE OF bdcmsgcoll WITH HEADER LINE.
DATA: po_date LIKE sy-datum.
DATA: p_next LIKE sy-datum.
DATA: p_run1(10),po_date1(10), p_next1(10).
DATA: ws_laufd LIKE reguh-laufd,
ws_laufi LIKE reguh-laufi.
data: p_dele value space.
data: ws_lines.
SELECTION-SCREEN: BEGIN OF BLOCK blk1 WITH FRAME.
PARAMETERS: p_run LIKE sy-datum obligatory.
SELECTION-SCREEN: END OF BLOCK blk1.
selection-screen: begin of block blk2 with frame .
parameters: p_runid like reguh-laufi obligatory,
p_land1 like t005-land1 obligatory.
*select-options: p_bukrs for t001-bukrs no intervals obligatory.
parameters: p_bukrs like t001-bukrs obligatory.
parameters: p_hbkid like t012-hbkid ,
p_hktid like t012k-hktid ,
p_waers like tcurc-waers .
*select-options: p_rzawe for t042z-zlsch no intervals obligatory,
p_fvari for varid-variant no intervals obligatory.
parameters: p_rzawe like t042z-zlsch obligatory,
p_FVARI like varid-variant obligatory.
matchcode object zfvari1.
selection-screen: end of block blk2.
*SELECTION-SCREEN: BEGIN OF BLOCK blk3.
*PARAMETERS: p_dele AS CHECKBOX ."modif id DE.
*SELECTION-SCREEN: END OF BLOCK blk3.
*at selection-screen output.
loop at screen.
if screen-group1 = 'A1'.
screen-input = '1'.
modify screen.
endif.
if screen-group1 = 'DE'.
screen-active = '0'.
modify screen.
endif.
endloop.
start-of-selection.
ws_laufd = p_run.
po_date = sy-datum. "p_run .
perform get_next_date using po_date
changing p_next.
p_next = p_run + 30.
CONCATENATE p_run4(2) p_run6(2) p_run+0(4) INTO p_run1
SEPARATED BY '/'.
CONCATENATE po_date4(2) po_date6(2) po_date+0(4) INTO po_date1
SEPARATED BY '/'.
CONCATENATE p_next4(2) p_next6(2) p_next+0(4) INTO p_next1
SEPARATED BY '/'.
REFRESH messtab.
CLEAR messtab.
IF p_dele <> 'X'.
PERFORM bdc_data USING:
'X' 'SAPF110V' '0200',
' ' 'BDC_CURSOR' 'F110V-LAUFI',
' ' 'BDC_OKCODE' '=PAR',
' ' 'F110V-LAUFD' p_run1,
' ' 'F110V-LAUFI' p_runid,
'X' 'SAPF110V' '0200',
' ' 'BDC_OKCODE' '=LOG',
' ' 'BDC_CURSOR' 'F110V-VONKK',
' ' 'F110C-BUDAT' po_date1,
' ' 'F110C-GRDAT' po_date1,
' ' 'F110V-VONKK' s_vendor-low,
' ' 'F110V-BISKK' s_vendor-high,
' ' 'F110V-BUKLS(01)' p_bukrs,
' ' 'F110V-ZWELS(01)' p_rzawe,
' ' 'F110V-NEDAT(01)' p_next1,
'X' 'SAPF110V' '0200',
' ' 'BDC_OKCODE' '=PRI',
' ' 'BDC_CURSOR' 'F110V-VONKK(01)',
' ' 'F110V-XTRFA' 'X',
' ' 'F110V-XTRZW' 'X',
' ' 'F110V-XTRBL' 'X',
' ' 'F110V-VONKK(01)' s_vendor-low,
' ' 'F110V-BISKK(01)' s_vendor-high,
'X' 'SAPF110V' '0200',
' ' 'BDC_OKCODE' '=STA',
' ' 'BDC_CURSOR' 'F110V-VARI1(03)',
' ' 'F110V-VARI1(03)' p_fvari,
"'ZFID0060RWA218',
'X' 'SAPLSPO1' '0100',
' ' 'BDC_OKCODE' '=YES',
'X' 'SAPF110V' '0200',
' ' 'BDC_OKCODE' '/EBCK'.
'X' 'SAPF110V' '0200',
' ' 'BDC_OKCODE' '=SICH',
'X' 'SAPF110V' '0200',
' ' 'BDC_OKCODE' '/EBCK',
'X' 'SAPF110V' '0200',
' ' 'BDC_OKCODE' '/EBCK'.
'X' 'SAPLSPO1' '0100',
' ' 'BDC_OKCODE' '=YES'.
'X' 'SAPF110V' '0200',
' ' 'BDC_CURSOR' 'F110V-LAUFD',
' ' 'BDC_OKCODE' '=VOEX',
' ' 'F110V-LAUFD' p_run1,
' ' 'F110V-LAUFI' p_runid,
'X' 'SAPF110V' '1106',
' ' 'BDC_CURSOR' 'F110V-STRDT',
' ' 'BDC_OKCODE' '=EP',
' ' 'F110V-STRDT' p_run1,
' ' 'F110V-XSTRF' 'X',
' ' 'F110V-STRZT' '00:00:00'.
FREE MEMORY.
CALL TRANSACTION 'F110' USING i_bdcdata MODE 'A'
UPDATE 'S'
MESSAGES INTO messtab.
break-point.
if sy-subrc = 0.
CALL FUNCTION 'SCHEDULE_PAYMENT_PROPOSAL'
EXPORTING
i_laufd = p_run
i_laufi = p_runid
I_STRDT = sy-datum
I_STRZT =
I_XSTRF = 'X'
I_BHOST =
I_INKEY =
I_PTYPE = 1
I_CALLREP =
I_CALLVAR =
EXCEPTIONS
STARTDATE_WRONG = 1
PARAMETERS_MISSED = 2
LOCK_FAILED = 3
JOB_OPEN_FAILED = 4
JOB_CLOSE_FAILED = 5
OTHERS = 6 .
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
write:/ 'Proposal Successfully Generated..'.
refresh i_bdcdata. clear i_bdcdata.
perform bdc_data using: 'X' 'SAPF110V' '0200',
' ' 'BDC_CURSOR' 'F110V-LAUFD',
' ' 'BDC_OKCODE' '=ZAEX',
' ' 'F110V-LAUFD' p_run1,
' ' 'F110V-LAUFI' p_runid,
'X' 'SAPLSPO1' '0100',
' ' 'BDC_OKCODE' '=YES',
'X' 'SAPF110V' '1106',
' ' 'BDC_CURSOR' 'F110V-XSTRF',
' ' 'BDC_OKCODE' '=EP',
' ' 'F110V-STRDT' p_run1,
' ' 'F110V-XSTRF' 'X',
' ' 'F110V-STRZT' '00:00:00',
' ' 'F110V-XMITD' 'X'.
break-point.
CALL TRANSACTION 'F110' USING i_bdcdata MODE 'A'
UPDATE 'S'
MESSAGES INTO messtab.
if sy-subrc = 0.
write:/ 'Payment Run Scheduled'.
endif.
endif.
endloop.
SELECT single laufd laufi INTO (ws_laufd,ws_laufi) FROM reguh
WHERE laufd = p_run
AND laufi = p_runid
AND xvorl = 'X'.
IF sy-subrc <> 0.
WRITE:/ 'Error in Proposal Run',p_runid,' dated ',p_run.
ENDIF.
ELSE.
CALL FUNCTION 'DELETE_PAYMENT_PROPOSAL'
EXPORTING
date = p_run
identification = p_runid
I_DATUM =
EXCEPTIONS
ABNORMAL_END = 1
NO_DELETE_AUTHORITY = 2
OTHERS = 3
if sy-subrc = 0.
write:/ 'Proposal ',p_runid, ' Successfully deleted.'.
endif.
ENDIF.
Form
FORM bdc_data USING a
b
c.
CLEAR: i_bdcdata.
IF a = 'X'.
i_bdcdata-program = b.
i_bdcdata-dynpro = c.
i_bdcdata-dynbegin = 'X'.
ELSE.
i_bdcdata-fnam = b.
i_bdcdata-fval = c.
ENDIF.
APPEND: i_bdcdata.
ENDFORM.
*& Form get_next_date
FORM get_next_date USING PO_DATE
CHANGING P_NEXT.
data: i type i,
p_date like sy-datum.
i = 0.
p_date = po_date.
while i <= 4.
p_date = p_date + 1.
CALL FUNCTION 'DATE_CHECK_WORKINGDAY'
EXPORTING
DATE = p_date
FACTORY_CALENDAR_ID = 'WY'
MESSAGE_TYPE = 'E'
EXCEPTIONS
DATE_AFTER_RANGE = 1
DATE_BEFORE_RANGE = 2
DATE_INVALID = 3
DATE_NO_WORKINGDAY = 4
FACTORY_CALENDAR_NOT_FOUND = 5
MESSAGE_TYPE_INVALID = 6
OTHERS = 7 .
IF SY-SUBRC <> 0.
continue.
else.
i = i + 1.
ENDIF.
endwhile.
p_next = p_date.
ENDFORM. " get_next_date
Regards
Subramanian -
Error when creating Service for transaction in SICF.
Hi,
I created a Transaction, and for this transaction transaction I am trying to create a service for this transaction using SICF transaction.
but after creagting service when I am doing test service I am gettging error follwoing message - can any one please let me know how to solve this issue.
The following error text was processed in the system DP2 : Communication failure
The error occurred on the application server dp2dca0u_DP2_01 and in the work process 0 .
The termination type was: IMC_CANCEL_TX
The ABAP call stack was:
Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_HTTP_EXT_ITS===============CP
Method: EXECUTE_REQUEST of program CL_HTTP_SERVER================CP
Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
Module: %_HTTP_START of program SAPMHTTP
Thanks.
Rajesh.Hi,
First you need to publish your service which you would get from the dropdown fro utilities->setting->its->publish.
Also check in transaction SICF whether your serivce is actiavted- else activate the same. you can find your serivice under the following path
default_host/sap/bc/gui/sap/its/
ITS Debugger
http://help.sap.com/saphelp_47x200/helpdata/en/5f/1fbd2f4aee11d189740000e8322d00/frameset.htm
Debugging Flow Logic Applications
http://help.sap.com/saphelp_47x200/helpdata/en/d1/7033b4ae5d11d3806500c04f99fbf0/frameset.htm
~rfcDebugging
http://help.sap.com/saphelp_47x200/helpdata/en/5f/1fbbb14aee11d189740000e8322d00/frameset.htm
Debugging WebRFC Applications
http://help.sap.com/saphelp_47x200/helpdata/en/2b/d9211d4b8a11d1894c0000e8323c4f/frameset.htm
Hope that helps,
Regards,
Gopal
Edited by: Gopal on Oct 30, 2008 3:23 PM -
Error in application log for transaction FPSA
Dear Colleagues,
The application log for this transaction returns the following message,
'Run SELA 15.01.2008 V00001 is not ready
Message no. >REP 014
Diagnosis
The run was probably terminated as a result of an error
System Response
The interval was not processed.'
How to view the error which resulted in termination of the run.
Many thanks for your attention. Hoping an early reply to this problem
Venkat
+49 175 8916067Hi,
If agent is installed on the VMM server, it will collect the information and send it to SCOM server. The event indicates the SCOM agent tried to access the registry key that was included in the User Profile but failed.
Please specify a local account or domain account as the SCOM action account for a test.
Niki Han
TechNet Community Support
Maybe you are looking for
-
What do these represent in r/3 and bi
Hi experts, Can anyone please explain me what exactly the below fields in inventory cube 0ic_c03 represent in R/3 and in BI : Value Received into Valuated Stock Value of valuated stock Value issued from valuated stock Issue quantity: blocked stock Is
-
How can scripts and smart forms send to mail and pdf?
HI i want to know how script and smartforms will send to mail and pdf formates>?
-
Adobe Forms Central unable to export to excel
Hi when I start to export to excel 'Internet Explorer' crashes. We've not had problems before can you help.
-
I use lion 10.7.2 and iPhoto latest version but when I export a slide show when I play it . It plays about half of the slide show and screen become white ? How can I solve it ? Is it bug or my computer problem
-
Forms install: 90201iDS_Win32.exe is not a vaild Windows NT application.
I am trying to install Forms for evaluation (on Windows NT). I followed the instructions on http://otn.oracle.com/software/products/ids/htdocs/formssoft.html but after Step 3 got an error dialog: "90201iDS_Win32.exe is not a vaild Windows NT applicat