Regarding Suppressing the Idoc based on Condition
Hi All,
Its File to Idoc one, Here is the logic,
If Status code = X1 or AB then only create the Idoc AND also create the one one Idoc for each and every line item
If we have 2 line items from text file, we have to create 2 idocs in ECC.
We setup in the following way....
To create the Multiple Idocs for multiple Line items, i changed the IDOC segment Occurence to 0-9999 and Idocs are getting posting correctly.
The thing is if the status code is either X1 or AB then it is getting creating idocs as per the logic. If the status code is not either one means it is failing in XI MONI.
please advice me i shld not see the failed message in MONI
Regards
Vamsi
Hi Vamsi,
If you donot want to generate the IDOC when the Status Code is not X1 or AB, either use create function as mentioned by Raj or also craete a dummy receiver in ID and use conditions in receiver determination and route the data as per the status code.
If Status Code = X1 or AB receiver= idoc
If Status Code != X1 or AB receiver= dummy receiver
I hope this is helpful.
Regards,
Sarvesh Desai
Similar Messages
-
Suppress Target structure based on condition
Hi
How to suppress target structure based on condition
Example:
Source is like:
<Details>
<Name>abdc</Name>
<ID>234</ID>
<Address>US</Address>
</Details>
I have two target structures
1:
<Details>
<Name>abdc</Name>
<ID>234</ID>
<Address>US</Address>
</Details>
2:
<Error>
<ErrorID>
</Error>
if Any of the source filed is null then i dont want to map it to source structure. instead I want to assign an error id to ErrrorID node of the target.
example
abc,123,US
abc
in above case second record has two null values
so my target structure should be
<Details>
<Name>abc</Name>
<ID>123</ID>
<Address>US</Address>
</Details>
<Error>
<ErrorID>2nd record has erro</ErrorID>
</Error>
How to acheive this..
Please help us
Regards
Sowmyahi ,
plz try the following mapping
Name-->exist-->if than else-> tuue----->Name
false---(constant)--
error
ID-->exist-->if than else-> tuue----->ID
false---(constant)--
error
adress-->exist-->if than else-> tuue----->address
false---(constant)--
error
regards,
navneet -
How to split the IDOCS based on document number change whit out BPM
Hi all,
Thanks,for giving the responce..
Scenario:File to IDoc.
Problum1 : How to Split the IDocs based on document number change in the source file with out BPM.My file contains document numbers like
20000092
20000092
20000092
50000050
50000050
50000065
I want 3 IDocs in target system.i.e 1 for 20000092,20000092,20000092
2 for 50000050,50000050
3 for 5000006
By using external definations i am getting 6 IDOCs insted of 3.
Problum 2:Is there any chnges/modifications in Directory when we are using external definations.
Could u plz provide me the step by step process(Repository/Directory) with using of external definations.
Thanks in advance.
Regards,
KPHI,
for this no need of BPM.
You can think of Idoc bundling concept to acheive this-just you need to do the external definition to change the idoc occurence
/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
to achieve for each document no, one idoc, you can write small user defined function in the mapping with context handling you an achieve this.
For this e.g
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6bd6f69a-0701-0010-a88b-adbb6ee89b34
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/877c0d53-0801-0010-3bb0-e38d5ecd352c
Regards,
Moorthy -
How can hide the buttons based on condition
Dear all
I have to hide the button based on condition
When I open the third page directly I want to hide that button
When I open the third page via first and second page I need to visible that button
I pass spell parameter from first to second and second to third
In third page I get the value using pagecontext
I write the code in third page co
If I go directly third page it is null
If I go to third page via first the value is Y
If(“Y”.equals(pmode))
OASubmitButtonBean btn =( OASubmitButtonBean )webBean.findChildRecursive(“<id>”);
If(!btn=null)
btn.setrendered(true);
else
btn.setrendered(false);
but the button is not hiding
Regards
SreekanthHi Srikanth,
I have modified ur method:
OASubmitButtonBean btn =( OASubmitButtonBean )webBean.findChildRecursive(“<id>”);
If(btn !=null)
If(“Y”.equals(pmode))
btn.setrendered(true);
else
btn.setrendered(false);
Thanks,
'Kumar
Edited by: Kumar Kovela on Aug 3, 2009 5:53 AM -
Suppressing a segment in the target based on condition
Hi Guys,
Iam working on an interface which has a requirement in which we need to suppress the segment in the target XML file of the IDOC Structure, Based on the data coming from a particular field in the Source IDOC iam doing a java lookup, if the condition fails in the lookup it should suppress the segment in the target XML file of the IDOC.The occurance of the particular segment in the IDOC is 0 to 999999.
Kindly throw some light on the procedure in which this can be acheived.
Any sort of suggestions regarding this are appreciated.
Thanks in Advance.
Praveen.May be it help you:
(not so trivial solution)
Try to create Advanced User-Defined function (in mapping designer) with at least 2 parameters. (first - this segment, second - particular field) (check "Cache entire queue" option)
something like this:
public void Suppress(String[] a, String[] b, ResultList result, Container container){
String segment = a[0];
for(int i=0; i < b.length; i++) {
String data = b<i>;
if(data != null and data.equals('race conditions')) {
result.addValue(segment);
break;
}else {
//ignore.
//note: for empty segment - result.addSuppress() -
How to suppress the report based on outer dimension in nested report
Hi Experts,
We have a report with nesting of two dimensions in rows. They are Program dimension and Account Dimension.
We need to supress the report based on the program dimension members. i.e whenever there are no values against all the accounts for a particular program that particular program should get supressed.
In the screenshot attached I am looking to supress the rows 37,38 and 39 as the data against this program is empty.
However I dont want to supress the rows 31 and 33 as there is a capital data against this program in row number 32. So we have to supress the rows based on absence of data at program level.
We are using SP14 on BPC 10.
I remember that such functionality could be acheived in BPC 7.5 by flagging the required dimension to have suppress in Expansion Range. So I guess, similar functionality would be there in BPC 10 as well.
I have evaluated the option of VBA macro to hide the required rows, but was wondering if we can achieve the same using EPM functionality as we used to do in BPC7.5.
Thanks in advance for your suggestions!!
Regards,
ShivaHi Shiva,
First you have to check the option Keep Blocks:
This option will show the whole block even if only one line contain some not zero/empty cells in the row.
Second, when you select option Filter on All Columns/Rows you have to select OR as operator between columns:
In this case the test for >0 (or for <0) will be applied to each column and the result will be OR'ed with other columns. True will be even if one column contains not zero and not empty cell.
You logic to check individual column require to hardcode the members - not good!
Vadim
P.S. If you select AND for Filter on All Columns/Rows - then only lines with all cells with non zero / non empty will be shown as in your example! -
How to release the IDOC based on the count
Hi IDOC gurus,
How to release IDOC's based on the count?
Actually, my requirement is I have to release the IDOC's of count 50 for every 5 or 10 minutes. I tried by scheduling the background job for the program RSEOUT00, but unfortunately there was no option of selecting the IDOC's based on count for the given message type except IDOC range i.e FROM and TO select options in the selection screen.
Are there any other alternative where I can release the IDOC's based on count for every periodic 5 or 10minutes?
Also, can I know how can we configure the multiple QUEUES for the IDOC's?
I highly appreciate who can help regarding this and points are awarded.
Thanks,
Sreevani.Hi Ferry,
I tried with that option. Maximum number of IDocs parameter is the package size not the count of IDOC's.
I have 100 IDOC's with status 30 and all IDOC's got released eventhough the value of "Maximum number of IDocs" parameter is 50. I checked in the code it is an package size i.e., maxm IDOCs that it can be transferred from RFC outbound queue to a port at time and not maximum number that can be processed for the program execution.
Thanks,
Sreevani. -
How can we make the status of the Idoc based on some response Text
Hi All,
I have developed Idoc--SOAP Sync Process Scenario Using BPM and Works Perfectly.
I have used STATUS.SYSTAT01 Idoc to capture the Response that is comming from the Webservice.
I have mapped the response Text( Success or Fail) to one of the field in the Response Idoc, this is perfect.
Requirement:
1) If the Response Idoc Field receives Success Text means the Idoc Status shld be in Green Status.
2) If the Respnse Idoc Field Receives FAIL means the Idoc Status shld be in RED Status.
OR
Another Option is
1) Let us Assume that If i trigger one Idoc MATMAS to Webservice, if they receive that properly means the Idoc STATUS.SYSTAT01 shld show the success in WE05 of R/3.
Else it shld show Error status.
How can i Do this. please suggest me......
RegardsHi Bhavesh,
Now got the Purpose of the SYSTAT Idoc.
Before this i thought of we have to check the SYSTAT Idoc status only If we want to know whether the sent MATMAS Idoc is success or fail.
I come to know through U But i thought was in wrong way, Correct one is the MATMAS Idoc status itself will show us if that is Processed by target or not with the help of SYSTAT Idoc after the Process Cycle is complete.
OK oK......
Now My concentration is how to do the Response mapping in IR....
I can Mapp the MATMAS Idoc to Request Of Webservice.
Can You please let me know the process on developing the Response Mapping and getting the MATMAS idoc Number and passing it to the SYSTAT DOCMUN???
Iam getting the Response from Webservice as SUCCESS or FAIL only.I have Only one field in Response Webservice
What i have to do in Mapping
Please Bhavesh, help me in this
Regards -
Color the row based on condition
Hello all,
I am woring on an interactive adobe form being called by a web dynpro application.
The adobe form interface used is XML Schema based. The form displays some data at header level and item level.
The item details are displayed in a table. Now. my requirement is that i have a field 'STATUS' in the item table. I want to display the row with RED color if the STATUS = 'X' . How can i achieve this.. i tried using java script at Row initialze event but that didn' work.
Please let me know if you have some solutions.
Thanks & Regards,
Ravi AswaniTry this code
var fields = xfa.layout.pageContent(xfa.layout.page(this)-1, "field", 0);
var custordertext;
for (var i=0; i <= fields.length-1; i++)
if (fields.item(i).name == "STATUS")
if(fields.item(i).rawValue == "X")
this.fillColor = "50, 50, 255";
use this event in calculate event
Thanks,
Rakesh -
To disable fields on the screen based on condition
Hello folks,
Iam doing one module pool program in that in one screen i need to disable the 3 fields based on the value entered in the 1st field.
for me its working but after entering the value in field 1
I need to press enter key then only it is working.
is it possible to gray those 3 fields just by entering values and without pressing the enter key.
any suggestion will be rewarded
Regards,
cnuHi,
It is not possible to gray field without pressing enter key.
Because a key is pressed it will trigger an event ..i.e PAI .
So if we dont press enter .System will not do anything.cause it does not know which event to trigger..
So we have to press enter
Best regards,
Brijesh -
Separate IDocs based on condition
My scenario is XML file to IDoc. In my XML file I have BELNR which will change often.
Whenever a new BELNR occurs a separate IDoc needs to be created.
For example:
If I get BELNR like following:
100100
100100
Then only 1 IDoc needs to created...
100100
100101
Then 2 IDocs needs to created in target side.
How do I get this in mapping...BELNR - removecontexts - spltbyvalue(valuechanged) - collapsecontexts - IDOC
Assuming that the BELNR come sorted. -
Calculating the sum based on condition
Hello Everybody,
I am currently working on a report, where i have to calculate sum on transaction amount for all account numbers. Below is the example of data.
masteraccount accountno transaction amount
1001 001 50000000
1001 002 50000000
1001 003 50000000
1002 004 98765
1002 005 98765
here i have to calculate the sum of transaction amount based on distinct master account.
Thansk
Ramcreate a group for master account
use manual running totals.
RESET
The reset formula is placed in a group header report header to reset the summary to zero for each unique record it groups by.
whileprintingrecords;
Numbervar X := 0;
CALCULATION
The calculation is placed adjacent to the field or formula that is being calculated.
(if there are duplicate values; create a group on the field that is being calculated on. If there are not duplicate records, the detail section is used.
whileprintingrecords;
Numbervar X := x + ; ( or formula)
DISPLAY
The display is the sum of what is being calculated. This is placed in a group, page or report footer. (generally placed in the group footer of the group header where the reset is placed.)
whileprintingrecords;
Numbervar X;
X -
Formula to Copy all the values based on condition
Hi All,
I have Text Column called "PASS" in Pivot table holding values like and NA and 0.0133333333333333 .
So I want to create the calculate column "CALS "and copy all the values which are not holding NA into this column and set value 0 if found NA.Can any one help me how can I solve this.
Thanks,
SidHello Sid,
For this you can use a calculate column a simple condition with the IF function like
=IF(MyTable[MixedValueColumn] = "NA", 0, CURRENCY(MyTable[MixedValueColumn]))
Olaf Helper
[ Blog] [ Xing] [ MVP] -
When i park a document in FV60 i should get the messages based on conditions;
Hi All,
In FV60 when amount and amount in doc currency is not equal and if i park it should through as error message as 'Posting is possible with Zero balance',i have done this and it is working.
now when amount and amount in doc currency is equal means 'zero' it should succesfully park the document,but i am getting same error message as above.
Can any one please helpme out how to solve this.
Thanks,
RamHi,
do you really think someone could guess with the poor informations you give ??
regards
Fred -
Suppressing the field using two conditions
how to supress a field using Two conditions?
In format field common tab
Click formula icon next to suppress and enter your conditions eg
field1 = x and field2 = y
Ian
Maybe you are looking for
-
The phone has given me a 1015 error - unknown error has occured, during the firmwre comfirmation. We have tired the tricks with holding the home button down for 10 secs etc, we have tried installing a number of different versions of itunes, but no jo
-
Sync with Vista Business and Outlook 2007
My old systems we running XP and Outlook 03 but I have recently upgraded to Vista Business and Outlook 2007. Since upgrading I have not be able to get either my contacts or calendar to sync. I have tried everything that I have come across in this for
-
Lost my BIOS PASSWORD on Probook 6560b
Hi, I lost my BIOS password on my Probook 6560b. Can someone please help my how to solve this issue. After entering the password several times, no error is displayed, only a message to power off the laptop. Thank you in advance, regards, H. This ques
-
<i>Locking duplicate thread.<br>Please continue here: [[/questions/1026136]]</i> I've tried to download through the link posted and the website but nothing happens. I can't reinstall if I can't get the download. All of my passwords are stored on Mozi
-
How to Open another jsp page from jsp page
Hi, I am new to JSP. I need help to handle issue given below: I have created one JSP Page for Login which contains Username and Password with a Submit Button. Once user inputs UserName and Password and Press Submit Button, It calls another JSP Page "