BDC for VA01 and VL01 - Needed
Hi experts,
Can anyone give ur valuable ideas for the following scenario.
I need to create recording for Sales order creation(VA01) and Delivery creation(VL01) tcodes. But VA01 should be created in foreground and VL01 in background for the corresponding Sales order automatically.
I mean, the user has to enter the values for sales order creation, once it ll be created, automatically delivery should be created in background. This is the scenario given by my client.
Kindly give some step by step procedure to do so...
Thanks in advance...
Regards
Raaams...
Hi,
Correct me if i have not got your requirement.
Once the sales order is saved, you need to create delivery automatically. Right ?
If this is the requirement, then you don't need BDC for both the transaction.
What you have to do is identify the BADI(method) called up when your is sales order is saved.
Use BAPI_DELIVERYPROCESSING_EXEC for creating a delivery in the method of BADI.
Let me know if in case u need more details.
Thanks,
Kartavya
Similar Messages
-
I am posting data for va01 and va02 using BDC session,what happens if
Hi,
I am posting some data for va01 and va02 using BDC session,but what happens if i try to post same data using call transaction.Hi,
That is just another method. You can post the data using Call Transaction as well.
Just give it a try and in case you face some problem revert back with your issue.
We will help you to solve the same.
Hope this helps!!!
Regards,
Lalit -
I'm trying to reinstall Logic Pro 9, and it says It's already installed. I have a project due for class and I need help asap. Please help!!!
Yea I am. I deleted Logic Pro 9 and moved the App to the Trashcan like normal. Then when I go to install it, it says its already Installed. When I do this with other apps; it works fine, the install thing comes back up like it should once you have deleted the app
-
Bought InDesign CS4 for Mac and now need to move it to a PC. Help!
Bought InDesign CS4 for Mac and now need to move it to a PC. Help!
Most Adobe software is written for one of two platforms, Mac or PC. In order to switch platforms you need to be using the most current version, so CS4 would not be supported for making this switch. Here is a link to a page that explains the requirements for switching platforms....
http://helpx.adobe.com/x-productkb/policy-pricing/order-product-platform-language-swap.htm l -
When i try to download the new version of iTunes, I get an error message saying the download was for 32bit and I need the 64bit. How do i download 64bit?!?!
Which I get. But clicking on that link you provided does not give you the option of choosing between 32 and 64 bit installers.
Yeah, that was certainly a 32-bit installer file being referred to in the other message, too. (The 64-bit installer file is called iTunes64Setup.exe.)
Just in case it's an issue with your normal browser not working properly with the system-detection equipment on the page (there's a javascript control that checks for operating system specifics, and is supposed to deliver the correct Mac or Windows installers), let's try a different web browser for the download. If you use Firefox instead of IE (or vice versa), do you get offered an iTunes64Setup.exe instead of an iTunesSetup.exe? -
I have a second coppy of cs6 design and web premium. Its only for mac and I need it for pc. Can i swap its platform?
From Adobe: "If you have an older version of a product, you must order an upgrade instead of a swap." Because you have a CS6 suite your only option may be to subscribe to Creative Cloud in order to get current cross-platform versions of all their applications. Check here for further info: Order product | Platform, language swap
-
User Exit for VA01 and VA02 transaction codes
Hi,
I am writing a userexit for PO number checking for VA01 and VA02 transaction codes.The PO number should be unique in the table (vbkd-bstkd).Duplicate PO number entries can be checked with Sold-to Party.If anybody written something like this....please advice me...
Thanks in advance.
fractalHi Fractel,
Why are you looking for a user exit to do this duplicate PO check?
This can be achieved through configuration of your sales order document type and message control. Follow the path below for configuration of the document type.
Implementation Guide for R/3 Customizing (IMG)
-->Sales and Distribution
-->Sales
-->Sales Documents
-->Sales Document Header
-->Define Sales Document Types
Once you execute this node, you will see all the available document types. Select the one you are interested in and click the details icon. In the subsequent screen, under "General Control" section, there is a field "Check purch.order no". Pick the value 'A' from the drop-down list.
Once you do this, system will check for duplicate PO numbers whenever you are creating or changing the sales order with that document type. If duplicate, it issues a message. -
I just purchased the iphone 4 for verizon and I need to sync with itunes but my macbook runs X OS 10.4.11. How could I download itunes 10?
You will need to upgrade your MacBook OS to at least 10.5.8 or preferably Snow Leopard 10.6.X
Stedman -
Average response times for VA01 and VA02 transactions
Hi,
we have some users complaining about response times, more specific for VA01 and VA02 transactions. We would like to compare our average response times to those of other companies in order to get an idea of what is acceptable to most companies. If you are willing to contribute, can you please send a few hours of STAD data (only for VA01 and VA02 transactions) of an average working day? Perhaps you can download the data into a spreadsheet and mail the zipped file to my account Many thanks.
Best regards,
Guido Van LeuvenHi,
This is not the issue. We are investigating everything possible to improve our response times and we believe that that these are ok as well. We just want to build a case where we can prove that our response times are not worse than those at other companies and that we can do only by comparing those statistics.
Best regards,
Guido Van Leuven -
CAN ANYONE SEND ME BDC PROGRAM FOR VA01 OR XD01
PLZZZHi Raj,
This is a sample both BDC & Call Transaction program for TCode XD01. Choose the radio button while executing which you want to run
Give any Text File in your Presentation Layer with the fields given in the internal table "itab".
*& Report ZA1CTBI
REPORT za1ctbi.
TYPES: BEGIN OF ty_cust,
ktokd TYPE kna1-ktokd,
kunnr TYPE kna1-kunnr,
name1 TYPE kna1-name1,
sortl TYPE kna1-sortl,
ort01 TYPE kna1-ort01,
land1 TYPE kna1-land1,
spras TYPE kna1-spras,
pstlz TYPE kna1-pstlz,
lzone TYPE kna1-lzone,
END OF ty_cust.
DATA: itab TYPE TABLE OF ty_cust,
wa LIKE LINE OF itab,
bdctab TYPE TABLE OF bdcdata,
wa1 LIKE LINE OF bdctab,
messtab TYPE TABLE OF bdcmsgcoll,
wa2 LIKE LINE OF messtab,
d_mode(1) TYPE c,
d_update(1) TYPE c,
session(12) TYPE c,
date TYPE dats,
message(73) TYPE c.
PARAMETERS: ct RADIOBUTTON GROUP radi,
mode LIKE d_mode DEFAULT 'A',
update LIKE d_update DEFAULT 'A',
bi RADIOBUTTON GROUP radi,
ses_name LIKE session DEFAULT 'CUST',
k_date LIKE date DEFAULT sy-datum,
k_sess AS CHECKBOX DEFAULT 'X'.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = 'C:\aaa.txt'
filetype = 'ASC'
has_field_separator = 'X'
TABLES
data_tab = itab
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.
IF ct = 'X'.
PERFORM call_transaction.
ELSE.
PERFORM batch_input.
ENDIF.
*& Form CALL_TRANSACTION
text
--> p1 text
<-- p2 text
FORM call_transaction .
LOOP AT itab INTO wa.
REFRESH bdctab.
REFRESH messtab.
PERFORM bdc.
CALL TRANSACTION 'XD01' USING bdctab
MODE mode
UPDATE update
MESSAGES INTO messtab.
LOOP AT messtab INTO wa2.
SELECT SINGLE text INTO message
FROM t100
WHERE arbgb = wa2-msgid
AND msgnr = wa2-msgnr
AND sprsl = 'EN'.
IF sy-subrc = 0.
REPLACE '&' IN message WITH wa2-msgv1.
WRITE:/ message.
ENDIF.
ENDLOOP.
ENDLOOP.
ENDFORM. " CALL_TRANSACTION
*& Form BDC
text
--> p1 text
<-- p2 text
FORM bdc .
SCREEN 1
PERFORM bdc_dynpro USING 'SAPMF02D' '0100'.
PERFORM bdc_field USING 'RF02D-KTOKD' wa-ktokd.
PERFORM bdc_field USING 'RF02D-KUNNR' wa-kunnr.
PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
SCREEN 2
PERFORM bdc_dynpro USING 'SAPMF02D' '0110'.
PERFORM bdc_field USING 'KNA1-NAME1' wa-name1.
PERFORM bdc_field USING 'KNA1-SORTL' wa-sortl.
PERFORM bdc_field USING 'KNA1-ORT01' wa-ort01.
PERFORM bdc_field USING 'KNA1-LAND1' wa-land1.
PERFORM bdc_field USING 'KNA1-SPRAS' wa-spras.
PERFORM bdc_field USING 'KNA1-PSTLZ' wa-pstlz.
PERFORM bdc_field USING 'KNA1-LZONE' wa-lzone.
PERFORM bdc_field USING 'BDC_OKCODE' '=UPDA'.
ENDFORM. " BDC
*& Form bdc_dynpro
text
-->P_0294 text
-->P_0295 text
FORM bdc_dynpro USING program
dynpro.
CLEAR wa1.
wa1-program = program.
wa1-dynpro = dynpro.
wa1-dynbegin = 'X'.
APPEND wa1 TO bdctab.
ENDFORM. " bdc_dynpro
*& Form bdc_field
text
-->P_0299 text
-->P_0300 text
FORM bdc_field USING fnam
fval.
IF fval <> space.
CLEAR wa1.
wa1-fnam = fnam.
wa1-fval = fval.
APPEND wa1 TO bdctab.
ENDIF.
ENDFORM. " bdc_field
*& Form BATCH_INPUT
text
--> p1 text
<-- p2 text
FORM batch_input .
PERFORM bdc_open.
LOOP AT itab INTO wa.
REFRESH bdctab.
PERFORM bdc.
PERFORM bdc_insert.
ENDLOOP.
PERFORM bdc_close.
ENDFORM. " BATCH_INPUT
*& Form BDC_OPEN
text
--> p1 text
<-- p2 text
FORM bdc_open .
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
client = sy-mandt
group = ses_name
holddate = k_date
keep = k_sess
user = sy-uname
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
*& Form BDC_INSERT
text
--> p1 text
<-- p2 text
FORM bdc_insert .
CALL FUNCTION 'BDC_INSERT'
EXPORTING
tcode = 'XD01'
TABLES
dynprotab = bdctab
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
*& Form BDC_CLOSE
text
--> p1 text
<-- p2 text
FORM bdc_close .
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
<b>Reward if helpful,</b>
Regards,
Adithya M. -
The download that adobe sent me is for Windows. I have a Mac and I need the one for Macbook Pro. I have been looking for a contact with customer service and even the chat is not working. Help please! I haven't use the product they sent me
Please open link
Contact Customer Care
Then click on still need help, you will get the chat option -
As I try to download apps (e.g. Skype) for my new iPhone 5s, using my existing apple ID, it gives a message that my id is not valid for US store and I need to switch to Bangladesh store. There is no bangladesh Store. I created my id without credit card (payment option-none). How can I now downlod from itunes/apps store?
If you're in Bangladesh, then there is no iTunes Store that you can use. Each country's iTunes Store is limited to those actually in that country. E.G from the terms of use for the iTunes Store:
The iTunes Service is available to you only in the United States, its territories, and possessions. You agree not to use or attempt to use the iTunes Service from outside these locations. Apple may use technologies to verify your compliance.
When or indeed if Apple will ever be able to open an iTunes Store in Bangladesh no one here will know.
If you are physically in the US using a US-based account, post back and we'll go from there.
Regards. -
BDC For VA01(For MULTIPLE Material ie Multiple Line Items)
i have to do A BDC using call trasncation which has Multiple material in line items,so please could you send me some sample code
Hii pls refer the following code.. it is BDC for me31k.. hop this will help....
*& Report name : ZOA_P1 *&
*& Program title : Outline agreement Creation program *&
*& Description : BDC program which creates outline *&
*& agreement *&
*& Author : Sheeba B *&
*& Author ID : 5855 *&
REPORT zoa_p1
NO STANDARD PAGE HEADING LINE-SIZE 100.
include program***************************
INCLUDE zbdcrecx4.
*C-structure for table ekko fields
TYPES:BEGIN OF tp_temp,
lifnr TYPE lifnr,
ekorg TYPE ekorg,
ekgrp TYPE ekgrp,
bukrs TYPE bukrs,
END OF tp_temp.
****************Declarations********************
*C-variables for table ekko field
DATA: BEGIN OF tp_final OCCURS 0,
lifnr TYPE lifnr,
ekorg TYPE ekorg,
ekgrp TYPE ekgrp,
bukrs TYPE bukrs,
ematn TYPE ematn,
ktmng TYPE ktmng,
netpr TYPE netpr,
werks TYPE werks,
END OF tp_final,
*C-variables used in the program
wa_temp TYPE tp_temp,
*C-variable for entering multiple item level details
*C-for same vendor
w_count(2) TYPE c VALUE '01',
w_count(2) type N value 01,
w_str(40) TYPE c,
w_str1 TYPE string.
*C-selection screen parameter for file name
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 5(20) text-000 FOR FIELD f_name.
SELECTION-SCREEN POSITION 25.
PARAMETERS: f_name LIKE rlgrap-filename.
SELECTION-SCREEN END OF LINE.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR f_name.
CALL FUNCTION 'DSVAS_DOC_WS_FILENAME_GET_50'
EXPORTING
def_filename = 'F_NAME'
def_path = 'C:\'
mask = '.TXT'
MODE = ' '
TITLE = ' '
IMPORTING
filename = f_name
EXCEPTIONS
INV_WINSYS = 1
NO_BATCH = 2
SELECTION_CANCEL = 3
SELECTION_ERROR = 4
OTHERS = 5
*IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*ENDIF.
***Start of selection*********
START-OF-SELECTION.
*C-function for uploading file from workstation
w_str1 = f_name.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = w_str1
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 = tp_final
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.
PERFORM open_group.
*C-looping at internal table for passing
*C-field values to transaction
LOOP AT tp_final.
MOVE :tp_final-lifnr TO wa_temp-lifnr,
tp_final-ekorg TO wa_temp-ekorg,
tp_final-ekgrp TO wa_temp-ekgrp,
tp_final-bukrs TO wa_temp-bukrs.
*C-for each new vendor
*C-pass header details to transaction
AT NEW lifnr.
REFRESH bdcdata.
PERFORM :bdc_dynpro USING 'SAPMM06E' '0200',
bdc_field USING 'BDC_OKCODE'
'/00',
bdc_field USING 'EKKO-LIFNR'
wa_temp-lifnr,
bdc_field USING 'EKKO-EKORG'
wa_temp-ekorg,
bdc_field USING 'EKKO-EKGRP'
wa_temp-ekgrp,
bdc_dynpro USING 'SAPMM06E' '0514',
bdc_field USING 'BDC_OKCODE'
'=ENTE',
bdc_field USING 'EKKO-BUKRS'
wa_temp-bukrs,
bdc_dynpro USING 'SAPMM06E' '0201',
bdc_field USING 'BDC_OKCODE'
'/00',
bdc_field USING 'EKKO-KDATE'
'12/31/9999'.
ENDAT.
*C-passing item level details to transaction
PERFORM :bdc_dynpro USING 'SAPMM06E' '0220',
bdc_field USING 'BDC_OKCODE'
'/00'.
CONCATENATE 'EKPO-EMATN(' w_count')' INTO w_str.
PERFORM bdc_field USING w_str tp_final-ematn.
CONCATENATE 'EKPO-KTMNG(' w_count')' INTO w_str.
PERFORM bdc_field USING w_str tp_final-ktmng.
CONCATENATE 'EKPO-NETPR(' w_count')' INTO w_str.
PERFORM bdc_field USING w_str tp_final-netpr.
CONCATENATE 'EKPO-WERKS(' w_count')' INTO w_str.
PERFORM bdc_field USING w_str tp_final-werks.
PERFORM:bdc_dynpro USING 'SAPMM06E' '0211',
bdc_dynpro USING 'SAPMM06E' '0220',
bdc_field USING 'BDC_OKCODE'
'/00'.
*C-Incrementing count for insertin next
*C-line item for the same vendor
w_count = w_count + '01'.
CONCATENATE '0' w_count INTO w_count.
*C-For different vendors save details and create contract.
AT END OF lifnr.
PERFORM : bdc_dynpro USING 'SAPMM06E' '0211',
bdc_dynpro USING 'SAPMM06E' '0220',
bdc_field USING 'BDC_CURSOR'
'RM06E-EBELP',
bdc_field USING 'BDC_OKCODE'
'=BU',
bdc_transaction USING 'ME31K'.
*C-resetting w_count for new vendor
w_count = '01'.
ENDAT.
ENDLOOP. -
User exit for va01 and vf01 while saving.
I need to display a custom message which shows two numbers when i save a record using va01 and vf01.. Is there a user exit I can use? or shud i use enhancement spots? if so where??
Hi Suzie
To add; please be clear that using an enhancement point will only save you the need to get an access key.
Rest ofcourse you will be adding your code in the correct userxit; but without the access key.
Hope it helps !!
Neeraj -
Authorization for va01 and va02
Hi all,
I have a requirement to add an authorization for certain fields (not for editing) in va01 and va02. If i create an authorization object for the same, is it possible to integrate auth object to roles and What will be the fields of auth object ?. Anyone can put comments.
Thanks and regards
JijoHi,
This is my code in so include program...
AUTHORITY-CHECK OBJECT 'ZSO_SCHED'
ID 'ACTVT' FIELD '02'.
CASE SCREEN-NAME.
WHEN 'RV45A-ETDAT' OR 'VBEP-WMENG'.
IF SY-SUBRC EQ 0.
SCREEN-input = 1.
ELSE.
SCREEN-input = 0.
ENDIF.
ENDCASE.
Now, i have to connect role to auth. object 'ZSO_SCHED'. Any idea how to do it?
Thanks and Regards
Jijo
Maybe you are looking for
-
Is this bizarre or am I expecting too much from Java language?
Yesterday I noticed that when I use Arrays.sort() to sort contents of an ArrayList (containing objects of Comparable type with compareTo implemented correctly) the sort routine did not return a sorted list. After looking at everything for hours the p
-
Problem using APEX_ITEM.checkbox2 and APEX_ITEM.select_item
Here is my SQL Query in the Report Region: select APEX_ITEM.CHECKBOX2(31,ID) "Roll FORWARD", APEX_ITEM.SELECT_LIST(32,'X','Outright Forward;F,Swap;S,Select;X') "Trans Type", "FX_EXPOSURE_HDR"."ID" as "ID" from "FX_EXPOSURE_HDR" "FX_EXPOSURE_HDR"
-
is there any way when i click on magnify lens on business partner screen instead of search in code can it search directly under name.
-
I have a Mac Pro (early 2009), with an NVIDIA GeForce GT 120 512MB RAM. I'm finding that sometimes Photoshop CC will load up and function properly, but other times it loads up I am unable to use such functions as "Rotate Canvas." I get an error (also
-
L_TO_CREATE_SINGLE bin to bin
I am trying to use the function module L_TO_CREATE_SINGLE to do a material movement from a bin to another bin. But I dont know what i am doing bad. Somebody can show me an example of the use of that FM for do that i need? Regards.