Field MCEKKO-KZKPF in POOL of 2LIS_02_ITM
Hello Guys,
In the data-source 2LIS_02_ITM, in LBWE-> Maintain -> We have a field as KZKPF - Header COunter field.
Can anyone please tell me what does this 'Header Counter' field stands for?
Does this help us counting the Unique Header Documents with different Document Line Nos?
For ex: Will it help me in achieving below scenario:
Doc No Doc Line Item KZKPF - Header Counter
1 a 1
1 b 0
1 c 0
2 a 1
3 a 1
Basically will it help me count the Unique documents with different Line Items? And for the other repeating instances of the same Document no. wont be counted?
Early reply to be awarded.
Regards
We achieved this by using exception aggregation.
We created a custom key figure and assigned it 1 for each sales order line item. When you create this key figure you can choose the exception aggregation characteristic as sales order number in the aggregation tab. So it will cumulate across unique sales orders.
Hope that helps.
Similar Messages
-
How to Add F4 Help To a Screen Field In a Module Pool Program
Hi Friends,
1. How to Add F4 Help To a Screen Field In a Module Pool Program?
2. How to select a single cell in ALV report output for interactive reporting ?
Kindly give code example.
regards,
PradeepHi,
Try using the fm 'F4IF_INT_TABLE_VALUE_REQUEST'.
Refer the link below for selecting single cell.
alv
Reward points if useful.
Regards
Rose -
How to validate the field values in module pool program?
Hi Guys
I am working with module pool programming.
Here I want to validate the fields like below.
with out filling all the fields if I click SAVE option it has to show a message that all fields has to be filled. This can be done by checking all the fields individually.
I think it can be done through <b>LOOP AT SCREEN ......ENDLOOP</b>. sequence.
If it is possible, can anyone help me?You need to write the Module in between the CHAIN and ENDCHAIN statment in SE51
If you send a warning or error message from a module <mod> that you called using a FIELD statement as follows:
CHAIN.
FIELD: <f1>, <f 2>,...
MODULE <mod1>.
FIELD: <g1>, <g 2>,...
MODULE <mod2>.
ENDCHAIN.
all of the fields on the screen that belong to the processing chain (all of the fields listed in the field statements) are made ready for input again. Other fields are not ready for input. Whenever the MODULE statement appears within a processing chain, even if there is only one FIELD attached to it, all of the fields in the chain (not only the affected field) are made ready for input again, allowing the user to enter new values. If the fields in the processing chain are only checked once, the PAI processing continues directly after the FIELD statement, and the preceding modules are not called again.
Look at the DEMO program DEMO_DYNPRO_FIELD_CHAIN.
ashish -
Field validation in Module Pool
Hi,
In my module pool, on main screen there are various fields, now out of these i've to give validation for 4 fields through a drop down field such that:
There are 2 items in my drop down, when 1st item of drop down is clicked then out of 4 fields for which i've to give validation, 2 should be Active (should take input) and other 2s should be inactive.
And if I click the 2nd item of dropdown then there shoud be vice versa(inactive ones should b active now and active ones should be inactive now).
Also got the function module VRM_SET_VALUES & a program DEMO_DYNPRO_DROPDOWN_LISTBOX for dropdown but don't know how can I use. If anybody can tell for either of or for both probs then will be a great help.Hi,
As for the question regarding (de)activating fields:
parameters: pa_list ... "your listbox
data: st_first_two type i value 1, "status of first two fields,
st_last_two type i value 0. "status of last two fields
at selection-screen. "in PAI
"determine status of fields depending of what was choosen
if pa_list = '1st_item'. "if first item picked
st_first_two = 1.
st_last_two = 0.
else. "2nd picked
st_first_two = 0.
st_last_two = 1.
endif.
"now change them
Loop at screen.
if screen-name CS 'First_field' or
screen-name CS 'Secodn_field'.
screen-input = st_first_two. "(de)activate first two fields
elseif screen-name CS 'Third_field' or
screen-name CS 'Fourth field'.
screen-input = st_last_two. "(de)activate last two fields
endif.
modify screen.
endloop.
This way you can in turn activate/deactivate your fields depending of the item picked in the listbox.
As for the question, this fm (VRM_SET_VALUES) is used to populate possible entires in the listbox in PBO (AT SELECTION-SCREEN OUTPUT) which user can later pick. It is usually used to fill data with your custom structure, not the DDIC one. Go through this demo and see step by step how data are populated to listobox (just before screen is displayed).
Also refer [this link|http://sap.niraj.tripod.com/id38.html]. It gives quite good explanation how it should be used.
Regards
Marcin -
Runtime change of field text in module pool
Hi All,
I have a requirement where I have 2 fields in module pool. Based on input of first field the text of second field is decided. i.e. we have to change the text of second field based on value of first screen.
How to handle this.
Edited by: Suchender Dagar on Nov 24, 2010 5:38 AMHi,
Define a variable w_field(20) type c.
Put a input/output field in the second screen ( with the name w_field ) where you want the text and change the attribute of that field by removing the tick input checkbox and then selecting the 2D attribute of tat field, this will make the field as text field.
Then in PBO of the screen screen write the code based on the First field fill the text in the seconf field.
Regards,
Madhukar Shetty -
Custom field added in Module pool is not reflecting in SRM Shopping cart
Hi all,
I have to add a custom field for Plant in the Ship-To address subscreen(BBPSC01) in Shooping cart in SRM.
I have added the field in the program "saplbbp_sc_ui_its" in screen 310.
But I think need to write the HTML code/Java script in HTML template to trigger the code from module pool.
As I am new to this scenario, can anyone please let me know the procedure to follow.
Thanks,
Rakesh.Hello Anubhav,
If your new customer fields are not displayed dynamically, re-generate Dynpro concerned using report BBP_DYNPROS_GENERATE.
Regards.
Lauurent. -
HOW to ADD F4 help to a field on SCREEN (MODULE POOL)
Hi,
How to add f4 help to a field in screen ..plz help
Regards,
SalehaHi Saleha,
In order to add F4 help to a field in modeule pool follow these steps:-
1. First go to SE11 and create your own search help( if you dont know how to create a search help please feel free to ask me, it is very easy).
2. Now in your module pool program program go to the layout of your screen.
3. Now when you see the attributes of this field in the Dict tab you will find the field Search Help. Now here you can specify the name of the search help you created in SE11.
There is also another mehtod to create the dynamic search help. eg:- in a posted document data get the Document nos related to that company code.
The sample code is like this:-
First of all declare the module below in the flow logic of your screen then create it in your main program.
You declare the module in the PROCESS ON VALUE-REQUEST.
PROCESS ON VALUE-REQUEST.
FIELD TXT_DOCNO MODULE VALUE_BELNR.
You also need to create an internal table where you wil store results of the select query fired below in the module.
here you will get a F4 help on the filed Document Number(TXT_DOCNO) based on the field Company code (TXT_CODCO)
MODULE VALUE_BELNR INPUT.
progname = sy-repid.
dynnum = sy-dynnr.
CLEAR: field_value, dynpro_values.
field_value-fieldname = 'TXT_CODCO'.
APPEND field_value TO dynpro_values.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'BKPF'
fieldname = 'BUKRS'
dynpprog = progname
dynpnr = dynnum
dynprofield = 'TXT_CODCO'.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = progname
dynumb = dynnum
translate_to_upper = 'X'
TABLES
dynpfields = dynpro_values.
READ TABLE dynpro_values INDEX 1 INTO field_value.
SELECT BUKRS BELNR
FROM BKPF
INTO CORRESPONDING FIELDS OF TABLE it_doc1
WHERE BUKRS = field_value-fieldvalue.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'BELNR'
dynpprog = progname
dynpnr = dynnum
dynprofield = 'TXT_BELNR'
value_org = 'S'
TABLES
value_tab = it_doc1.
ENDMODULE. " VALUE_BELNR INPUT
Hope you find this information useful, let me know.
Regards,
Aditya. -
How to deactivate the screen fields dynamically in Module Pool Program?
Hi guys,
How to <b>activate & deactivate the screen fields</b> of a <b>module pool program</b>
<b>dynamically</b> through program. Like Change mode and display mode in a single
screen.Hi,
Make use of a Variable,say gv_flag, for both Activate and Deactivate functionalities. As many times you hit the same button, change this variable value. For example, let us say first time you hit this button, assign value 'X' to this variable. Second time you hit this button, assign value ' ' to this variable. In PBO based the variable value you have to Activate and Deactivate.
PBO.
if gv_flag = 'X'. " Activate
loop at screen.
if screen-fname = 'ITAB1-MATNR'.
screen-input = '1'.
modify screen.
endif.
endloop.
elseif gv_flag = ' '. " Deactivate
if screen-fname = 'ITAB1-MATNR'.
screen-input = '0'.
modify screen.
endif.
endloop.
endif.
PAI.
case sy-ucomm.
when 'ACDC'. " Activate/Deactivate
if gv_flag = 'X'.
gv_flag = ' '.
else.
gv_flag = 'X'.
endif.
endcase.
thanks,
sksingh -
Screen Field Color in Module pool
Hi Experts,
I have a requirement like based on the field content i want to change the color to the screen field. I have written code like below. But i'm getting dump.
LOOP AT SCREEN.
IF screen-group1 = 'G02'.
screen-color = 'C411'. -
> Getting dump here
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Please tell me whether it is possible to give color in module pool or not.
Thanks and Regards,
nag.Hi Sam,
Thanks for ur reply. I have tried using only integers.But i'm not getting color. My code is below
LOOP AT SCREEN.
IF screen-group1 = 'G02'.
screen-color = '411'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
color is INT4 type rite but we are passing only 3 characters to screen-color.But i didn't color to my field. -
Field cat. & Text pools
Hi Experts,
What r Text pools?
What r field catalogues in defination(I know, they r used in ALVs to display the fields in ALV with many attributes edit, save etc.)?
ThanQ.<i>What r field catalogues in defination(I know, they r used in ALVs to display the fields in ALV with many attributes edit, save etc.)?</i>
You answered your own question here, FCs are used to define the columns in the output of the ALV grid.
Regards,
Rich Heilman -
How to pass the field value from module pool program to smartform using submit?
// AT pai of module pool pgm i entered the following: here gv_orderid is my value to be available at smart form(driver pgm) & zmusic_store_smf is the driver program of my smartform.
gv_orderid= wa-itemid./
SUBMIT ZMUSIC_STORE_SMF VIA SELECTION-SCREEN
WITH p_order = gv_orderid
AND RETURN.
//AT driver pgm(zmusic_store_smf):
START-OF-SELECTION.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZMUSIC_SMARTFORM1'
* VARIANT = ' '
* DIRECT_CALL = ' '
IMPORTING
fm_name = lv_form
EXCEPTIONS
no_form = 1
no_function_module = 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.
CALL FUNCTION lv_form
EXPORTING
* iv_orderid = is_purchase_item-zorder_id.
iv_orderid = gv_orderid.
// here i'm trying to call my smartform('ZMUSIC_SMARTFORM1') from this driver pgm but unable to access the value of gv_orderid please help me out with this.Declare the gv_orderid in modulepool program.
And Declare the parameter as import parameter in smartform.
CALL FUNCTION lv_form
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
* CONTROL_PARAMETERS =
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
* OUTPUT_OPTIONS =
* USER_SETTINGS = 'X'
i_input = gv_orderid
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
* EXCEPTIONS
* FORMATTING_ERROR = 1
* INTERNAL_ERROR = 2
* SEND_ERROR = 3
* USER_CANCELED = 4
* OTHERS = 5 -
How to track changes to fields in a Module Pool Program
Hi Experts,
I have one requirement to track the changes to some fields used in the Program, The fields for tracking the changes will be maintained in a table T1, this will be changed dynamically.
There are many screens in the program and many fields in each screen.
1. How to do the coding for tracking the changes, the code should track all the changes to the fields maintained in the table T1.
Thanks in Advance.
BaburajHi Baburaj,
The table logging concept will helpful for this requirement.(Tcode: scu3 --> give table name --> u can find changes for all fields).
Make use of concept change documents (auditing purpose used) --> CDHDR,CDPOS tables.
If you want to track changes to your own program, You need write some API to store the data.
Regards
Bhupal Reddy -
Changing Field Labels of module pool screen dynamically
Hi All,
Can anybody tell me how to change field label of text field in dialog screen dynamically.
The Screen/Transaction is standard one.
I have created a Enhancement point for this change in one of PBO module's subroutine for this screen.
This Field label is defined as a 'Text' field only. We can't change it any more as it is standard one.
Can anybody tell me the solution for the same.
I have to change this label value as per some validations and its corresponding text field value will remain as is.
Thanks,
Deep.Hello,
I think it is not possible, but try changing the name by Looping on screen table on PBO,
Bye
Gabriel -
Applying search help on the screen fields of a module pool program
hi all
i am creating a sales order against a purchase order i am stuck at applying the search helps
i have header data (only mandatory fields),items data,partner data(all mandatory fields)
i want to have input search help as if i select sales document type then corresponding sales organizations should appear and when i select all the header data the search help that is on the material number and partners role and number should appear corresponding to that header data
i found following search helps as:-
h_vakz and h_mvke
not able to apply please guide someone
thanks
varuni want to have input search help as if i select sales document type then corresponding sales organizations should appear
This would be quite opposite of what h_vakz does. h_vakz gives Sales document based on Sales org..and you want vice versa. Create a simple SH with
selection method : TVAKZ
AUART as importing only
VKORG as exporting only. So when you enter an AUART you get all VKORG it is defined in. I'm not aware of a standard search help which matches the requirement. If anybody does please help me.
i have header data (only mandatory fields),items data,partner data(all mandatory fields)
and when i select all the header data the search help that is on the material number and partners role and number should appear corresponding to that header data
You will have to be more specific sir..
not able to apply please guide someone
As for that just mention them in SCREEN->ELEMENT LIST->REFERENCES -
Validations on the screen fields in a module pool program
Hi all
i am creating a sales order against a purchase order ,i am selecting a PO click on a button to call another screen which has all the mandatory fields of the SO i want validations on the screen fields or the input fields as when i enter the header data and the items data and the partner data from the input serach help that is already enabled on the screen fields ,if there is any mismatch among the fileds and an error message is displayed for example:-" material no 100-100 does not exist for sales area" then only that field where this message is present should be field enabled and the rest of the fields should be field disabled.
also the error message i m displaying is in short text form and not in long text i clicked on it (long text) however how to use it was not known to me .
thanks
varun
Moderator message: please do more research before asking, try solving problems yourself first, look for previous discussions of similar issues, post texts in more readable format, you have been warned several times before.
Edited by: Thomas Zloch on Feb 7, 2012i want to have input search help as if i select sales document type then corresponding sales organizations should appear
This would be quite opposite of what h_vakz does. h_vakz gives Sales document based on Sales org..and you want vice versa. Create a simple SH with
selection method : TVAKZ
AUART as importing only
VKORG as exporting only. So when you enter an AUART you get all VKORG it is defined in. I'm not aware of a standard search help which matches the requirement. If anybody does please help me.
i have header data (only mandatory fields),items data,partner data(all mandatory fields)
and when i select all the header data the search help that is on the material number and partners role and number should appear corresponding to that header data
You will have to be more specific sir..
not able to apply please guide someone
As for that just mention them in SCREEN->ELEMENT LIST->REFERENCES
Maybe you are looking for
-
Migrating from weblogic 8 to 10.3
Hi, i'm current migrating my codes from 8 to 10.3. However upon deployment, i encounter some problems. I have recompile my codes using the JDK 6. External framework i'm using are Struts 1.2.9, Hibernate 3.1.2 and Spring 1.2.6 When i install my codes
-
After effects CS5 quit unexpectedly on launch
I just install a trial version of CS5 creative suite that I download directly from Adobe. After I install successfully, I tried to open after effects and it crash on launch, as well as my other CS5 program, they just crash. Please anyone with any ad
-
Why can't I connect via Bluetooth on iPhone 5
I am unable to connect anything via Bluetooth on my iPhone 5. It constantly searches but never finds anything. Help need to be able to use my hands free ear piece. Any advise appreciated :-/
-
Can't set up netgear wndr4000 router on IPad
I set up a new netgear wireless router & am having problems setting it up on my ipad. It pulls up the network name but then when I select "join" it brings me to a screen to input ip address, subnet mask, router, dns, client id - none of which can be
-
How to create an UTF-8 file.
Hello, I want to create a file with an UTF-8 encoding, but I am experiencing a lot of problems. The problem is not in the encoding of the content but in the encoding of the file. What is happening is that if I open the file with an editor (ex. ULTRA-