Clarification in BDC
Hi,
Since i am new to ABAP, I need some clarification for the questions which are given below. can any one help me out
1.In call transaction for VA01 transaction in the first screen there are 6 fields but i want to enter only 2 fields & 4 fields in the next screen. So how to skip the filds in the screens.
2.Suppose i have 100 records, if i face error in the 50th record. What will happen to the first 50 records whether it will be updated or again it will start from first. In both call transaction & Session.
3.How you handle error in CALL Transaction.
4. If flat file is given to you for upload, how you find out which delimiter it is, & upload in ITAB.
Thanks in advance,
Prasad
Hi,
Welcome to ABAP. The answers to your questions are:
1. In the table passed for BDC, pass data only for the fields that you want to populate. Other fields will remain initial or pick value from the parameter Id. If you don't want the field to pick up data from the parameter id, then you should pass initial data value for that particular field.
2. In cases the session, SAP will take care of the transactions processed successfully. When you reprocess the session, only the ones in error will be processed.
In case of Call transaction, you have to make your program intelligent enough to skip the transactions already posted. If you don't do that, then every execution of the program will create the orders again (assuming that order number is internal). Also, it depends on you, if you stop after the first error, or post all the 100 records.
3. In case of Call transaction, you can get all the messages back in a table using the option MESSAGES of CALL TRANSACTION. You can go through that to find out if your document posted successfully, or if there were any warning or errors.
4. Since you are writing the program, you can define a field on your report selection screen which tells you what is the delimiter. Other way is to define the file format in such a way that there is a field for delimiter in the file itself.
Hope it helps. Happy ABAPing.
Raj
Similar Messages
-
BDC Session Error Handling and flat fie
Hi ,
I need two clarifications in BDC .......
1)I have to upload some data using BDC thru some tcode which contains header and line items...How can i build a flat file which contains both header and line item data for uploading.. pls explain how to differntiate header and line item in flat file
2) In Session method..while uploading some error has occured..How can i reprocess the error data, whether I need to upload it again or can I process the error data in SM35 itself.
Thanks in advance
Regards
Saravan1) When uploading data is better to ask the flat file with out headers, in case it is impossible, just read the internal table with the data from INDEX 2.
Something like,
LOOP AT IT_DATA FROM INDEX 2.
ENDOOP.
2) It is better to start the process again after checking what happened during last upload.
Bye
Gabriel p.- -
Clarification relating to BDC for MD61 transaction
Hi,
Did any one made any development for MD61 transaction. I am planning to do an BDC for upload of planning data
for the different periods and for different materials. DId any one found any complexities in this development and
how it is suggestible.
I am planning to bring sales quotation data and upload as demand in MD61
Regards
madanHi,
Sales quotations are the proposals & their is not any reference of delivery date that we could take as production finish date i.e material availablity/ promising date in demand manangement.
So, you need to rethink on quotation data & try to fix peiod either month or week or day that could reduce development complexity.
Rgd,
Chetan -
Hi,
I have to upload some data(Material Master data) in flat file into R/3 system.I can do it by using session or call transaction.But I were been insisted to do it by BAPI.
May I know exactly what's the difference between these two approaches and can anyone explain where and when I have to go for BDC and whento BAPI.
This is not an interview question. So, can anyone post the exact answer for this.Hi
Ok.
BDC: is a process of uploading data...as u know already. The BDC mainly works on screen flows...and doing Recording in the right way is very important for BDC. But, For complicated TCODES like MM01, the problem is screen flow and different types of views could really make life miserable for an ABAPer though he is good with it. Once when u assign LOOPS to the subroutines generated from recording, there is every chance of the screen flow getting disturbed.
Also, BDC does not have the flexibility to add a new field later on. You have to do the recording all over again.
Also, During recording if an error occurs...everytime the BDC runs, It disturbs the screen flow which is very annoying.
BAPI: has nothing to do with the screen flow, you just assign parameters into the FM by calling in the program. The BAPI can be accessed from third party systems(one main Advantage which BDC lacks). Actually,the full form of BAPI suggests that it can act as an interface between SAP and non SAP systems.
So, when you work with BAPI...you dont really need to work about the views of MM01 or anything...
Hope this makes it clear for you.
Regards,
Vishwa. -
Problem in BDC for VA01 transaction TEXTS tab(Upgrading from 4.5b to ECC6)
Hi All,
I am working in upgrade project from 4.5b version to ECC6 version.
I am facing problem in TEXTS tab of VA01 transaction. In earlier version it is a table control containing of Language, Description & First line but, in ECC6 the screen is modified with texteditor, a list box for language key and a Text type at the left.
Now my problem is how to record this in BDC and how to read the text in the texteditor?
Thanks in Advance,
Ravi Kiran.Hi Seshagiri,
In this case i would suggest the use of BAPI if there's no compulsion to use BDC.
BAPI_SALESORDER_CHANGE Sales order: Change Sales Order
BAPI_SALESORDER_CONFIRMDELVRY
BAPI_SALESORDER_CREATEFROMDAT1 Sales order: Create Sales Order
BAPI_SALESORDER_CREATEFROMDAT2 Sales order: Create Sales Order
BAPI_SALESORDER_CREATEFROMDATA Create Sales Order, No More
BAPI_SALESORDER_GETLIST Sales order: List of all Orders for Customer
BAPI_SALESORDER_GETSTATUS Sales Order: Display Status
BAPI_SALESORDER_SIMULATE Sales Order: Simulate Sales Order
try using these for creation or change of orders instead of bdcs.
hope this helps and revert for more clarifications if any.
<b>Always reward points to useful suggestions.</b>
regards,
Vikas -
Hi gurur's in BDC for recording other than SHDB any process is there
hi gurur's in BDC for recording other than SHDB any process is there
Hi,
I think as such there is no other process. You can do the recording through transaction SM35 as well, go there and click on new recording. You can do the recording this way also but this is not different from SHDB.
Reward if this clarifies your doubt.
Regards,
Lalit Kabra -
Hi,
For Goods reciept for Kanban material there is transaction called PKBC. Inside this transaction we wrote two BDC's i.e One for MIGO (with only Part1) & J1iex(Capturing & posting the excise invoice). After running this we found that accounting document contains all the entries including Part2. But During MIRO we are not getting excise amount which is payable to the vendor.
Please help me to resolve this. Incase if you need any clarification please ket me know.
Thanks in advance
Regards,
Krishna A S Vwhy r u using two BDC
why dont u use only one and update Part I and Part II at a time
regards,
snb -
Error occured in bdc(session method)
hai,
i was written one bdc program with session method but unfortunatly it's throwing some error like bdc_group is invalid.
this problem happening at when i was going to give the file path through f4 in selection screen it's showing like BDC_OPEN_GROUP, group .. is invalid
iam sending my coding also plz give me the clarifications abt this one.
SESSION METHOD **********************
TYPES : BEGIN OF TY_DATA,
LIFNR TYPE LIFNR,
EKORG TYPE EKORG,
KTOKK TYPE KTOKK,
NAME1 TYPE NAME1_GP,
SORTL TYPE SORTL,
LAND1 TYPE LAND1_GP,
WAERS TYPE BSTWA,
END OF TY_DATA.
DATA : WA_DATA TYPE TY_DATA,
WA_BDCDATA TYPE BDCDATA,
WA_BDCMSGCOLL TYPE BDCMSGCOLL.
DATA : IT_DATA TYPE TABLE OF TY_DATA,
IT_BDCDATA TYPE TABLE OF BDCDATA,
IT_BDCMSGCOLL TYPE TABLE OF BDCMSGCOLL.
DATA : V_FILE TYPE STRING.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETER : PA_FILE LIKE FC03TAB-PL00_FILE, "OBLIGATORY default 'C:\MAHESH\IT_FILE.TXT'
P_GROUP LIKE APQI-GROUPID OBLIGATORY.
SELECTION-SCREEN END OF BLOCK B1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR PA_FILE.
PERFORM GET_F4_FOR_FILE USING PA_FILE.
V_FILE = PA_FILE.
PERFORM UPLOAD_FILE_TO_ITAB USING V_FILE CHANGING IT_DATA.
PERFORM OPEN_SESSION USING P_GROUP.
LOOP AT IT_DATA INTO WA_DATA.
REFRESH IT_BDCDATA.
FIRST SCREEN DETAILS
PERFORM FILL_SCREEN_DETAILS USING 'SAPMF02K' '0107' 'X'.
**** FIELD DETAILS
PERFORM FILL_FIELD_DETAILS USING 'BDC_CURSOR' 'RF02K-KTOKK'.
OK CODES
PERFORM FILL_FIELD_DETAILS USING 'BDC_OKCODE' '/00'.
**** FILED LIFNR
PERFORM FILL_FIELD_DETAILS USING 'RF02K-LIFNR' WA_DATA-LIFNR.
FIELD EKORG
PERFORM FILL_FIELD_DETAILS USING 'RF02K-EKORG' WA_DATA-EKORG.
**** FIELD KTOKK
PERFORM FILL_FIELD_DETAILS USING 'RF02K-KTOKK' WA_DATA-KTOKK.
SECOND SCREEN DETAILS
PERFORM FILL_SCREEN_DETAILS USING 'SAPMF02K' '0110' 'X'.
FIELD CURSOR
PERFORM FILL_FIELD_DETAILS USING 'BDC_CURSOR' 'lfa1-land1'.
OK CODES
PERFORM FILL_FIELD_DETAILS USING 'BDC_OKCODE' '=upda'.
field NAME
PERFORM FILL_FIELD_DETAILS USING 'LFA1-NAME1' WA_DATA-NAME1.
field SORTL
PERFORM FILL_FIELD_DETAILS USING 'LFA1-SORTL' WA_DATA-SORTL.
field LAND1
PERFORM FILL_FIELD_DETAILS USING 'LFA1-LAND1' WA_DATA-LAND1.
THIRD SCREEN DETAILS
PERFORM FILL_SCREEN_DETAILS USING 'SAPMF02K' '0310' 'X'.
FIELD CURSOR
PERFORM FILL_FIELD_DETAILS USING 'BDC_CURSOR' 'LFM1-WAERS'.
OK CODES
PERFORM FILL_FIELD_DETAILS USING 'BDC_OKCODE' '=upda'.
******** field SORTL
PERFORM FILL_FIELD_DETAILS USING 'LFM1-WAERS' WA_DATA-WAERS.
PERFORM BDC_INSERT USING 'MK01' IT_BDCDATA.
ENDLOOP.
PERFORM CLOSE_SESSION.
*& Form GET_F4_FOR_FILE
FORM GET_F4_FOR_FILE USING P_PA_FILE.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
FIELD_NAME = 'PA_FILE'
CHANGING
FILE_NAME = PA_FILE.
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. " GET_F4_FOR_FILE
*& Form UPLOAD_FILE_TO_ITAB
FORM UPLOAD_FILE_TO_ITAB USING FP_V_FILE
CHANGING FP_IT_DATA LIKE IT_DATA.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = FP_V_FILE
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = FP_IT_DATA.
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. " UPLOAD_FILE_TO_ITAB
*& Form OPEN_SESSION
FORM OPEN_SESSION USING FP_P_GROUP.
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
CLIENT = SY-MANDT
DEST = FILLER8
GROUP = FP_P_GROUP
HOLDDATE = FILLER8
KEEP = 'X'
USER = SY-UNAME
IF SY-SUBRC = 0.
WRITE : / 'PROCESS THE SESSION',FP_P_GROUP,'USING SM35'.
ENDIF.
ENDFORM. " OPEN_SESSION
*& Form FILL_SCREEN_DETAILS
FORM FILL_SCREEN_DETAILS USING PROGRAM
DYNPRO
DYNBEGIN.
WA_BDCDATA-PROGRAM = PROGRAM.
WA_BDCDATA-DYNPRO = DYNPRO.
WA_BDCDATA-DYNBEGIN = DYNBEGIN.
APPEND WA_BDCDATA TO IT_BDCDATA.
CLEAR WA_BDCDATA.
ENDFORM. " FILL_SCREEN_DETAILS
*& Form FILL_FIELD_DETAILS
FORM FILL_FIELD_DETAILS USING FNAM FVAL.
WA_BDCDATA-FNAM = FNAM.
WA_BDCDATA-FVAL = FVAL.
APPEND WA_BDCDATA TO IT_BDCDATA.
CLEAR WA_BDCDATA.
ENDFORM. " FILL_FIELD_DETAILS
*& Form BDC_INSERT
FORM BDC_INSERT USING FP_TCODE TYPE SYTCODE
FP_IT_BDCDATA LIKE IT_BDCDATA.
CALL FUNCTION 'BDC_INSERT'
EXPORTING
TCODE = FP_TCODE
TABLES
DYNPROTAB = FP_IT_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.
ENDFORM. " BDC_INSERT
*& Form CLOSE_SESSION
FORM CLOSE_SESSION .
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. " CLOSE_SESSIONhai,
i was written one bdc program with session method but unfortunatly it's throwing some error like bdc_group is invalid.
this problem happening at when i was going to give the file path through f4 in selection screen it's showing like BDC_OPEN_GROUP, group .. is invalid
iam sending my coding also plz give me the clarifications abt this one.
SESSION METHOD **********************
TYPES : BEGIN OF TY_DATA,
LIFNR TYPE LIFNR,
EKORG TYPE EKORG,
KTOKK TYPE KTOKK,
NAME1 TYPE NAME1_GP,
SORTL TYPE SORTL,
LAND1 TYPE LAND1_GP,
WAERS TYPE BSTWA,
END OF TY_DATA.
DATA : WA_DATA TYPE TY_DATA,
WA_BDCDATA TYPE BDCDATA,
WA_BDCMSGCOLL TYPE BDCMSGCOLL.
DATA : IT_DATA TYPE TABLE OF TY_DATA,
IT_BDCDATA TYPE TABLE OF BDCDATA,
IT_BDCMSGCOLL TYPE TABLE OF BDCMSGCOLL.
DATA : V_FILE TYPE STRING.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETER : PA_FILE LIKE FC03TAB-PL00_FILE, "OBLIGATORY default 'C:\MAHESH\IT_FILE.TXT'
P_GROUP LIKE APQI-GROUPID OBLIGATORY.
SELECTION-SCREEN END OF BLOCK B1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR PA_FILE.
PERFORM GET_F4_FOR_FILE USING PA_FILE.
V_FILE = PA_FILE.
PERFORM UPLOAD_FILE_TO_ITAB USING V_FILE CHANGING IT_DATA.
PERFORM OPEN_SESSION USING P_GROUP.
LOOP AT IT_DATA INTO WA_DATA.
REFRESH IT_BDCDATA.
FIRST SCREEN DETAILS
PERFORM FILL_SCREEN_DETAILS USING 'SAPMF02K' '0107' 'X'.
**** FIELD DETAILS
PERFORM FILL_FIELD_DETAILS USING 'BDC_CURSOR' 'RF02K-KTOKK'.
OK CODES
PERFORM FILL_FIELD_DETAILS USING 'BDC_OKCODE' '/00'.
**** FILED LIFNR
PERFORM FILL_FIELD_DETAILS USING 'RF02K-LIFNR' WA_DATA-LIFNR.
FIELD EKORG
PERFORM FILL_FIELD_DETAILS USING 'RF02K-EKORG' WA_DATA-EKORG.
**** FIELD KTOKK
PERFORM FILL_FIELD_DETAILS USING 'RF02K-KTOKK' WA_DATA-KTOKK.
SECOND SCREEN DETAILS
PERFORM FILL_SCREEN_DETAILS USING 'SAPMF02K' '0110' 'X'.
FIELD CURSOR
PERFORM FILL_FIELD_DETAILS USING 'BDC_CURSOR' 'lfa1-land1'.
OK CODES
PERFORM FILL_FIELD_DETAILS USING 'BDC_OKCODE' '=upda'.
field NAME
PERFORM FILL_FIELD_DETAILS USING 'LFA1-NAME1' WA_DATA-NAME1.
field SORTL
PERFORM FILL_FIELD_DETAILS USING 'LFA1-SORTL' WA_DATA-SORTL.
field LAND1
PERFORM FILL_FIELD_DETAILS USING 'LFA1-LAND1' WA_DATA-LAND1.
THIRD SCREEN DETAILS
PERFORM FILL_SCREEN_DETAILS USING 'SAPMF02K' '0310' 'X'.
FIELD CURSOR
PERFORM FILL_FIELD_DETAILS USING 'BDC_CURSOR' 'LFM1-WAERS'.
OK CODES
PERFORM FILL_FIELD_DETAILS USING 'BDC_OKCODE' '=upda'.
******** field SORTL
PERFORM FILL_FIELD_DETAILS USING 'LFM1-WAERS' WA_DATA-WAERS.
PERFORM BDC_INSERT USING 'MK01' IT_BDCDATA.
ENDLOOP.
PERFORM CLOSE_SESSION.
*& Form GET_F4_FOR_FILE
FORM GET_F4_FOR_FILE USING P_PA_FILE.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
FIELD_NAME = 'PA_FILE'
CHANGING
FILE_NAME = PA_FILE.
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. " GET_F4_FOR_FILE
*& Form UPLOAD_FILE_TO_ITAB
FORM UPLOAD_FILE_TO_ITAB USING FP_V_FILE
CHANGING FP_IT_DATA LIKE IT_DATA.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = FP_V_FILE
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = FP_IT_DATA.
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. " UPLOAD_FILE_TO_ITAB
*& Form OPEN_SESSION
FORM OPEN_SESSION USING FP_P_GROUP.
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
CLIENT = SY-MANDT
DEST = FILLER8
GROUP = FP_P_GROUP
HOLDDATE = FILLER8
KEEP = 'X'
USER = SY-UNAME
IF SY-SUBRC = 0.
WRITE : / 'PROCESS THE SESSION',FP_P_GROUP,'USING SM35'.
ENDIF.
ENDFORM. " OPEN_SESSION
*& Form FILL_SCREEN_DETAILS
FORM FILL_SCREEN_DETAILS USING PROGRAM
DYNPRO
DYNBEGIN.
WA_BDCDATA-PROGRAM = PROGRAM.
WA_BDCDATA-DYNPRO = DYNPRO.
WA_BDCDATA-DYNBEGIN = DYNBEGIN.
APPEND WA_BDCDATA TO IT_BDCDATA.
CLEAR WA_BDCDATA.
ENDFORM. " FILL_SCREEN_DETAILS
*& Form FILL_FIELD_DETAILS
FORM FILL_FIELD_DETAILS USING FNAM FVAL.
WA_BDCDATA-FNAM = FNAM.
WA_BDCDATA-FVAL = FVAL.
APPEND WA_BDCDATA TO IT_BDCDATA.
CLEAR WA_BDCDATA.
ENDFORM. " FILL_FIELD_DETAILS
*& Form BDC_INSERT
FORM BDC_INSERT USING FP_TCODE TYPE SYTCODE
FP_IT_BDCDATA LIKE IT_BDCDATA.
CALL FUNCTION 'BDC_INSERT'
EXPORTING
TCODE = FP_TCODE
TABLES
DYNPROTAB = FP_IT_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.
ENDFORM. " BDC_INSERT
*& Form CLOSE_SESSION
FORM CLOSE_SESSION .
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. " CLOSE_SESSION -
Which is better, bdc or standard fm?
In creating a transaction, is it better to use bdc program or calling a standard function module?
Points for helpful ideas. Thanks!Hi
What is your Exact Requirment..Standard Function Modules are always better than any BDC programs always.So if you have the proper function module is available to fullfill your requirment then you can use that.In case if it's not available you can thinking of writing a program your own..
Hope this will help you.Get back in case of further clarifications..
Reward All Hlpfull Answers -
Hi Gurus,
A very good day all of you.
Can any one give complete details about BDC and what is our role being a SD Consultant in it.
Thanks for your responses in advance.
Sunanda.Hi
It depends on what type of project is.
Support:
You will be helping users how to process the BDC created in SM35. These are notifications same as idoc goes to workflow. Also small setups to activate BDC or change of current configuration of BDC>
Project:
Setting BDC notification to be generated when docuemnt processing goes in error. ex. You have a program which does repricing of orders. Now due to some error the job creates a BDC in SM35. Then this scenario need to be setup.
Hope this clarifies to a extend. Reward accordingly.
kind regards
sandeep -
Creating sales order using BDC
I need to create sales order using BDC by reading material from material master(R/3) and customer from
customer master(R/3).
For example. combination should be like this
Customer1 + Material 1 = Sales order 1
Customer2 + Material 2 = Sales order 2
Other than customer and material, all other values are fixed... Could you please help me......Hi,
Better go for BDC rather then BAPI for this requirement.
Simply, record the transaction and upload the data, Hope you know how it works.
Try this, In case of any clarification feel free to reply.
Regards,
Vikas -
Problem in Table controls in BDC
Hi All,
I have porblem in BDC using table controls.
I am working on VBO2 transaction i developed BDC for that i used CTUParameters for screen resulution
whenever press P+ it will go 11 recors in up and 11 is the first line in second page so how to map that
please help me.HI...
when that screen perform will come follow these steps...
before the table control screen... write following code.....
v_count = v_count + 1. ( you need to declare this variable )
(as your screen contains 11 row....)
IF v_count le 11.
pass the values to the perform statements.......
else.
add the perform related to P+ .
v_count = 1.
pass the values to the perform statements.......
ENDLOOP.
i hoep this info will be helpfull for you,,,,,,
if you need any clarification please revert back....
regards,
nag. -
can anyone provide some clarification reagrding DI i.e. Direct Input method ....We use DI if there is no alternate is available i.e. No BAPI, BDC, LSMW..? what preferences and priorities for LSMW, BAPI, BDC, DI..
Hi
check the link
http://www.geekinterview.com/question_details/33450
Regards,
Stock -
Hi,
which message class contains all the BDC error message information?
Thanks
PrinceHi...
BDCMSGCOLL is the structure it contains the filed MSGID i.e Batch input message ID
So while caling the function module.. FORMAT_MESSAGE...
As you know we hav to pass the following parameters...
>CALL FUNCTION 'FORMAT_MESSAGE'
>EXPORTING
>ID = I_MSG-MSGID
>LANG = 'E'
>NO = I_MSG-MSGNR
>V1 = I_MSG-MSGV1
>V2 = I_MSG-MSGV2
>V3 = I_MSG-MSGV3
>V4 = I_MSG-MSGV4
>IMPORTING
>MSG = V_MSG
So here by formatting the message the function module gives text with V_msg...
Here one perticuler message class never used..
According to that screen error....it will picks the message from different message classes like ZV..etc..
For more clarification plz debugg the FORMAT_MESSAGE function module once...
Thanks,
Naveen Inuganti. -
Workingwith BDC sessions - Server Crash
Hi ALL!
I have a doubt, hope, I will get a clarification from this forum.
the scenario is like this:
The flat file contains more than 50 records, while processing the BDC (by using call transaction method), the server is crashed (say due to power problem). How can I find out how many records are posted to the database tables (without checking the database tables) and how many we still need to be processed? This is for all modes (A/N/E). Any ideas/help is highly appreciated.
ThanksIf this is real concern, I think that the only way would be do something like this.
In your program.....
1) Upload the flat file to internal table.
2) Write the internal table to a database table.
3) process each record on the interal table using the call transaction, after the transaction set a "completion flag" for that record in the database table, make sure to commit work right after.
This way you will have a record of the records that were to be processed, and the ones that were done, and ones that were not.
Regards,
Rich Heilman
Maybe you are looking for
-
i have just plugged my i phone 4s into my computer and it automatically synced with i tunes, i tunes for some reason removed all the apps and backed up my phone automatically. ive gone to put my apps back on and its showing me an automatic flash up m
-
My iphone won't download any apps i dont know what to do
My phone won't download any apps anymore. I don't know what to do.
-
IBooks display differences between iOS7 and iOS8
I work for a music publisher where we build reflowable ePubs that mostly contain music and embedded audio/video files. It is critical that we deliver an eBook that keeps a/v controllers with the title, credits, music etc. and maintains proper spacing
-
"Get Photos" from camera function will not reopen
I love the new "get photos" function in Bridge CS3. However, I try to use the function to retrieve some photos and send to a folder, then wish to reopen it to send more photos to a different folder (photos from different events on card). The function
-
Then the sound gets messed up again... Is there a way to fix this? I alreadt tried the quixktime and 16 bit solution... Thats what fixed me music so that it isnt distorded when im on listening to Itunes 7....