Generating optional FK items in Designer R.1.3

I have a form which is based on some tables as follows:
Table1: PK = COL1.
Table2: PK = COL1 + COL2 (i.e. has an FK to Table1).
Table3: Has a mandatory FK to Table1 i.e. COL1 must be entered. Table3 also has an optional FK to Table2 i.e. COL2 is optional.
Don't ask me why - this is the data model I have to work with.
The tables etc can be generated fine with this kind of structure.
My form is based on Table3 i.e. it should have a mandatory item COL1 plus an optional item COL2.
The problem is in trying to generate this form from Designer R1.3. If I define the FK to Table2 as optional, Designer refuses to generate the form because the optional FK includes mandatory columns (COL1). If I define the FK as mandatory, Designer insists that all the FK columns are mandatory i.e. COL2 is made mandatory instead of optional in the generated form.
I've tried looking at the preferences e.g. setting the preference NIVVKC to Y for the table/constraints and for the form.
But nothing seems to work. In Developer 2000 this can be done in 5 minutes; in Designer it seems to be virtually impossible. Does anyone out there know how to get this kind of thing to work, and how to explain it to me in nice easy-to-understand words?
Chris

Chris,
If you have a table 3 like yours, Designer expects the foreign keys to be set up as follows:
* col1a: mandatory FK to table 1 - col 1
* col1b + col2: both optional, FK to table 2 - col1 + col2
As you noticed, the forms generator does not allow you to reuse col1 in both foreign keys, as one is optional and one is mandatory. The only solution that I know of is to add another optional column, which is only filled if the FK to table 2 is present, and in that case it is exactly the same as the col1 column that you already had.
Hope this helps,
Sandra

Similar Messages

  • Why don't I see the option Generate under menu item File in Photoshop CC?

    Hi,
    Why don't I see the option >Generate under menu item >File in Photoshop CC?
    I want to be able to generate a edge reflow project.
    /Thors

    Please confirm if you are updated to the latest version of Photoshop CC. Go to Photoshop>About Photoshop on Mac, For Win, go to Help>About Photoshop.
    We recently released a new update. Here is teh link for more info:http://forums.adobe.com/message/5674936#5674936
    Regards
    Pragya

  • Generate 2 line items with posting keys in same table while using  FM .

    Dear Expert ,
    For T-code f-65 ,I have to park a FI Document  .i tried with PRELIMINARY_POSTING_FB01 for parked Document . But  i am not  successfully park the document .
    with the help of F-65 the data Segregate between Tables VBSEGS and VBSEGD with respecting Posting key . but with this Fm entire entry is displaying in table VBSEGS .For example it generated two line items with posting keys '15' and '40' and these both are displayed in VBSEGS whereas posting key '15' has to be displayed in VBSEGD.
    when i check this Document in FBV0 Error reflect " G/L Account 0012000 1001 Does not Exist ".
    Here my code -
    DATA:   XT_BKPF LIKE  BKPF OCCURS 0 WITH HEADER LINE ,
            XT_BSEG LIKE  BSEG OCCURS 0 WITH HEADER LINE ,
            XT_BSEG1 LIKE  BSEG OCCURS 0 WITH HEADER LINE ,
            XT_BSEC LIKE  BSEC OCCURS 0 WITH HEADER LINE ,
            XT_BSET LIKE  BSET OCCURS 0 WITH HEADER LINE ,
            XT_BSEZ LIKE  BSEZ  OCCURS 0 WITH HEADER LINE ,
            XT_BKORM  LIKE  BKORM OCCURS 0 WITH HEADER LINE ,
            XT_THEAD  LIKE  THEAD OCCURS 0 WITH HEADER LINE ,
            XT_SPLTTAB  LIKE  ACSPLT  OCCURS 0 WITH HEADER LINE ,
            XT_SPLTWT LIKE  WITH_ITEMX  OCCURS 0 WITH HEADER LINE .
    DATA :    XTEXT_UPDATE  LIKE  BOOLE-BOOLE VALUE SPACE,
              XTEXT_ITEM_UPDATE LIKE  BOOLE-BOOLE VALUE SPACE,
              XI_UF05A  LIKE  UF05A,
              XI_XCMPL  TYPE  XFELD VALUE 'X',
              XFS006_FB01 LIKE  FS006 ,
              XI_TCODE  LIKE  T020-TCODE  VALUE 'F-65',
              XI_PARGB  LIKE  RF05A-PARGB        ,
              XI_TCODE_INT  TYPE  TCODE           .
    DATA P_RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
    XT_BKPF-BUKRS     =     'CP01'.
    XT_BKPF-GJAHR     =     2011.
    XT_BKPF-BLART     =     'DZ'.
    XT_BKPF-BLDAT     =     SY-DATUM.
    XT_BKPF-BUDAT     =     SY-DATUM.
    XT_BKPF-MONAT     =     '06'.
    XT_BKPF-CPUDT     =     SY-DATUM.
    XT_BKPF-WWERT     = SY-DATUM.
    XT_BKPF-USNAM     =     'ABAPER'.
    XT_BKPF-TCODE     =     'F-65'.
    APPEND XT_BKPF.
    XT_BSEG-BUKRS     =     'CP01'.
    XT_BSEG-GJAHR     =     '2011'.
    XT_BSEG-BUZEI = '001'.
    XT_BSEG-BSCHL = '40'.
    XT_BSEG-KOART = 'S'.
    XT_BSEG-SHKZG = 'S' .
    XT_BSEG-GSBER     =     'CPLN'.
    XT_BSEG-BUPLA = 'CP01'.
    XT_BSEG-WRBTR     =     10000.
    XT_BSEG-PSWSL = 'INR'.
    XT_BSEG-ZUONR = 'CH. 123456'.
    XT_BSEG-HKONT = '241000'.
    APPEND XT_BSEG .
    CLEAR  XT_BSEG.
    Vendor line item - required even for header only - BSEG table
    XT_BSEG-BUKRS     =     'CP01'.
    XT_BSEG-GJAHR     =     '2011'.
    XT_BSEG-BUZEI = '002'.
    XT_BSEG-BSCHL = '15'.
    XT_BSEG-KOART = 'S'.
    XT_BSEG-SHKZG = 'H' .
    XT_BSEG-GSBER     =     'CPLN'.
    XT_BSEG-BUPLA = 'CP01'.
    XT_BSEG-WRBTR     =     10000.
    XT_BSEG-PSWSL = 'INR'.
    XT_BSEG-ZUONR = 'CH. 123456'.
    XT_BSEG-HKONT = 'PC04000001'.
    APPEND XT_BSEG .
    CLEAR  XT_BSEG.
      CALL FUNCTION 'PRELIMINARY_POSTING_FB01'
       EXPORTING
         TEXT_UPDATE            = XTEXT_UPDATE
         TEXT_ITEM_UPDATE       = XTEXT_ITEM_UPDATE
      I_UF05A                =
         I_XCMPL                = XI_XCMPL
      FS006_FB01             =
          I_TCODE                = XI_TCODE
      I_PARGB                =
      I_TCODE_INT            =
      IMPORTING
        XEPBBP                 = CHECK_A
        TABLES
          T_BKPF                 = XT_BKPF
          T_BSEG                 = XT_BSEG
          T_BSEC                 = XT_BSEC
          T_BSET                 = XT_BSET
          T_BSEZ                 = XT_BSEZ
      T_BKORM                =
      T_THEAD                =
      T_SPLTTAB              =
      T_SPLTWT               =
              EXCEPTIONS
                ERROR_MESSAGE = 1.
      P_RETURN-ID         = SY-MSGID.
      P_RETURN-TYPE       = SY-MSGTY.
      P_RETURN-NUMBER     = SY-MSGNO.
      APPEND P_RETURN.
         p_return-MESSAGE_V1 = XSYMSGV.
      IF SY-SUBRC = 0.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            WAIT = 'X'.
      ENDIF.
      WRITE :/ sy-subrc , sy-MSGV1 .
    Thanks ,
    Ashish Gupta

    Hi Raghuram,
    I found a very important SAP Note 103051, details are below.
    An IDoc processed by function module IDOC_INPUT_INVOIC_MM (of category INVOIC01) must not refer to the same purchase order item in several invoice items. This is also valid if for a goods receipt-related invoice verification several delivery notes belong to the same purchase order item.
    Depending on the system settings and the situation, various error messages can occur (for example, FD240 'Order item ... selected more than once' or M8050 'Balance not zero: & debits: & credits: &').
    In this situation module IDOC_INPUT_INVOIC_MRM generates error message M8321 'Document contains same order item more than once'.
    For example, this situation occurs if you work with individual batch valuation and the SD billing document executes a batch split for different batches which belong to the same purchase order item and delivery.
    Other terms
    INVOIC, SAPLIEDI,  M8047, M8, 321
    Reason and Prerequisites
    This is because of the program design.
    Solution
    There is no solution for IDOC_INPUT_INVOIC_MM.
    Module IDOC_INPUT_INVOIC_MRM (only as of Release 4.0) for the logistics invoice verification can distinguish different goods receipts by means of the delivery note number. For this purpose, GR-related invoice verification must be active.
    Owing to this symptom, billing documents for single batch valuation with batch split cannot be settled in MM-EDI inbound processing. The settlement generates exactly the situation described (several invoice items for the same purchase order item). In this case, the only solution is to deactivate the billing of the batch sub-items in SD Customizing and to calculate the main item only.
    Hope this helps.
    Reward if helpful.
    Thanks

  • How to generate specific # of items in tabular form from one item

    Looking to display or render additional elements to a tabular form based on the number entered in a quantity field. ie. if someone orders 10 items, I would like to have 10 tabular items display on blur, so the operator can enter the data in those fields for the 10 items. Then of course I need all items processed on submit.
    Is there a way to do this so the # of line items are rendered after a quantity has been entered to match or is this something that would have to be done with display values and a set number of items already on the page?
    Thanks

    Hi Naresh,
    You need to use Billing Plans for Service Contracts Scenario to create BRI items.
    In the Billing Plan - you can assign whether it is a Periodic Billing or Milestone Billing. Then you need to assign this billing plan to item categories. So based on the period (monthly,quarterly,yearly) - the BRI items will be generated.
    So Please try using Billing Plans for your scenario. As you mentioned earlier, you are using ECC for all Billing purposes. So the system will create one Debit Memo Request document per Contract and it will each line item for each of the BRI's in Service Contract. System will not generate one DMR per BRI item.
    You can check the BRI items generated at the item level --> Billing Plan Tab page (Assignment Block in Web UI).
    Hope this helps.
    Regards,
    Siraj

  • How to generate Billing Request Items in SAP CRM

    Hi Folks,
    We have requirements to create BRIs for Service contracts. Each BRI will create a Debit Memo Request in SAP ECC.
    All Billing activities happens in ECC.
    I did the following configuration:
    1. Synchronization of master data (SAP CRM and SAP ECC)
    2. Synchronization of pricing conditions (SAP CRM and SAP ECC)
    Conditions are identical in both systems.
    3. Customizing of service transactions in SAP CRM
    You have set the External Billing indicator for the relevant item categories. You do this in Customizing for Customer Relationship Management, by choosing Billing Define Billing Relevance of Item Categories.
    4. Customizing of controlling objects in SAP ECC
    You have defined CRM controlling objects to which costs and revenue generated by external billing can be automatically assigned. You do this in Customizing, by choosingIntegration with Other SAP Components Customer Relationship Management Settings for Service Processing Controlling Integration
    5. Controlling integration: Customizing: Integration with Other mySAP.com ComponentsCustomer Relationship Management Settings for Service Processing Billing Integration Map Transaction Types and Item Categories.
    When i release the Contract items, I dont see any BRI created. I am not sure where should i check, if BRIs are created.
    I have following questions:
    1- Where to check if BRI is created for contract
    2- How to generate BRI.
    3- Can i debug the process of BRI creation? Is there any FM which gets called or BADI?
    4. what am i missing in above config.
    Any help, material will be helpful.
    Regards,
    Shastri.

    Hi Naresh,
    You need to use Billing Plans for Service Contracts Scenario to create BRI items.
    In the Billing Plan - you can assign whether it is a Periodic Billing or Milestone Billing. Then you need to assign this billing plan to item categories. So based on the period (monthly,quarterly,yearly) - the BRI items will be generated.
    So Please try using Billing Plans for your scenario. As you mentioned earlier, you are using ECC for all Billing purposes. So the system will create one Debit Memo Request document per Contract and it will each line item for each of the BRI's in Service Contract. System will not generate one DMR per BRI item.
    You can check the BRI items generated at the item level --> Billing Plan Tab page (Assignment Block in Web UI).
    Hope this helps.
    Regards,
    Siraj

  • User Profiles option missing from SharePoint Designer 2013 workflows

    I noticed the User Profiles is missing as a Data Source option in the SharePoint Designer 2013 workflow platform (see image); whereas, it exists in the SharePoint 2010 workflow platform. Is there a way to connect this feature in SharePoint 2013 workflows
    by registering it or configuring through Workflow Manager? If not, what is the new approach in SP 2013 to call User Profiles services?

    Hi,
    Based on your description, you want to use user profile in SharePoint 2013 workflow.
    In SharePoint 2013 workflow user profiles is missing, if you have to use the user profile, you can create a SharePoint 2010 workflow, and use Start a List workflow action in 2013 workflow to start the 2010 workflow.
    The article below is about How to start a SharePoint 2010 Workflow within a SharePoint 2013 Workflow Using SharePoint Designer 2013
    http://www.c-sharpcorner.com/UploadFile/anavijai/how-to-start-a-sharepoint-2010-workflow-within-a-sharepoint/
    And in SharePoint 2013 there is an approach to user profile, you can add the action call http web service to get the information of user profile.  
    The article below is about how to use call http web service in SharePoint 2013 workflow.
    https://msdn.microsoft.com/en-us/library/office/dn567558.aspx
     Best regards
    Sara Fan
    TechNet Community Support

  • SD - Accounting document line items are generating for each item

    Hi all of you,
    We have done account determination for SD. Accounting documents are also generating, but with in the invoice accounting document, number of line items are generating for each item with in the sales order, standard invoice type is F2 like -
    Item 001 - X Material
    Item 002 - Y Material
    Item 003 - Z Material
    The accounting document is -
    Line Item 001 - Customer Ac Dr
    Line Item 002 - Discount A/c Dr
    Line Item 003 - Sales revenue
    Line Item 004 - Discount A/c Dr
    Line Item 005 - Sales Revenue
    Line Item 006 - Discount A/c Dr
    Line Item 007 - Sales revenue
    Line Item 008 - VAT
    Even, in my experience I did not find this type of entry and the sales revenue and discount accounts are same with in the COA and is posted with in the plant.
    Please give me your valuable suggestion to rectify the above issue.
    Regards,
    Ramki
    Edited by: Ramki on Nov 5, 2009 10:06 AM

    Dear Ramki,
    This is SAP Standard. System generates Accounting document line item for each Line items in Invoice.
    This is standard & also required bacuase say you have different Material types in single Invoice (e.g.Material & Service items, Trading Goods, etc). The valuation class assigned to these Material Types may be different & you might want to post revenues from these Line items in different GL Accounts.
    Hope this helps. .
    Thanks,
    Jignesh mehta

  • PR05 - Fi DOcument Generate 2 open items (

    Hi All,
    I am in an upgrade for version 4.6 to 6.0
    In version 6.0 this is happening:
    I am using PR05 to generate a trip. The FI Document generates
    2 open items in the vendor account instead of one open item. I supposed that this is happening because i have post to 2 expense account (one with a business area and the other one without a business area.
    I would like that SAP only generate one vendor open item.
    How can I do to solve the problem?
    Best Regards,
    Julieta

    Hello Alex
    Please see OSS note 117708, it for logistic invoice but logic should be the same.
    Best Regards
    Vijay

  • Do we can set any scroll option in the query designer?

    Hi,
    I would like to know is there any setting for scroll option at the query designer level.
    This is because if I look at some reports so I could see little ups and down (small up and down arrows) symbol at the column level, and is enabled for only few reports.
    Need some input on the same.
    Thanks

    Hi
    I think you are right clicking on KeyFigures Heading, instaed of that can you on any Keyfigure (example KF1 and KF2 etc..). once you done that you will see the following options.
    EDIT     
    COPY    CTRL + C
    CUT       CTRL + X
    PASTE   CTRL + V
    DELETE   DEL
    WHERE USED LIST
    LEVEL DOWN         CTRL+ >
    LEVEL UP     CTRL + <
    PROPERTIES   ALT + ENTER
    please select the highlighted options on the required key figures, then execute the query.
    regards
    Pavan

  • How to Generate a Spacer Item in 10.1.3

    10.1.3.2 JDev, 10.1.3.1.26 JHS. Scenario: a two-column region where a couple items on the right need to have blank spaces between them so they line up with certain items on the left.
    In 10.1.2 and before, we created non-base table VO attributes, set them as read-only and mixed them in with the input items. This generated a spacer item. In 10.1.3, we create non-VO attribute items but they take up less vertical space so the vertical alignment is difficult.
    Is the best way to solve this to create a custom item template that is an objectSpacer tag instead of an inputText tag and attach that to the non-VO items? That seems like a kludge so I must be missing something basic.
    Thanks,
    Peter

    Here's my solution:
    1. Create a template called custom\item\form\formSpacer30.vm with the following contents:
    <af:objectSpacer #ITEM_ID_IN_FORM() height="30" width="20" />2. Create an item in the group that is not bound to a Model attribute. The type is "textInput."
    3. In the FORM_TEXT_INPUT template for that item enter "custom/item/form/formSpacer30.vm"
    If anyone has done this differently or better, it would be of interest. My solution seems like a kludge. Also, it leads to an enhancement request to support the width and height properties of an af:objectSpacer. Currently, they need to be hard-coded into the template. If we had attributes like #HEIGHT_IN_FORM() and #WIDTH_IN_FORM() that translated the JHS def file attributes Height and Width to "height" and "width" attributes, you would not need to hard code the size in the template. At this point in my solution, you need to create separate template files for each different spacer size.
    Peter Koletzke

  • Material field entry as optional for item category:B

    How to make material field entry setting as optional for Item category:B. By default the setting is Not allowed for material for Item category:B.

    Hi
    Instead of material code ,provide material text in PO & Put an Account Assignment Category

  • Enter a valid product before generating a subsequent item

    Hello,
    I am creating a complaint from a 3rd party front end . There is an action associated with this process type. Now I am getting an error "Item 1000     Enter a valid product before generating a subsequent item     "  . The product Id in the item details is correct (as I checked the id with the COMM_PRODUCT table ).
    Can you please help?
    Thanks,
    Neeraj

    Hi Balu,
    What is the business transaction type u r using and what posting it does. This identifies the necessity for the witholding tax code.
    Please specify.
    Thx, Ashok

  • Sorting option in item (material) display table

    Hi Expert,
    How can we give the sorting option in item (material) display output table?So that user can filter the data in long table where thousands of data is displaying.
    Thanks,
    Kundan

    Hi Kundan,
    for CE and 7.30 VC has changed to use ALV tables (standard webdynpro tables). There is a filter option included. If you use a previous version with flash compiler this will be more difficult.
    From my point of view the only solution is to add a form to your iView on top of the table. Create an input field for every table column and use a submit action to filter the result.
    Hope this helps.
    Anja

  • Generate or Preview XML when Extending Reader Options using Adobe LiveCycle Designer

    Hi,
    I am trying to view the generated xml when reader options are extended. However, when I try to open the reader extended PDF in LiveCycle Designer, it says you will lose reader options. Is there any other way in which I can compare the generated XML before and after extending reader options?
    I am having issues processing PDF after extending reader options as the generated xml is generating the following error.
    "XmlException was unhandled by user code, Data at the root level is invalid. Line1, position1"

    May be you can try this way to get the XML before and after the Reader extensions.
    1) Place a Text field with multi line allowed.
    2) Place a button on the form with the following in click event.
          TextField1.rawValue = xfa.data.saveXML("pretty");
    3) Open the form in either Reader/ Acrobat and click on the Button. Save the XML data in a file that was assigned to the TextField.
    4) Reader extend the form.
    5) Repeat the step 3 again to capture the XML from the form after Reader Extensions.
    This way you can get the XML from the form before and after.
    Thanks
    Srini

  • Meaning fails to generate correct code for text item in designer reports

    I have a text item in a report which is a table column governed by a domain. When the display type is set to TEXT and the Show Meaning property is set to MEANING ONLY - the code generation fails as follows:
    WHERE NTC.ICO_ID = L_ICO.ID AND
    L_ICO.ISS_CAT_CODE = L_ISS.CAT_CODE AND
    L_ICO.ISS_LEGI_CODE = L_ISS.LEGI_CODE AND
    NTC.DEM_ID = L_DEM.ID
    CG.RV_DOMAIN = 'NOTICE TYPE' AND CG.RV_LOW_VALUE = NTC.NOTICE_TYPE
    The failure is caused because the AND is omitted from the last condition in the query. (the part that gets the meaning from cg_ref_codes).
    Can anyone advise on a solution to this?

    Sander,
    Your concerns about renaming the new release 4 libraries to ofg*65.pll are understandable, but it is exactly what you have to do. The only customizations we made to the ofg* libraries in Headstart 6i are workarounds for Designer bugs that were present when we wrote Headstart 6i (at that time we used Designer release 2). These bugs have been fixed by now, so it is safe to use the Release 4 versions and get rid of the ones that shipped with Headstart 6i.
    We recommend still renaming them to ofg*65.pll, for an explanation see the Headstart User guide or the Headstart Installation Guide.
    Kind regards,
    Peter
    null

Maybe you are looking for

  • Creation of G/L in mass

    Dear Professionals,                  What is the Tcode for creation of G/L in mass. I want to create 100 G/L one at atime... Please explain the process along with Tcode. I knew that  FS00 is used for cration pf G/L but i want to create in mass in par

  • System date format in reports (winnt)

    Hello All, I am using oracle report bulder 6.0.5.35. on winnt i have to show all the date fields in my report in the system format (as specified in the regional settings in control panel) i couldn't find a direct solution, so what i did was to create

  • 'L' Payment Method

    Experts, What's the corresponding payment method/description in English (say for US) for the corresponding 'L' payment method in Germany. All answers would be duly appreciated and rewarded with points. Thanks, Nandita

  • Windows 7: probleme de "windows installer" lors de la mise à jour itunes10.5. La mise à jour ne peut donc pas se faire.

    Clic sur mise à jour itunes 10.5. L'installation est stoppée car une erreur -42032 s'est produite avec windows installer. Je ne comprend pas : toutes les mise à jour "windows update" sont ok. Que puis-je faire ?

  • Unable to install Flash Player. System is MacOSX 10.6.8

    Unable to install Flash Player. System is MacOSX 10.6.8 with 2.4 GHz Intel Core 2 Due, browser is Safari 5.1.8. Always quit Safari to install. Downloads okay, "Install" seems okay, but doesn't install. Have tried to uninstall and reinstall (download