CSS: MSISDN Header Fields used in header and adv-lb cmd
Hi Folks,
I have checked the docs to see if the CSS will specifically use header fields in HTTP when it is configured with advanced-blanced wap-msisdn in the content config or the msisdn field in the header-field config. Or does it match with any header which has MSISDN in the entire field?
BR
Alan
Using an HTTP header field group in a Layer 5 content rule enables a rule to be more specific than if the rule just defined a URL. The HTTP header field group makes the content match more specific. Because content rules are hierarchical, if a request for content matches more than one rule, the characteristics of the most specific rule apply to the flow. This hierarchy for Layer 5 rules is defined below. The CSS uses this order of precedence to process requests for the content, with 1 being the highest match and 4 being the lowest match.
Domain name, IP address, protocol, port, URL, HTTP header field group
IP address, protocol, port, URL, HTTP header field group
Domain name, protocol, port, URL, HTTP header field group
Protocol, port, URL, HTTP header field group
Similar Messages
-
I want to display some fields using the BDC and i want to know thruogh whic
I want to display some fields using the BDC and i want to know thruogh which transaction these fields are displayed.Could you please help me out.
You can use JFreeChart which is a free and good tool to generate graphs in Java. It has samples and other guides which you can use to get started...
-
Http - http redirection using header-field rule
Hi,
Is it possible to configure an http -> http redirection using header-field rules if the CSS is NOT performing the SSL encryption/decryption ?
We can get the redirect working not using the header-field rule but not with it configured.
cheers,
MikeGilles,
The header-field rule works to redirect the http traffic to a specific service, but we also want the header-field rule config under the port 443 content rule.
Can the CSS see the header or is it encrypted ?
service 10.10.10.1-443
ip address 10.10.10.1
protocol tcp
port 443
keepalive maxfailure 2
keepalive retryperiod 45
keepalive frequency 45
keepalive type script testscript "10.10.10.1 4000 3179 archepns"
active
service 10.10.10.2-443
ip address 10.10.10.2
protocol tcp
port 443
keepalive maxfailure 2
keepalive retryperiod 45
keepalive frequency 45
keepalive type script testscript "10.10.10.2 4000 3179 archepns"
active
service archepns_redirect
keepalive type none
type redirect
no prepend-http
ip address 1.1.1.1
domain https://www-knowledge-epe.company.com
active
header-field-group archepns_url
header-field Request-Line request-line contain "/archepns"
header-field-group archepns_url2
header-field Request-Line request-line contain "/archepns"
content archepns-redirect-sso
vip address 20.20.20.1
protocol tcp
port 80
url "/*"
header-field-rule archepns_url weight 0
add service archepns-redirect
active
content archepns-443
vip address 20.20.20.1
port 443
url "/*"
header-field-rule archepns_url weight 0
add service 10.10.10.1-443
active
content archepns-redirect-sso
vip address 20.20.20.1
protocol tcp
port 80
url "/*"
header-field-rule archepns_url2 weight 0
add service archepns-redirect
active
content archepns-443
vip address 20.20.20.1
port 443
url "/*"
header-field-rule archepns_url2 weight 0
add service 10.10.10.2-443
active -
SAP PI: Using Variable Header Binding in Receiver Mail Adapter
Hello,
I try to use Variable Header Bindings in the Receiver Mail Adapter. Therefore I wrote the following User-Defined-Function in a mapping:
Java Function Start -
DynamicConfiguration conf = (DynamicConfiguration) container
.getTransformationParameters()
.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key1 = DynamicConfigurationKey.create(
"http://sap.com/xi/XI/System/Mail",
"XHeaderName1");
DynamicConfigurationKey key2 = DynamicConfigurationKey.create(
"http://sap.com/xi/XI/System/Mail",
"XHeaderName2");
DynamicConfigurationKey key3 = DynamicConfigurationKey.create(
"http://sap.com/xi/XI/System/Mail",
"XHeaderName3");
conf.put(key1, new String("Test1"));
conf.put(key2, new String("Test2"));
conf.put(key3, new String("Test3"));
Java Function End -
As expected I see the Attributes and Parameters in the Dynamic Configuration in the SAP XI Monitor:
Dynamic Configuration Informattion Start -
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Mapping der Request-Message
-->
- <SAP:DynamicConfiguration xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="XHeaderName3">Test3</SAP:Record>
<SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="XHeaderName2">Test2</SAP:Record>
<SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="XHeaderName1">Test1</SAP:Record>
</SAP:DynamicConfiguration>
Dynamic Configuration Informattion End -
Now I configure my Receiver eMail Communication Channel and set the Variable Header Fields as follows:
Adapter Specific Attributes: Checked
Variable Transport Binding: Checked
Variable Header (XHeaderName1): TSender
Variable Header (XHeaderName2): TReceiver
Variable Header (XHeaderName3): TOther
With this configuration I would have expected three new Header fields in the Header of the eMail, the reicever gets. But they are not there.
When I set standard attributes like THeaderTO, THeaderSubject a.s.o this works fine and the values are also set accordingly. Where it the mistake here?
The PI version we are working with is PI 7.0 SP10.
Your help will be highly appreciated.
Thank you,
SteffenHi Luciana,
Honestly, I cant really remember how or if it was resolved and I was just helping out on the issue, but another consultant continued with it, so unfortunately I cant be any help on this.
Good luck!
Cheers,
Brad -
Browser modifies http accept header field set by applet
My problem: I have an applet which emulates a wml-browser. The applet is running in Internet Explorer 5. I can access all http-header fields from the applet and all settings made by the applet are honored.
But not the accept header-field... I can set it, but it is always modified afterwards by Internet Explorer or Netscape... It always include accept: text/html while it should only accept wml
Thanx in advance,
MarcoMy problem: I have an applet which emulates a
wml-browser. The applet is running in Internet
Explorer 5. I can access all http-header fields from
the applet and all settings made by the applet are
honored.
But not the accept header-field... I can set it, but
it is always modified afterwards by Internet Explorer
or Netscape... It always include accept: text/html
while it should only accept wml
Thanx in advance,
Marco
Question is ofcourse: How can I prevent this unwanted behaviour of the browser in which the applet is running?
Marco -
BSP - How to set header-field "no-store"
Hello.
I need to set the HTTP-header-field "no-store" in a BSP-application. The Problem is, that i do'nt know, how to do this.
I just do'nt know, which strings have to be passed to the method "set_header_field". The W3C-RFC gives the following information:
Cache-Control = "Cache-Control" ":" 1#cache-directive
cache-directive = cache-request-directive
| cache-response-directive
cache-request-directive =
"no-cache" ; Section 14.9.1
| "no-store" ; Section 14.9.2
| "max-age" "=" delta-seconds ; Section 14.9.3, 14.9.4
| "max-stale" [ "=" delta-seconds ] ; Section 14.9.3
| "min-fresh" "=" delta-seconds ; Section 14.9.3
| "no-transform" ; Section 14.9.5
| "only-if-cached" ; Section 14.9.4
| cache-extension ; Section 14.9.6
cache-response-directive =
"public" ; Section 14.9.1
| "private" [ "=" <"> 1#field-name <"> ] ; Section 14.9.1
| "no-cache" [ "=" <"> 1#field-name <"> ]; Section 14.9.1
| "no-store" ; Section 14.9.2
| "no-transform" ; Section 14.9.5
| "must-revalidate" ; Section 14.9.4
| "proxy-revalidate" ; Section 14.9.4
| "max-age" "=" delta-seconds ; Section 14.9.3
| "s-maxage" "=" delta-seconds ; Section 14.9.3
| cache-extension ; Section 14.9.6
cache-extension = token "=" ( token
I already tried some combinations, but none of them worked. As i have already searched the SDN-Forum and google, i hope that somebody in this forum knows, how to do the trick...
Regards
Jörg NeumannHello Cornelia.
I have tried setting the header field "max-age=0" and copied the set_header_field-instructions into the eventhandler OnInputProcessing, but this does not solve the problem - it made it even worse.
After setting the header-field "max-age=0", the browser read the page from the local cache for EVERY click on the back-button.
This seemed a little weird to me and so i started testing around...
I am of the oppinion, that the 3 function-calls are overwriting the content of the field "Cache-Control".
Adding the header-fields in the following sequence leads to the "50%-problem" described above:
CALL METHOD response->set_header_field( name = 'Cache-Control' value = 'max-age=0' ).
CALL METHOD response->set_header_field( name = 'Cache-Control' value = 'no-cache' ).
CALL METHOD response->set_header_field( name = 'Cache-Control' value = 'no-store' ).
Any sequence, in which "no-store" was not the last field added, made the browser read the page from the cache for every click on the back-button.
So i think, that i have to set all of the 3 fields, you suggested, and i am only setting one because every function call overwrites all Cache-Control-Directives.
If my conclusions are right, the field Cache-Control should be sort of a "structure" and i have to set 3 of its fields...
Regards
Jörg Neumann -
User exits used in sales and distribution?
i need some user exits that we commonly used in sd. please if somebody has worked on user exits . and how are they used..
points will be awarded to all for replying...
thanks in advance
Neha.Hi refer below
It is most common that one or other time we need to use this function while configuring multi tasking & complex Prcing Architecture.
Here Iam giving a simple guide to add fields to the Pricing Field Catalogues:
For example you want to use field PSTYV ('Sales document item category') that is included in structure KOMP ('Pricing Communication Item') as a key for a condition table.
When you create a condition table (Transaction V/03), however, the system does not propose the field in the field catalog.
Condition access, field catalog, allowed fields, KOMG, KOMK, KOMP, KOMPAZ, KOMKAZ, PSTYV are the other terms which we need to know about, to add Fields.
Reason and Prerequisites
For technical reasons, field PSTYV was included in structure KOMP, however, not in structure KOMG ('Allowed Fields for Condition Structures').
Proceed as follows:
1. Call up the ABAP Dictionary (Transaction SE11) and create data type ZZPSTYV. Choose PSTYV as a domain.As a short text, you can use, for example, 'ZZ - sales document item category' and as a field label, you can use the field labels of PSTYV.Save, check and activate your entries.
2. Call up structure KOMPAZ in the ABAP Dictionary (Transaction SE11) in the change mode and make the following entry:
Component Component type
ZZPSTYV ZZPSTYV
Save, check and activate the change you made.
3. Note:Because of the change in structure KOMPAZ, field ZZPSTYV is now known in structures KOMG and KOMP because structure KOMPAZ is included in both structures.
4. Call up Transaction SPRO. Navigate to 'Sales and Distribution -> Basic Functions -> Pricing -> Pricing Control' and execute 'Define Condition Tables'.
Choose 'Conditions: Allowed fields' and include ZZPSTYV as a new entry.
5. Note:Now you can use field ZZPSTYV as a key field when you create a condition table Axxx.
6. Supply the new field you defined by including the following source code line in USEREXIT_PRICING_PREPARE_TKOMP:
MOVE xxxx-PSTYV TO TKOMP-ZZPSTYV.
In order processing you find the user exit in Include MV45AFZZ, and in billing document processing you find it in Include RV60AFZZ.
Consider that you can also use this note as a help if you want to use other customer-specific fields as key fields in a condition table.
For header fields, use structure KOMKAZ instead of structure KOMPAZ and USEREXIT_PRICING_PREPARE_TKOMK instead of USEREXIT_PRICING_PREPARE_TKOMP.
For more information, see Transaction SPRO via the path 'Sales and Distribution -> System Modifications -> Create New Fields (Using Condition Technique) -> New Fields for Pricing' and OSS Note 21040.
USEREXIT
Userxits allow us to add our own functionality to SAP standard program
without modifying it . These are implemented in the form of subroutines and hence are also known as FORM EXITs. The userexits are generally collected in includes and attached to the standard program by the SAP.
All Userexits start with the word USEREXIT_...
FORM USEREXIT_..
z..
ENDFORM.
The problem lies in finding the correct userexit and how to find it if one exists for the purpose. Once the correct userexit is found the necessary
customer code is inserted in the customer include starting with the z..
in the form routine.
e.g. USEREXIT_SAVE_DOCUMENT_PREPARE
Certain application like SD still provide this form of enhancement using userexit but this practice is no longer being followed for newer extensions
instead they are using EXITs which come bundeled in enhancement packages . Neverthiless existing USEREXITS will be supported by SAP an all the newer versions of SAP.
HOW TO FIND USEREXITS
Userexits can be found in number of ways:
1) To find userexits in SD module , goto object navigator(SE80) and select
development class from the list and enter VMOD in it. All of the userexits in SD are contained in the development class VMOD. Press
enter and you will find all the includes which contain userexits in SD for
different functions like PRICING, ORDER PROCESSING etc. Select the userexit according to the requirement and read the comment inserted in it
and start coding .
Some examples of userexits in SD(SALES & DISTRIBUTION ) are:
1)ADDING OF NEW FIELDS IN PRICING
In Pricing in SD the fields on the basis of which pricing is done are derived from the FIELD CATALOG which is a structure KOMG .This structure is used to transfer transaction data to the pricing procedure in SD and is also known as communication structure.This structure KOMG consists of two tables KOMK for Header related fields and KOMP for item related fields.
The fields which are not in either of the two tables KOMK and KOMP
cannot be used in pricing .Sometimes a need arises when the pricing
is to be based on some other criteria which is not present in the form of fields in either of the two tables.
This problem can be solved by using USEREXITS which are provided for pricing in SD.
Pricing takes place both when the SALES ORDER ( Transaction VA01) is created as well as when INVOICING ( Transaction VF01) is done.Hence SAP provides 2 userexits ,one for sales order processing which is
USEREXIT_PRICING_PREPARE_TKOMP or
USEREXIT_PRICING_PREPARE_TKOMK
Depending upon which table (KOMK or KOMP) the new fields were inserted we use either of the above two userexits.These userexits are found in include MV45AFZZ of the standard SAP sales order creation program SAPMV45A.
In the case of userexit which will be called when invoicing is done ,these
are provided in the include RY60AFZZ which is in the standard SAP
program SAPMV45A. The name of the userexits are same. i.e
USEREXIT_PRICING_PREPARE_TKOMP or
USEREXIT_PRICING_PREPARE_TKOMK
These userexits are used for passing the data from the communication structure to the pricing procedure, for this we have to fill the newely
created field in the communication structure KOMG for this we fill the code in the above userexit using the MOVE statement after the data that
has to be passed is taken from the database table by using the SELECT statement. The actual structure which is visible in these userexits and which is to be filled for that particular field is TKOMP or TKOMK.
Before the coding for these userexits is done ,it is necessary to create a new field in either of the two tables KOMK or KOMP .For this purpose
includes are provided in each of them .
To create the field in header data(KOMK) the include provided is KOMKAZ
and to create the field in item data(KOMP) the include provided is KOMPAZ.
One possible example for the need of creating new fields can be e.g. Frieght to be based upon transportation zone ,for this no field is available in field catalog and hence it can be created in KOMK and then above userexits can be used to fill the transportation data to it.
2)The other method of finding userexit is to find the word USEREXIT in the
associated program of the transaction for which we want to determine userexit using SE38.
3)The other method of finding userexits is to find the include in case of SD/MM applications where the userexits are located ,this can be found in the SAP reference IMG generally in the subfolder under SYSTEM MODIFICATION.
Some other examples of userexits in SD are:
USEREXIT_NUMBER_RANGE
This userexit is used to assign a different internal document number to the
sales order(VA01) when it is created depending on some criteria like a different SALES ORGANIZAION(VKORG) .
USEREXIT_SAVE_DOCUMENT_PREPARE
This userexit is used to insert the ABAP code which will be called when
the document (sales order VA01) is just about to be saved.This userexit is used generally for custom checks on different fields , to display some information before the order will be saved or for making changes to certain fields before the sales order will be saved.
Exits & Enhancements
There are mainly six types of EXITs in sap which have been collected in the form of enhancement packages and attached to standard code in SAP.
These are different from USEREXIT in the way that they are implemented
in the form of FUNCTIONs while in USEREXITS we use form routines for their implementation. These are also sometimes known as function exits .
These start from the word EXIT_ followed by the program name and then followed by a three digit number.
e.g. EXIT_SAPMV45A_002
This exit is found in SD in enhancement V45A0002.
TYPES OF EXITS
1)MENU EXITS
2)FUNCTION EXITS
3)TABLE EXITS
4)SCREEN EXITS
5)KEYWORD EXITS
6)FIELD EXITS
We use SAP transactions CMOD and SMOD to manage exits. Before implementing an exit , it is required to create the project by using CMOD
selecting the enhancement e.g. V45A0002 and selecting the component
(one which fulfills our need) i.e the exit which will be implemented in SMOD and after coding has been done the project has to be activated.
An exit can be coded only once.
FUNCTION EXITS
These are used to add functionality through ABAP code . These start from the word EXIT_programname_NNN ending in a 3 digit number. No access code is required to implement any tupe of exit including function exits.
The function exits are called from the standard SAP program in the form
of ABAP statement
CALL CUSTOMER-FUNCTION 'NNN'
This is in contrast to USEREXITs where PERFORM statement is used to call
the required userexit.
To implement the FUNCTION EXITs first of all the project is created and a suitable enhancement package is selected and from its compnents the function exit to be implemented is selected and on double clicking it the exit code will appear in ABAP EDITOR(se38) where a Z include will be found and the customer code should be entered in this include.
e.g.
ADDING A DEFAULT SOLD-TO-PARTY in Sales Order Creation
To show a default sold-to-party in this field when the user creates a sales order (VA01) we can use a function exit .This function exit is located
in enhancement no V45A0002 . Before we can choose the exit we have to
create a project in CMOD after that enter V45A0002 in the enhancement field and click on the components . In the components you will see the
exit EXIT_SAPMV45A_002 . This exit is used for our purpose.
Double clicking on this exit will takes us to function builder (SE37) . This
function exit has one exporting parameters and two importing parameters, we are interested in exporting parameter which is E_KUNNR
of type KNA1-KUNNR i.e if we move the desired customer name to this
structure(E_KUNNR) it will be shown in the field as the default value when we create the sales order.
This function also contains a customer include ZXVVA04 . This include
will be used to write our custom code .
Double clicking on this include and it will prompt us that this include does not exists do you want to create this object ,select yes and the include will be created .In this include we can write our own code that will fill the field E_KUNNR.
e.g. E_KUNNR = 301.
Activate the include and Activate the project. Now when ever the SALES ORDER will be created , sold-to-party field will come up with a predefined
customer .
FIELD EXITS
The field exits are managed,created,activated through program RSMODPRF. The field exit is associated with a data element existing in ABAP dictionary and hence to the screen field using that data element.
The format of field exit is :
FIELD_EXIT_dataelement_A-Z or 0-9
If a particular screen and program name is not specified than the field exit will effect all the screens containing that data element.
The function module associated with field exit shows two parameters
INPUT and OUTPUT. Input parameter contains the data passed to the field exit when the field exit was invoked by the R/3 , We can write our own code to change the output parameter depending upon our requirements.
Before the field exit can have any effect the system profile parameter
ABAP/FIELDEXIT in all the application servers should be set to YES
ABAP/FIELDEXIT = YES. -
What is the use of EIN_FEDERAL and EIN_STATE_LOCAL fields in Voucher header record (PeopleSoft AP) ? And where can we check record field related information in PeopleBooks ?
Hi User,
The best place to search for questions like this one is OTN, Oracle Technology Network. If you have any question about CLOUD and partnering with Oracle we will be more than glad to help! Thanks. -
Delivery and Service Header Fields in RNIF Receiver Adapter for Rosettanet.
Hello all,
I need to populate the Delivery and Service header fields in Rosattenet MIME message in the receiver side.
For the sender side RNIF adapter, we can very well use the Adapter Specific message to get those fields from Rosattenet MIME message. But in my scenario, I need to use RNIF as the receiver, which will pick messages from other system and post it to RNIF.
Also, I have checked the receiver RNIF adapter, there I dont find any adapter specific messages to use.
Regards,
UPPrasad
You have not mentioned which RNIF Adapter you are using whether 1.1 or 2.0. I will assume that you are using 2.0.
If you are using Single action responder the parameters you should configure is given here:
http://help.sap.com/saphelp_nw2004s/helpdata/en/70/d89d40c1252a54e10000000a1550b0/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/fa/6b98403de08368e10000000a1550b0/content.htm
If you are using Two action responder the parameters you should configure is given here:
http://help.sap.com/saphelp_nw2004s/helpdata/en/6f/dc9d40759c2b54e10000000a1550b0/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/2c/7198403de08368e10000000a1550b0/content.htm
---Satish -
How i use header fields in soap adapter
Hi Experts,
I need use header fields http in soap adapter receiver but i don't know where's the Variable Header
Do you know where i find this?
Somebody know how i put header fields http in soap adapter receiver?
Thanks for all,It is similar like in this blog:
/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
Find in the online help the values for the SOAP adapter.
You can only add additional fields, you cannot influence the standard field like content-type and content-id.
Regards
Stefan -
Add field header in T-Code KKED and S_ALR_87013028
Hi! I need to add the field header in T-Code KKED and S_ALR_87013028.
a.) Customer Order Qty
b.) Min Production Qty
c.) Customer Target Price
d.) Selling Price
I'd review the coding many times and make me so confused. p/s: I'm beginner of abap.
Can anyone help me? Thanks~!try to look for the field catlog of the already existing table
and try to add this
by using exits or implicit enhancemnt -
Field on Document Header using BAPI for posting
Hi there.
I need to fill the BKPF-BRNCH field (the Branch Number header field in transaction FB01) to post a document by means of the BAPI_ACC_DOCUMENT_POST function module, but I haven't find the field in the DOCUMENTHEADER table, and I can't figure out how to fill it.
Can anyone help me...?
Thanks in advance.Hi
U can use the extension structure in order to transfer fields not managed by BAPI structure.
The BAPI BAPI_ACC_DOCUMENT_POST manages the extensions by 2 different way:
- BTE RWBAPI01
- BADI acc_document
In both methods u need to fill the BAPI structure for extension: parameter EXTENSION1 (BTE) like BAPIACEXTC and EXTENSION2 (BADI) like BAPIPAREX and then read the data of the extension and transfered them to ACCIT structure in the method above.
This is an example from my old program using BTE:
Fill extension paramenter:
ZSDFI_BAPI_EXTENSION-ITEMNO_ACC = ITEMNO_ACC.
ZSDFI_BAPI_EXTENSION-ESENZIONE = W_VENDOR-KIDNO.
MOVE ZSDFI_BAPI_EXTENSION TO EXTENSIONS.
APPEND EXTENSIONS.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
DOCUMENTHEADER = BAPIACHE09
TABLES
ACCOUNTGL = ACCOUNTGL
ACCOUNTPAYABLE = ACCOUNTPAYABLE
ACCOUNTTAX = ACCOUNTTAX
CURRENCYAMOUNT = CURRENCYAMOUNT
EXTENSION1 = EXTENSIONS
RETURN = RETURN.
Where ZSDFI_BAPI_EXTENSION is dictionary structure with the new fields.
In the BTE function module I transfer the data to ACCIT:
TABLES: ZSDFI_BAPI_EXTENSION.
DATA: _REPRF TYPE LFB1-REPRF.
LOOP AT EXTENSION.
MOVE EXTENSION TO ZSDFI_BAPI_EXTENSION.
LOOP AT IT_ACCIT WHERE POSNR = ZSDFI_BAPI_EXTENSION-ITEMNO_ACC.
IT_ACCIT-KIDNO = ZSDFI_BAPI_EXTENSION-ESENZIONE.
IT_ACCIT-ZLIFNR = ZSDFI_BAPI_EXTENSION-ZLIFNR.
IT_ACCIT-ZJ_3AKVGR6 = ZSDFI_BAPI_EXTENSION-CANALE.
IT_ACCIT-J_3AKVGR8 = ZSDFI_BAPI_EXTENSION-NEGOZIO.
IT_ACCIT-ZZAREAG = ZSDFI_BAPI_EXTENSION-AREA_GEOGRAFICA.
MODIFY IT_ACCIT.
ENDLOOP.
ENDLOOP.
Max -
Use field from file header record in detail records
Hi,
I receive a file with different records type (transmission header, file header, detail records, file footer). The fields in each record type are different. The transmission header tells me who the sender of the file is. I need this information, because I am merging data of various senders into one table.
When processing the files, I need to split each file according to recordtype. (I can not use the same logic for each recordtype). How can I populate an extra column in the detail files with the value from the header record?
What I tried so far is the following:
- Populate a global variable using a script: This does not seem to work in the context of dataflows.
- Create a 'join' between header record and detail record. However there are no fields I can join, so Data Services is not happy with that.
- Store the field value from the header record in a DS (I chose a cache datastore, memory datastore did not work in batch scenario. I feel I can get this to work, but it seems quite an elaborate and expensive solution: First Filter the header record from the file, write the required field to the cache datastore, then read the same file but now filter the detail records, and join this with the datastore.
Is there a better way to do this? I was hoping I could just use a script and read the first line of my file and move the value to a global variable....
It would be great if someone could give me some tips...
Many thanks,
Jan.Hi Werner,
I am not sure if I understand you correctly.
I have declared $State as a global variable, not as a parameter.
When I check my custom function I do get a warning that a variable is called which is not declared.
I thought I did not have to worry about this as the variable does exist within the job where the function is called.
It looks like I can not set a value to a global variable in a custom function.
Is that correct, or is there something wrong with my syntax?
Really the only reason I call a custom function is to set the global variable, so I could even make my function as simple as this:
$State = 'NSW';
Return 0;
It still doesn't work...
Any idea why?
Thanks,
Jan. -
Making a header field as non editable while creating PO using ME21n
Hi Friends,
Could any one tell me the BADI or screen exit to make a header field (for eg: EKGRP - Purchasing Group) as non editable after giving default value to it?
Thanks in advance,
RamHi Ram,
goto se80 t-code and give 'ME' package, and now see the enhancements available.
You l get a relavent one, if you go through all those.
Hope this helps
Regards,
Sujatha -
How to create a partner and header record using CRM_ORDER_MAINTAIN?
Hi any one knows how to create a partner and header record using the function module CRM_ORDER_MAINTAIN??
I tried to create a record, but i only managed to create a header record and the partner record is not reflected in the transaction. Why is that so? is there any indicator that i need to include?
Thanks..
JenHi Jen!
I use this FM and it works perfectly.
Use this to create a partner:
gs_partner-ref_handle = '0000000001'.
gs_partner-ref_kind = 'A'.
gs_partner-ref_partner_handle = '0001'.
gs_partner-partner_fct = '00000001'.
gs_partner-partner_no = NO_PARTNER. "number of the partner, bu_partner
gs_partner-display_type = 'BP'.
gs_partner-no_type = 'BP'.
gs_partner-kind_of_entry = 'C'.
* ls_partner_l-ref_handle = '1'.
gs_partner-ref_guid = '00000000000000000000000000000000'.
APPEND gs_partner TO gT_partner .
ls_input_field-ref_kind = 'A'.
ls_input_field-logical_key = '0001'.
ls_input_field-objectname = 'PARTNER'.
ls_input_field-ref_handle = '0000000001'.
ls_input_field_names-fieldname = 'DISPLAY_TYPE'.
INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
ls_input_field_names-fieldname = 'KIND_OF_ENTRY'.
INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
ls_input_field_names-fieldname = 'NO_TYPE'.
INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
ls_input_field_names-fieldname = 'PARTNER_FCT'.
INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
ls_input_field_names-fieldname = 'PARTNER_NO'.
INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
INSERT ls_input_field INTO TABLE gt_input_fields.
clear ls_input_field-field_names[].
CALL FUNCTION 'CRM_ORDER_MAINTAIN'
EXPORTING
* it_schedlin_i = gt_schedlin_i_com
it_partner = gt_partner
* it_sales = gt_sales
* it_orgman = gt_orgman
* it_appointment = gt_appointment
* it_ordprp_i = gt_ordprp_i
* it_product_i = gt_product_i
* it_activity_i = gt_activity_i
* it_pridoc = gt_pridoc_com
CHANGING
ct_orderadm_h = gt_orderadm_h
* ct_orderadm_i = gt_orderadm_i
ct_input_fields = gt_input_fields.
* ct_doc_flow = gt_doc_flow
* cv_log_handle = gv_log_handle.
Hope it helps u,
Regards,
Mon.
Maybe you are looking for
-
Xsan panic and recurring errors
I had the volume go down in a panic last week. We were able to restart and get everything running but now have a persistent error which appears to be related. Both reference gethostbyname. I have dns setup for all of the systems on both the regular n
-
Java not working correctly in any browsers on snow leopard
In very recent months, I have experienced problems with java and many of its applications. But now it doesn't work well at all. For example, if I try to go to Minecraft Classic in Safari, it only gives me a black screen so the graphics part is not di
-
Creating database triggers from forms
what we can create a data base trigger from from .if yes plzzz tell me its procedure.
-
[SOLVED]apps during startx
i always see 3 terminals and xclock how can i reset the apps running during startx? Last edited by heyya (2009-05-24 09:21:33)
-
My java program needs to read data from a FIFO file and then block when the data ends and wait for more data. I can achieve the desired effect with something like while(true) { while(myReader.ready()) { ... read data here .... }... but th