How to populate Sales Document fields in tcode FAGLL03
Hi Experts,
I have requirement to populate Sale Document and Sale Document item fields in tcode FAGLL03.Please let me know the procedure to populate these fields in given tcode.
Thank you in advance.
Regards,
narasimha.
Hi
Go to TCode FAGLL03
Enter your Sales GL Account and Company code
Execute
Select (Ctrl+F8)
Select Sales document and Sales document item from the hidden fields (Right side)
Move it o Left side
Select Copy
And save it as your layout (Ctrl + F12)
Srinivas
Similar Messages
-
Populate Sales Order field in FS10N
Does anyone know how to get the sales order # to populate the Sales document field in tcode FS10N. You can see the column after you drill down to the second level.
Thank youHi there,
as far as i understood your problem
1)when you are going into the FS10n and pulling the debit and credit balances for any particular gl for the yr you have selected .
2) you are drilling on the line 1 and it takes you to a GL account line item display report where you want to see the Sales Document number as a column in the report, is that right?
if that is the case then , click on the change Layout button (colurfull boxes one) and from the rightside column just select the sales document from the list and drag it to the left side column and arrange it as on to which column you want it to get displayed and save it and you will see that layout will bring the sales doc # from now on..
hope this helps you, assign points if help ful
rgds
Jay -
How to make Sales Office field mandatory in VA01 initial screen?
Hi,
How to make Sales Office field mandatory in VA01 initial screen? I mean in the first screen where we enter the document type and the sales area?
Regards,
AjitDear Deepak,
Thanks for the clarification.
But, as far, I have understood the query - it is very simple and that is..
Whenever one creates a Sales Order (T.Code: VA01), Parameter: Sales Office needs to be mandatory (for all Sales Order, irrespective of Customer Account).
Until-unless, user won't enter the parameter: Sales Office, System will not lead to next page (now, here we need to enter Customer/ material etc...).
I have answered the query, in this regards, only.
Best Regards,
Amit.
Note: Pls. correct me, if I am wrong. Thanks for everyones guidance. -
How to populate the TEXT field in MIGO
Hi folks,
While creating material document in MIGO or MB01, i am inserting some data in TEXT ( Field in line item level ). This text data is disappearing , once mat doc is created.
how to populate the TEXT field in MIGO?Is there any cusomisation?it's urgent .
Regards
pabiHello Pabitra,
I had a similar issue in my Project.
Please verify if the SMOD enhancement MBCF0002 (EXIT_SAPMM07M_001) is active in your system.
If this is the case, verify from two angles:
a) Whether the Enhancement was accidentally activated - If yes, then De-activate the same
b) If there is some logic coded in the User Exit, but, the Text is somehow not determined...even the existing content in the text field (input to EXIT_SAPMM07M_001) will get vanished.
Hope that your problem will be resolved by this. Pls reward points.
With Regards
Vijay Gajavalli -
Sales document field in Service order
Hi,
In my scenario,Service order is getting created from sales order.But in the Order header I am not able to see the Sales Document field.But some of the service order types in IDES, Iam seeing the sales document field (above the biling form field) in the service order which got generated through sales order.
How to get this Sales Documnet field.
Regards
SBHI
As per your query
We have 2 order types say SM01 & SM02
In SM01 - Revenue posting is not allowed, so you have to assign a contract (Sales Document and Item No)
In SM02 - Revenue Posting is allowed, so u cannot assign sales documents in this. Settlement wil be done in the order itself...
In CS, we use SM01, assign the contract with Service Product Material.
[http://help.sap.com/saphelp_46c/helpdata/en/e6/4a8df09e0311d189b70000e829fbbd/frameset.htm]
Check out this link, will help in detail.
- Pithan -
How to send Sales Document Number and Item to BAPI_ACC_DOCUMENT_POST?
Hello SAPients,
We are using BAPI_ACC_DOCUMENT_POST to create an accounting document similar to what FB01 does, in FB01 you can type the number and position of a Sales Document even if you are using an Account Receivable account number. But in the BAPI, the ACCOUNTRECEIVABLE table doesn't have a field to include those numbers. How should I pass the sales order number and item to the BAPI? I have tried several things but every time I receive more complicated error messages.
Thank you in advance for your kind help.Let me know if you have any questions:
Loop through your records and fill in the appropriate structure based on record type (GL, Vendor or Customer)
IF NOT pcard_post_rec-zlsapac IS INITIAL.
gt_gl_item-itemno_acc = ls_posnr.
gt_gl_item-gl_account = pcard_post_rec-zlsapac.
gt_gl_item-comp_code = pcard_post_rec-zlsapco.
"gt_gl_item-pstng_date = pcard_post_rec-zlgpsdt.
gt_gl_item-pstng_date = gv_posting_date.
gt_gl_item-doc_type = doctype.
gt_gl_item-alloc_nmbr = ls_assignment.
gt_gl_item-ref_key_3 = pcard_post_rec-zlgvend.
IF pcard_post_rec-zlsapac < 500000.
gt_gl_item-item_text = ''.
ELSE.
gt_gl_item-item_text = pcard_post_rec-zlguser.
ENDIF.
gt_gl_item-costcenter = pcard_post_rec-zlsapcc.
gt_gl_item-orderid = lv_ordnum.
APPEND gt_gl_item.
ELSEIF NOT pcard_post_rec-zlsapven IS INITIAL.
gt_ap_item-itemno_acc = ls_posnr.
gt_ap_item-vendor_no = pcard_post_rec-zlsapven.
gt_ap_item-comp_code = pcard_post_rec-zlsapco.
gt_ap_item-alloc_nmbr = ls_assignment.
gt_ap_item-ref_key_3 = pcard_post_rec-zlgvend.
IF pcard_post_rec-zlsapac < 500000.
gt_ap_item-item_text = ''.
ELSE.
gt_ap_item-item_text = pcard_post_rec-zlguser.
ENDIF.
APPEND gt_ap_item.
ELSEIF NOT pcard_post_rec-zlsapcus IS INITIAL.
gt_ar_item-itemno_acc = ls_posnr.
gt_ar_item-customer = pcard_post_rec-zlsapcus.
gt_ar_item-comp_code = pcard_post_rec-zlsapco.
gt_ar_item-alloc_nmbr = ls_assignment.
gt_ar_item-ref_key_3 = pcard_post_rec-zlgvend.
IF pcard_post_rec-zlsapac < 500000.
gt_ar_item-item_text = ''.
ELSE.
gt_ar_item-item_text = pcard_post_rec-zlguser.
ENDIF.
APPEND gt_ar_item.
ENDIF. -
How to unlock Sales Document (Sales Order)?
Dear All,
I was in the process to change a Sales Order. I did all the entries in required fields and before I could save the Sales Order, somehow, my SAP-Connection got disconnected.
I logged again and run the T. Code: VA02 and gave the Sales Order No. and Press: Enter; System responded with Message: Sales Document No., say 123456789, is currently being processed (by User: say, XYZ (thats my id).
How come, I unlock this document so that me and others can process the document.
Thanks in Advance...
Best Regards,
Amit K. YadavDear Amit K. Yadav
Just wait for sometime and run some other transactions in your user id, so that it will automatically disconnect the said transaction. Alternatively, you can once again logon and disconnect it (_you should be careful_ while doing this as some users may be working in the same client and if you disconnect by choosing the first option, they will land up in problem)
thanks
G. Lakshmipathi -
How to get sales org. field value in CUSTOMER_ADD_DATA~SAVE_DATA ?
Dear Guru ,
The requirment is we send some information to external email system when user save the customer master data ( XD01 , XD02 ) .
I try to use badi CUSTOMER_ADD_DATA~SAVE to satisfy this requirment , but i can't get the Sales Org value ( KNVV-VKORG ) in this badi in XD02 ...
Has someone guide me how to do that ?
Below abap code can get the Sales Org value in tcode XD01 , but not in tcode XD02 .
DATA : lv_knvv type char30 value '(SAPMF02D)KNVV' .
DATA : l_vkorg type vkorg .
FIELD-SYMBOLS : <fs_xknvv> type knvv .
ASSIGN : (lv_knvv) TO <fs_xknvv> .
* Now i have the Sales Org in XD01 !
l_vkorg = <fs_xknvv>-vkorg .
Thanks .
Best Regards,
CarlosDATA :
lv_knb1 type char30 value '(SAPMF02D)KNB1' ,
lv_knvv type char30 value '(SAPMF02D)KNVV' ,
lv_kna1 type char30 value '(SAPMF02D)KNA1' .
FIELD-SYMBOLS : <fs_xknb1> type knb1 .
FIELD-SYMBOLS : <fs_xknvv> type knvv .
FIELD-SYMBOLS : <fs_xkna1> type kna1 .
ASSIGN : (lv_kna1) TO <fs_xkna1> .
ASSIGN : (lv_knb1) TO <fs_xknb1> .
ASSIGN : (lv_knvv) TO <fs_xknvv> .
Edited by: Carlos Zhang on Dec 17, 2010 3:25 PM -
Dear Gurus,
I need help on the following fields of sales document.
How i get the following fields into sales document (From any Master data or System determined or Manual entry)
1.Document currency (VBAK-WAERK)
2.Exchange Rate (VBKD-KURSK)
3. No. serial numbers (VBAP-ANZSN)
4. Cumul.confirmed qty (VBAP-KBMENG)
5. Object no.Item (VBAP-OBJNR)
6. Profit Center (VBAP-PRCTR)
7. Configuration (VBAP-CUOBJ)
8. Object no.Item (VBAP-OBJNR)
Thank you
ANilHello,
1.Document currency (VBAK-WAERK) - Determined By system
2.Exchange Rate (VBKD-KURSK) - Determined By system
3. No. serial numbers (VBAP-ANZSN) - Serial numbers normally maintiend in delivery manually.
4. Cumul.confirmed qty (VBAP-KBMENG) - Determined By system
6. Profit Center (VBAP-PRCTR) - Material Master
7. Configuration (VBAP-CUOBJ) - Material Master
Prase -
How to Extract sales document from r/3 ?
hi,
How to extract sales data from SAP R/3 considering all fields of data in different tables?
Thanks & regards,
Gopi.Hi Gopi,
It depends what data you need to extract but most of the data would be available in following tables :
Sales
VBAK - Header
VBAP - Item
VBPA - Sales Document Partner
Shipment
VTTK - Shipment Header
VTTP - Shipment Item
Delivery
LIKP - Delivery Header
LIPS - Delivery item
Customer
KNA1 - Customer Master
KNB1 - Customer Master (Company Code)
Cheers,
Vikram
Pls reward for helpful replies!! -
Suppress and release the sales document field.
How can we Suppress and release the fields in sales document. Eg. I want to suppress Qty field in sales document item. Please respond ASAP.
REFER BELOW
Supressing Fields in Sale Order
To make optional / mandatory you can use in IMG - S&D-> Basic > Functions-> Log of incomplete Procedures => select the fields > from the tables and the system will check for them (OVA2/VUA2)
To make a filed entry enabled or grey (non-entry allowed):
User exits in the program MV45AFZZ-USEREXIT_FIELD_MODIFICATION
This user exit can be used to modify the attributes of the screen fields.
To do this, the screen fields are allocated to so-called modification groups 1 - 4 and can be edited together during a modification in ABAP.
If a field has no field name, it cannot be allocated to a group. The usage of the field groups (modification group 1-4) is as follows:
Modification group 1: Automatic modification with transaction MFAW
Modification group 2: It contains 'LOO' for step loop fields
Modification group 3: For modifications which depend on check tables or on other fixed information
Modification group 4: is not used
The FORM routine is called up for every field of a screen. If you require changes to be made, you must make them in this user exit. This FORM routine is called up by the module FELDAUSWAHL.
Actually suppressing fielding sales orders userwise is quite easy. We are doing it in our company. For this we use userexit FORM USEREXIT_FIELD_MODIFICATION in MV45AFZZ.
Below is the sample code
IF SCREEN-NAME = 'VBKD-ABSSC'.
AUTHORITY-CHECK OBJECT 'ZMV45AFZZ' ID 'SCRFNAME' FIELD SCREEN-NAME.
IF sy-subrc = 0.
SCREEN-INPUT = 1.
else.
SCREEN-INPUT = 0.
ENDIF.
endif.
You place the authority check object in authorization profile in the role of the users, who should have access to the field (in this case it is VBKD-ABSSC), and there assign the corresponding fields that are to be accessed via this user exit. -
Triggering event in u201Cchange statusu201D for Sales Document (SD) with TCode VKM1
Hi guys, Iu2019m trying to trigger a new event in an u201CStatus Management u2013 Tcode BSVWu201D for a Sales Document when I use the transaction to release it (Tcode VKM1 -> CtrF10 to release), so the change is done in u201COverall blocked statusu201D field .
For this, I created a new entry on the u201CSystem/user status eventu201D Tcode BSVZ using:
StatusOT = VBK
Schema = blank
BusinessOT = BUS2032
Event = u201CCustom Eventu201D
I did test with and without status restriction (I0002 = REL) but nothing happened in TCode SWEL, no event were triggered so I donu2019t know what to do.
The field affected for the status in the document is VA03-># Sales Order-> GoTo -> Header -> Status -> u201COverall blocked statusu201D.
I appreciate any help.
Thanks a lot
Felipe UribeHi,
You have to
1) Mention the status profile used
2) specify the bus. Obj and event to be triggered
3) Then select the status which the event is to be created. System status starts with 'I' and User status starts with 'E'. You can get the status in table TJ02T for system status text & TJ30T for User status texts.
See this [Link|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a0334534-aa28-2b10-a3a2-9ed4135727ed].
Regards,
Surjith -
How to populate a custom field of a Std. SAP Tx with BAPI usage 2 Load data
Hi Experts,
For instance, I created a custom field (say, custom_field_1) on a screen of standard SAP tx(say, ME21N) by using screen exit. And in order to populate the data into it (custom_field_1), will use the Function user exits of this Tx(ME23N).
1) In next step, Where Where I have to add this field, apart from appending the same custom field in EKKO/EKPO table or any other related table; Extending the corresponding IDOC or creating a new Custom ÍDOC type? like What about BAPI?
2) If I got a text file with the data (including the data for this custom_field_1 too) and I have been asked to load it into SAP, then, I decided to use BAPI (say, BAPI_PO_CREATE or CREATE1) to create the data, So, How to handle this custom field, I mean, In which BAPI structure I have to pass this custom_field_1 data? ( Iguess, for some BAPIs EXTENSIONIN structures are provided, sorry if am wrong!)
Thank you.
Edited by: SAP ABAPer on Feb 21, 2009 7:40 PMfor example if you added field in the VBAP table then you can pass the custome field values like below
move 'BAPE_VBAP' to lwa_extension-structure.
lwa_bape_vbap-vbeln = lwa_final-vbeln.
lwa_bape_vbap-posnr = lv_posnr.
move lwa_final-yyslotid to lwa_bape_vbap-new custome field.
move lwa_bape_vbap to lwa_extension-valuepart1.
append lwa_extension to lt_extension.
clear lwa_extension.
move 'BAPE_VBAPX' to lwa_extension-structure.
lwa_bape_vbapx-vbeln = lwa_final-vbeln.
lwa_bape_vbapx-posnr = lv_posnr.
move 'X' to lwa_bape_vbapx--new custome field.
move lwa_bape_vbapx to lwa_extension-valuepart1.
append lwa_extension to lt_extension.
clear lwa_extension.
call function 'BAPI_SALESORDER_CHANGE'
exporting
salesdocument = strcture
order_header_inx = strcture
tables
order_item_in =strcture
order_item_inx = strcture
schedule_lines = strcture
schedule_linesx = strcture
extensionin = lt_extension. -
How to populate internal table field with text data?
Hello Experts,
I was able to load text file to a internal table but data is not populating each field. Can someone help me how to populate each field of internal table from text file?
Here is the text file:
io_name, io_type, io_txsht, io_txlng, io_datatype, io_length
ZEA_IO1, CHA, IO Test, IO Test 1, CHAR, 20
ZEA_IO2, CHA, IO Test, IO Test 2, CHAR, 20
Here is the Code:
*& Report ZAS_BAPI_TEST *
*& InfoObject Creation through BAPI.
*& Read the Text file, call a BAPI to create InfoObjects. *
*& Text file will hold the Info Object Structure. Text file will be *
*& located either work station or local PC.
*& Step 1. Create internal table to hold InfoObject structure *
*& Step 2. Retrieve/Load text file into Internal Table structure *
*& Step 3. Call BAPI Function to Create IO *
*& Step 4. Call BAPI Function to Activate IO *
REPORT ZAS_BAPI_TEST .
Make data separator a comma
CONSTANTS: gc_tab TYPE c VALUE ','.
Declaring Internal table for creating InfoObject
DATA: p_file TYPE string.
DATA: BEGIN OF itab-bapi OCCURS 0,
io_name like BAPI6108-infoobject,
io_type like BAPI6108-type,
io_txsht like BAPI6108-textshort,
io_txlng like BAPI6108-textlong,
io_datatype like BAPI6108-datatp,
io_length like BAPI6108-intlen,
END OF itab-bapi.
DATA ibapi LIKE STANDARD TABLE OF itab-bapi.
PARAMETERS: sel_file(1500) TYPE c default ' ' OBLIGATORY LOWER CASE.
PUT THE TEXT FILE PATH TO P_FILE
p_file = sel_file.
Copy the file from the workstation to the server ****
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = p_file
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = SPACE
HEADER_LENGTH = 0
DAT_MODE = SPACE
CODEPAGE = SPACE
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
READ_BY_LINE = 'X'
IMPORTING
FILELENGTH =
HEADER =
TABLES
data_tab = itab-bapi[]
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
not_supported_by_gui = 17
error_no_gui = 18
OTHERS = 19.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
MESSAGE e012(zea_spms) WITH 'Method' 'GUI_UPLOAD' sy-subrc.
&1 &2 issued return code &3
ELSE.
pit_data[] = lit_data[].
ENDIF.
ENDIF.
loop at itab-bapi.
write: /5 itab-bapi-io_name,
20 itab-bapi-io_type,
30 itab-bapi-io_txsht,
50 itab-bapi-io_txlng,
75 itab-bapi-io_datatype,
85 itab-bapi-io_length.
endloop.
SELECT THE LOCATION FOR TEXT FILE
AT SELECTION-SCREEN ON VALUE-REQUEST FOR sel_file.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
def_filename = ''
def_path = 'C:\'
mask = ',Documentos de texto (*.txt), *.txt.'
mode = ''
IMPORTING
filename = p_file
EXCEPTIONS
inv_winsys = 1
no_batch = 2
selection_cancel = 3
selection_error = 4
OTHERS = 5.
find '.txt' IN p_file.
if sy-subrc <> 0.
concatenate p_file '.txt' into sel_file.
else.
sel_file = p_file.
endif.
Create InfoObject through BAPI Function
*CALL FUNCTION 'BAPI_IOBJ_CREATE'.
*IMPORTING
VALUE(DETAILS) LIKE BAPI6108 STRUCTURE BAPI6108
*EXPORTING
VALUE(INFOOBJECT) LIKE BAPI6108-INFOOBJECT
VALUE(RETURN) LIKE BAPIRET2 STRUCTURE BAPIRET2
TABLES
COMPOUNDS STRUCTURE BAPI6108CM OPTIONAL
ATTRIBUTES STRUCTURE BAPI6108AT OPTIONAL
NAVIGATIONATTRIBUTES STRUCTURE BAPI6108AN OPTIONAL
ATRNAVINFOPROVIDER STRUCTURE BAPI6108NP OPTIONAL
HIERARCHYCHARACTERISTICS STRUCTURE BAPI6108HC OPTIONAL
ELIMINATION STRUCTURE BAPI6108IE OPTIONAL
RETURNTABLE STRUCTURE BAPIRET2 OPTIONAL
Activate InfoObject through BAPI Function
CALL FUNCTION 'BAPI_IOBJ_ACTIVATE_MULTIPLE'
*ENDFORM. " RETRIEVE_DATASET
I appreciate your help.
Regards,
MauI have used tab delimited file.
Here are file contents
io_name io_type io_txsht io_txlng io_datatype io_length
ZEA_IO1 CHA IO Test IO Test 1 CHAR 20
ZEA_IO2 CHA IO Test IO Test 2 CHAR 20
And here is program used
*& Report ZAS_BAPI_TEST *
*& InfoObject Creation through BAPI.
*& Read the Text file, call a BAPI to create InfoObjects. *
*& Text file will hold the Info Object Structure. Text file will be *
*& located either work station or local PC.
*& Step 1. Create internal table to hold InfoObject structure *
*& Step 2. Retrieve/Load text file into Internal Table structure *
*& Step 3. Call BAPI Function to Create IO *
*& Step 4. Call BAPI Function to Activate IO *
REPORT ZAS_BAPI_TEST .
Make data separator a comma
CONSTANTS: gc_tab TYPE c VALUE ','.
Declaring Internal table for creating InfoObject
DATA: p_file TYPE string.
DATA: BEGIN OF itab-bapi OCCURS 0,
io_name like BAPI6108-infoobject,
io_type like BAPI6108-type,
io_txsht like BAPI6108-textshort,
io_txlng like BAPI6108-textlong,
io_datatype like BAPI6108-datatp,
io_length like BAPI6108-intlen,
END OF itab-bapi.
DATA ibapi LIKE STANDARD TABLE OF itab-bapi.
PARAMETERS: sel_file(1500) TYPE c default ' ' OBLIGATORY LOWER CASE.
PUT THE TEXT FILE PATH TO P_FILE
p_file = sel_file.
Copy the file from the workstation to the server ****
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = p_file
<b>FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'</b>
TABLES
data_tab = itab-bapi[]
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
not_supported_by_gui = 17
error_no_gui = 18
OTHERS = 19.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
MESSAGE e012(zea_spms) WITH 'Method' 'GUI_UPLOAD' sy-subrc.
&1 &2 issued return code &3
ELSE.
pit_data[] = lit_data[].
ENDIF.
ENDIF.
loop at itab-bapi.
write: /5 itab-bapi-io_name,
20 itab-bapi-io_type,
30 itab-bapi-io_txsht,
50 itab-bapi-io_txlng,
75 itab-bapi-io_datatype,
85 itab-bapi-io_length.
endloop.
SELECT THE LOCATION FOR TEXT FILE
AT SELECTION-SCREEN ON VALUE-REQUEST FOR sel_file.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
def_filename = ''
def_path = 'C:\'
mask = ',Documentos de texto (*.txt), *.txt.'
mode = ''
IMPORTING
filename = p_file
EXCEPTIONS
inv_winsys = 1
no_batch = 2
selection_cancel = 3
selection_error = 4
OTHERS = 5.
find '.txt' IN p_file.
if sy-subrc <> 0.
concatenate p_file '.txt' into sel_file.
else.
sel_file = p_file.
endif.
Create InfoObject through BAPI Function
*CALL FUNCTION 'BAPI_IOBJ_CREATE'.
*IMPORTING
VALUE(DETAILS) LIKE BAPI6108 STRUCTURE BAPI6108
*EXPORTING
VALUE(INFOOBJECT) LIKE BAPI6108-INFOOBJECT
VALUE(RETURN) LIKE BAPIRET2 STRUCTURE BAPIRET2
TABLES
COMPOUNDS STRUCTURE BAPI6108CM OPTIONAL
ATTRIBUTES STRUCTURE BAPI6108AT OPTIONAL
NAVIGATIONATTRIBUTES STRUCTURE BAPI6108AN OPTIONAL
ATRNAVINFOPROVIDER STRUCTURE BAPI6108NP OPTIONAL
HIERARCHYCHARACTERISTICS STRUCTURE BAPI6108HC OPTIONAL
ELIMINATION STRUCTURE BAPI6108IE OPTIONAL
RETURNTABLE STRUCTURE BAPIRET2 OPTIONAL
Activate InfoObject through BAPI Function
CALL FUNCTION 'BAPI_IOBJ_ACTIVATE_MULTIPLE'
*ENDFORM. " RETRIEVE_DATASET
This program is working fine. You can test it.
Only problem is as the column headings are big for some columns, they are getting truncated which you can always change by changing the column width in declaration
Please let me know if this helps.
ashish -
How to populate the logical_group field in V_LTDX (table for layouts)?
Hi,
Scenario:
I have implemented the ALV using CL_SALV_TABLE. In the grid we have a 'Choose Layout' button where we have the options of choose, change, manage etc. the layouts. If we create a layout, the layout is saved in the table LTDX(view: V_LTDX).
Issue:
How do we populate the 'Logical_group' field in the table while creating/changing the layouts?
Please suggest..
Regards
s@kSolved..:)
Solution:
While creating the ALV grid, use the method 'get_layout' of the class CL_SALV_TABLE and get the reference of the layout in a reference variable.
Data:
gw_key TYPE salv_s_layout_key.
gr_layout = gr_grid->get_layout( ).
gw_key-report = sy-cprog.
gw_key-logical_group = gc_log_grp." Pass the logical group here say logical group: 0001, 0002, etc. for each ALV
So, whenever you create/ change a layout on the ALV grid, the system automatically passes this logical group and saves it in the table LTDX.
Regards
s@k
Maybe you are looking for
-
Background Processing, Selection Screens and Variants
Hi All, I am having a little trouble Background Processing with Selection Screens and Variants. When a user runs my report and selects the option of background processing, then they select a checkbox. Once this is checked, they should go and fill in
-
Are there cables that directly connect your iPod to your TV so you can watch a movie that's on your iPod on your TV?
-
what is edi and how it can differ from bdc.....?
-
How to use host command for creating folders
i want to create a folder called abc in my C drive using forms 6i. how can i do it using Host command?
-
Presently data ownership has been applied.But there is a problem. For eg sales person logs on the system and makes a sales order and is displayed rightly as a owner.Now a warehouse person logs on and makes a pick list and he is also displaye